Hangar Floor
DemoDownloadGitHub

Troubleshooting

This page has the faults that a team meets most often, and the fix of each.

Red main

  1. Stop the merges. Each merge on a red main hides the cause and breaks the next test trees.
  2. Read the failed job. Find the first commit with the failure (git bisect on the gate, or the CI history).
  3. 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.
  4. Run the full gate on the repair, merge it, and wait for green CI.
  5. Write a river entry of kind problem for the failure and one of kind fixed for the repair. Set the CI lamp.
  6. 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.

  1. Find the commits of B alone: git log --oneline A_OLD_HEAD..B_HEAD.
  2. Rebase only those: git rebase --onto origin/main A_OLD_HEAD B_BRANCH.
  3. 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.

  1. Treat the first failure as real. Read the log.
  2. Run the check alone three times on the same tree. Record each result.
  3. 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.
  4. Do not merge on a retry that passed while the cause is unknown. A flaky check can hide a real race.
  5. 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.

  1. Check: df -h on the disk of the scratch folder and on the disk of the caches.
  2. Remove the worktrees of merged PRs: git worktree remove <path>, then git worktree prune.
  3. Clean the caches of your own finished worktrees only. Do not clean a cache that another session uses.
  4. Use one shared build cache for all worktrees when the build tool supports it.
  5. 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.

  1. 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.
  2. Send the worker a fresh brief (briefs.md) with its open items and their PRs.
  3. Check that no item has two owners. Ask the worker for one line for each item: PR, state, checks.
  4. 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

Next: the data format.