FailTrace: rerun a failed GitHub build on your own computer
FailTrace is a free command-line tool. Give it the web address of a failed GitHub Actions run and it finds the broken step and the error. It can then rerun that step in Docker on your machine, so you can fix the problem faster.
When an automated GitHub build fails, it's often hard to reproduce the problem on your own computer. FailTrace, a small open-source tool written in Go, aims to help.
You give it the address of a failed run. It finds the failed job and step, matches them to the workflow file as it was at that commit, and pulls out the relevant error from the logs.
It has three commands. One diagnoses why the run failed. One describes how it would reproduce the job without running anything. One runs the job in Docker and compares the result with what happened in the build.
The project says the rerun covers Linux jobs where the failing step is a script. It's new and small, with 35 stars and no releases yet, so treat it as an early tool.
New to this? The key idea
A CI build is a script that a server runs every time code changes, and it often fails in ways that do not show up on your own computer. Reproducing a failure means recreating the same environment, like trying to find a car noise by driving the same road. A container such as Docker gives you a clean, repeatable copy of that environment on your laptop.
Use it at work
Use it for: debugging a failed GitHub Actions run without pushing test commits. Developers and DevOps engineers who fix broken builds should care.
Try it: install the tool, then run the commands below with a real failed run URL in place of the example. `inspect` diagnoses why the run failed, `plan` describes how it would reproduce the job without running anything, and `repro` runs the job in Docker and compares the result with the build.
failtrace inspect https://github.com/owner/repo/actions/runs/123456789
failtrace plan https://github.com/owner/repo/actions/runs/123456789
failtrace repro https://github.com/owner/repo/actions/runs/123456789
Install (needs Go 1.24 or newer):
go install github.com/Ri4dH/failtrace/cmd/failtrace@latest
The `repro` command needs Docker and git. You also need a GitHub token in `GITHUB_TOKEN` or `GH_TOKEN`, or available through `gh auth token`.
Before you roll it out: free under the MIT licence. It sends GitHub API requests with your token, fetches the tested commit, and downloads base images and toolchains. Secrets go into the container only if you pass them with `--secret`. The README warns that `repro` runs repository code, including pull request code, in a local container. It is new and small, with 35 stars and no releases yet. `repro` covers Linux jobs whose failing step is a `run:` script. Failing steps that are actions are reported as blocked. Windows and macOS jobs are approximated on Linux, and linux/amd64 jobs are much slower on ARM machines. Logs can expire.
Summaries are written by AI from the linked source. Always check the original.