A developer’s desk displays a code pipeline with a failed step and a container deployment status panel.
Anyone who has stared at a 4,000-line CI log looking for the one line that matters will see why FailTrace exists. It's a new command-line tool from developer Ri4dH. You give it a failed GitHub Actions run URL. It finds the failure, works out how to recreate it, and can replay the failing step in Docker on your own machine. The project is MIT-licensed and in early development, and it pitches itself on that "paste a URL" workflow.

A developer’s desk displays a code pipeline with a failed step and a container deployment status panel. What FailTrace does​

The tool has three commands: inspect asks why a run failed, plan asks how it would be reproduced, and repro reproduces it in Docker. The README's status note says all three commands work. It also says repro covers Linux jobs whose failing step is a run: script. That qualifier matters, because it defines what the tool can and can't replay.

The project compares itself with act. According to the README, act runs your workflows locally. FailTrace instead starts from one failed run. It reports the exact commit, attempt, job, matrix combination and failing step, and it replays only what that step needs. That comparison is the author's own, not an independent evaluation.

It isn't the only tool in this space. Search results show other small projects with similar goals, including RunBack, RunRepro and Replico. That suggests "reproduce a failed CI run from its URL" is a problem several developers are tackling right now. FailTrace is one of several early entrants, not an established standard.

Inspect: finding the first error​

inspect accepts a run URL, a job URL or a specific attempt URL. It maps the failed job back to the workflow definition, including matrix-named jobs, and recovers the matrix values. Its report covers:

  • Run context: workflow, event, branch, commit and attempt.
  • Runner details: the requested label and the actual runner image and version from the log.
  • The failed step's definition (run, uses, with, env, shell and working directory), plus the command as printed in the log with expressions already filled in.
  • A diagnosis with the exit code, error annotations, failing test names and a category.

The README lists these categories with example signals:

CategoryExample signal
testGo --- FAIL, pytest FAILED lines
buildTypeScript TS2304, Rust E0425
dependencynpm ERESOLVE, missing go.sum entry
lintgolangci-lint, eslint, ruff steps
generated-diffa check that printed diff --git
timeoutexceeded the maximum execution time
out-of-memoryexit code 137, heap out of memory

The README example is a failed prometheus/prometheus run. Its log ended in hundreds of lines of go.sum diff. FailTrace centered the excerpt on the first error, go mod tidy changing go.mod, and labeled it a generated-file diff with exit code 2. The tool also flags things that make local reproduction harder: service containers, job containers, secrets, reusable workflows, and macOS or Windows runners.

Useful flags​

  • --job limits output to one job ID.
  • -n or --lines sets log context. The default is 25 lines.
  • --json emits machine-readable output for scripts.

Authentication​

FailTrace needs a GitHub token even for public repositories, because the logs API requires one. It looks first at GITHUB_TOKEN. The README says the order continues with GH_TOKEN and then gh auth token. If you already use the GitHub CLI, that last step should work without extra setup. Private repositories need a token that can read Actions. GitHub Enterprise Server URLs also work, with the API base becoming https://<host>/api/v3.

Plan: what stands between you and a repro​

plan prints a reproduction plan and starts no containers. The README says the log is the source of truth for scripts, shells and environment values, so ${{ matrix.* }} and other expressions arrive already resolved. Three details stand out:

  1. The exact commit. For pull-request runs, CI tests a merge commit GitHub created, not just your branch head. FailTrace checks out that merge commit. The README calls this a common reason a failure "doesn't happen locally." In its pytest example, the plan shows a merge of head 58b8dae into base 50234b4.
  2. Exact toolchains. A request for Python "3.11" becomes 3.11.18, read from the runner's tool-cache paths in the log. When the log doesn't show a version, FailTrace falls back to version files. These include go.mod (with its toolchain directive), .nvmrc, .python-version, .tool-versions and packageManager in package.json.
  3. The right base image. A job container: is used as is. Otherwise the tool picks the Ubuntu version matching the runner image the job actually got.

Supported setup actions include actions/setup-go, actions/setup-node, actions/setup-python, actions/setup-java, actions/setup-dotnet, ruby/setup-ruby, dtolnay/rust-toolchain, actions-rust-lang/setup-rust-toolchain, pnpm/action-setup, astral-sh/setup-uv, oven-sh/setup-bun and denoland/setup-deno. The README also lists pnpm/setup.

Every plan ends in a verdict:

  • Ready: nothing known to be missing.
  • Partial: it can run, but some parts are approximated or missing.
  • Blocked: the failing step is an action rather than a script, so it can't be replayed yet.

The plan skips caches, uploads and coverage reporters. It reports downloaded artifacts, service containers, secrets, unknown actions and preinstalled tools as issues. A "partial" plan is not proof of an identical environment.

Repro: replaying in Docker​

