CI / Start
Run a forge job again on your machine
A job of a forge run failed with a matrix cell, inputs and needs that are hard to set up by hand. src ci run --repro runs that job cell again on your machine, with the matrix cell, inputs and needs of that run.
2 min read
You need:
- The
srcCLI, logged in. Without a login, setTSS_FORGE_URL,TSS_TOKENandTSS_REPO, as for--live. - A checkout of the repository of the run.
1. Copy the repro command
Each job of a run on the forge has a repro command. Open the run, select the job, and copy the command under "Run this job on your machine".
2. Check out the commit of the run
git fetch origin <commit>
git checkout --detach <commit>
If your checkout is at another commit, the repro command stops and prints these two git commands.
3. Run the command
src ci run --repro '<run>/test (shard: 2)'
- A job key has its matrix cell, like
test (shard: 2). Put it in quotes in the shell. - Secrets come from your environment and
.env, as in any local run. You can add--live. - The run gives the matrix cell, inputs and needs, so
--reprotakes no--matrix,--input,--with-needsor--docker.
Done
The job cell runs on your machine as it ran on the forge. Fix it there, as in Run CI jobs on your machine, and push once.