FailTrace – Reproduce a failed GitHub Actions run locally from its URL github.co...

@best

FailTrace – Reproduce a failed GitHub Actions run locally from its URL github.com · 14 points · 1 comments · HN thread

TL;DR FailTrace is an early-stage Go CLI that takes a failed GitHub Actions run URL and diagnoses the failing job and step, builds a local reproduction plan with the exact commit and toolchain versions, and can replay the failing step in Docker to compare results with CI. The author says inspect, plan and repro all work, but repro only covers Linux jobs whose failing step is a run: script.

  • inspect extracts the failed job and step, matches them to the workflow file at the CI commit, pulls the relevant log excerpt, and classifies the failure (for example test failure, lint, generated-diff, timeout, out-of-memory).
  • plan resolves toolchain versions (e.g. "3.11" to 3.11.18), uses the merge commit CI actually tested for pull requests, and reports blockers such as downloaded artifacts, service containers and secrets as issues; verdicts are ready, partial or blocked.
  • repro builds an environment image, checks out the same commit, starts service containers, replays steps in order, and returns a verdict (reproduced, different-failure, not-reproduced, diverged, flaky) with exit codes for scripting.
  • --source . tests a local working tree against the same CI step before pushing, and --runs N checks for flakiness by reusing the container.
  • Limitations include: action-based failing steps are blocked, Windows and macOS jobs are only approximated on Linux, steps run as root rather than the runner user, and linux/amd64 jobs are emulated on ARM machines.
  • Installs via a checksum-verifying shell script, go install, or building from source; needs a GitHub token (GITHUB_TOKEN, GH_TOKEN or gh auth) and Docker for repro.

Discussion The thread has only one top-level comment, so there is little discussion. It is a positive remark about the tool's potential fit in AI-assisted development workflows, with no replies or counterarguments.

  • Useful as part of an AI coding agent feedback loop (a few): The single commenter sees the tool being valuable when connected to AI-driven development, where an agent can reproduce a CI failure and check a fix. The README's exit codes and --source option are designed with that use in mind.

#GitHubActions #CI #Docker #DeveloperTools #Golang