Troubleshooting
This page has the faults that a team meets most often, and the fix of each.
Red main
- Stop the merges. Each merge on a red
mainhides the cause and breaks the next test trees. - Read the failed job. Find the first commit with the failure (
git bisecton the gate, or the CI history). - Choose the fastest safe repair: a small fix PR, or a revert of the cause. A revert needs no design decision and is often the fastest.
- Run the full gate on the repair, merge it, and wait for green CI.
- Write a river entry of kind
problemfor the failure and one of kindfixedfor the repair. Set the CI lamp. - Ask why the gate did not catch it. If CI has a check that the gate lacks, add it to the gate.
A stacked PR after a rebase merge
A PR B that was built on a PR A has the old commits of A. After A merges by rebase, those commits have new SHAs on main, and B shows them again or conflicts.
- Find the commits of B alone:
git log --oneline A_OLD_HEAD..B_HEAD. - Rebase only those:
git rebase --onto origin/main A_OLD_HEAD B_BRANCH. - Ask the worker of B to do it, or do it in your test tree and tell the worker the new base. Do not push to a worker's branch without the worker's knowledge.
A flaky check
A check that fails and then passes with no change.
- Treat the first failure as real. Read the log.
- Run the check alone three times on the same tree. Record each result.
- If it fails only some of the time, file an issue with the logs, and tell the owner. Ask before you mark it as flaky.
- Do not merge on a retry that passed while the cause is unknown. A flaky check can hide a real race.
- Fix the cause (a timeout, an order of a map, a shared port, a clock) in its own PR.
A full disk from build caches
Several worktrees and build caches fill a disk fast.
- Check:
df -hon the disk of the scratch folder and on the disk of the caches. - Remove the worktrees of merged PRs:
git worktree remove <path>, thengit worktree prune. - Clean the caches of your own finished worktrees only. Do not clean a cache that another session uses.
- Use one shared build cache for all worktrees when the build tool supports it.
- Check the disk before you make a new tree.
A session that lost its context
A worker or the coordinator itself restarts, or its context is compacted.
- Rebuild the state from the facts, not from memory: the open PRs, the queues on the status page, the river,
PROCESS.md, and the milestone of today. - Send the worker a fresh brief (
briefs.md) with its open items and their PRs. - Check that no item has two owners. Ask the worker for one line for each item: PR, state, checks.
- Write in the river that the session restarted, if the owner needs to know.
For the coordinator: keep a short notes file outside the repo with the open batch, the tested SHA, and the next step. Read it first after a restart.
The status page shows old data
- Static copy: check that
data.jsonis valid JSON (jq . data.jsonprints the place of a fault). A bad file keeps the last good data on the page, so the page looks frozen. Checkmain.updated. - GitHub branch: the source line of the page says "GitHub cannot be reached" or "A document is not JSON", and names the document. The page keeps the last good data. Check the push of the data branch and the JSON of the document that it names.
- Artifact: check that the write to the store succeeded, and that the document path is right (
state/main, notmain). - A link opens nothing: the short repo name of the crate is not in
main.repos, or the entry fails the checks ofdata-shapes.md.
Next: the data format.