repro builds the plan, runs it in Docker and compares the local result with CI. You need Docker (Docker Desktop, Colima or OrbStack, for example) and Git. The README describes the process this way:

  • It builds an environment image from the base image, adds common runner packages and installs the toolchains. The image is tagged by a hash of its contents, so it is built once per environment.
  • It fetches the exact tested commit the way actions/checkout does, and mounts it at the runner's path.
  • It starts service containers in the job container's network namespace, so localhost:5432 and postgres:5432 both work, and it waits for health checks.
  • It replays run steps in order with the same shell, environment and working directory, carrying $GITHUB_ENV and $GITHUB_PATH between steps.

In the README's stretchr/testify example, FailTrace resolved oldstable to Go 1.26.9. It checked out the PR merge commit and reproduced the same go vet failure.

Verdicts​

  • reproduced: the same tests failed, or the same error or exit code appeared.
  • different-failure: the step failed, but differently.
  • not-reproduced: the step passed locally.
  • diverged: an earlier step failed locally, so the failing step never ran.
  • flaky: with --runs, the step failed in some runs but not all.

Options worth knowing​

  • --runs N runs setup once, then repeats the failing step N times in one container to catch flakiness. Go's test cache is bypassed with GOFLAGS=-count=1, so a cached pass can't hide the problem.
  • --shell opens a shell where the failing step ran, and --keep retains the container.
  • --secret NAME passes a named environment variable into the container. The value is read from your environment, so it stays out of shell history and the process list.
  • --toolchain fills in or overrides a toolchain.
  • --platform selects an architecture.
  • --report FILE writes a Markdown report for an issue or pull request.
  • --source DIR swaps the tested commit for your working tree, so you can check a fix before pushing.

The README also documents exit codes per verdict, so scripts and coding agents can loop on the result without parsing output. A reproduced failure exits 2 and a passing step exits 0, which with --source means your fix works. Other verdicts use 3 to 5, and 1 means FailTrace itself failed. For Apple silicon users, the README says --platform linux/arm64 runs natively. In its example, that took about 40 seconds against about 9 minutes under amd64 emulation, with the same verdict. That is one illustrative project example, not a general benchmark.

Safety and limits​

repro executes repository code, including pull-request code, on your machine. The README says the container sees only the workspace. It has no access to your home directory or the Docker socket, and it gets no secrets unless you pass them. Only reproduce runs whose code you would be comfortable executing.

The README lists these limitations:

  • A failing step that is an action rather than a script can't be replayed.
  • Windows and macOS jobs are only approximated in Linux.
  • Steps run as root, where CI uses the runner user.
  • GitHub's runner image has many preinstalled tools that may be missing. The README's example notes the image is plain Ubuntu plus common packages.
  • linux/amd64 jobs are emulated on ARM machines.
  • Artifacts from other jobs are unavailable.

A mismatch between local and CI results can therefore come from the environment rather than from a flaky or phantom failure. Treat "not-reproduced" as a clue, not an acquittal.

Installation and maturity​

macOS and Linux users can use an install script that downloads the latest release and verifies its SHA-256 checksum. Developers can also build from source with go build. The README also gives go install github.com/Ri4dH/failtrace/cmd/failtrace@latest for Go 1.24 or later. It lists prebuilt binaries for macOS, Linux and Windows on amd64 and arm64. The repository page we reviewed showed no release entries, so confirm that a release exists before you rely on the install script or binaries. Windows users in particular should check the Releases page before counting on a binary.

The repository showed single-digit stars and a handful of commits, so this is a very young project. The README's roadmap lists Homebrew packaging, a gh failtrace extension and replay of common actions such as golangci-lint-action as planned. The author invites reports of failed runs that FailTrace gets wrong, which is a candid way to put it.

FailTrace versus GitHub's built-in re-run​

GitHub's own re-run feature is a different tool. GitHub's docs say you can re-run a workflow, its failed jobs or specific jobs up to 30 days after the initial run. A run can be re-run at most 50 times. Re-runs reuse the original commit SHA and ref. That helps you check for flakiness, but it still runs on GitHub's infrastructure and doesn't give you a local shell. FailTrace aims at the case where you want to poke at the failure yourself.

Bottom line​

FailTrace is a promising, honest early tool for a real problem: finding the first error and recreating the environment that produced it. Its distinctions between diagnosis, plan and reproduction are useful, and its stated limits are clear. For Linux jobs with script-based failing steps, it could save real time. For action-based failures, Windows or macOS runners, or jobs that depend on artifacts or secrets, expect approximations. All of the capability claims here come from the project's own documentation, so test it on a throwaway failure before you trust it with a hard one.

 

References

  1. Ri4dH builds FailTrace to reproduce GitHub Actions failures on local machines - news.lavx.hu news.lavx.hu 2026-11-19T04:07:21.768000+00:00
  2. Re-running workflows and jobs - GitHub Docs docs.github.com
  3. GitHub - Ri4dH/failtrace: Stop guessing why CI failed. Reproduce it locally. · GitHub github.com