Most CI re-runs come from fixes, and almost all conflicts come from two file groups
232 re-runs and 14 conflicts measured over six days.
Most CI re-runs come from fixes, not from the base branch moving
We looked at the 60 pull requests merged into the main 5.0 branch in six days, from 28 Nov to 4 Dec 2026. CI is the automatic test run that starts when someone pushes a change.
Those 60 pull requests were tested 292 times in total. Every test after the first is a re-run. That makes 232 re-runs, or 4.9 test rounds per pull request on average (M).
65% of re-runs are plain fixes, with the base untouched. Re-runs caused only by the base moving are 18 of 232, or 7.8%. Measured
So the first guess, "we re-run because the base keeps moving", is mostly wrong. The next section shows the full split.
One re-run in three is a catch-up, but most of those carry a fix too
We classified each re-run by what the push did. The bars show the six classes:
Show as table
| re-runs | |
|---|---|
| Fix, base unchanged | 150 |
| Fix and catch-up | 52 |
| Catch-up only | 15 |
| Fix and conflict | 11 |
| Conflict only | 3 |
| No change | 1 |
Measured from git and CI run data. Counts are of tested commits.
A catch-up means merging the newest base branch into a pull request so it is tested against it. Catch-ups that added nothing else were 15, and 3 more only resolved a clash between changes. Together that is 18 re-runs, 7.8% (M).
Time tells the same story. The 60 pull requests used 2,645 minutes of CI clock time. 80% of that was re-runs, and about 5% was pure catch-up (M). These are wall-clock minutes, not money.
Fourteen real conflicts happened, and 13 came from two file groups
A merge conflict is when git cannot combine two changes to the same lines. Across 81 catch-ups, 14 conflicted (17%), and 11 of the 60 pull requests hit at least one (M).
Which files caused them? Here they are, with how often:
| File | Conflict events | What it is (G) |
|---|---|---|
| nix/bun-deps.inputs | 7 | One dependency hash line |
| nix/ferretry.nix | 7 | The matching hash, always paired |
| scripts/validate/context-imports.ts | 6 | One exemption line per feature |
| contract/ids.ts (ferrets) | 2 | An id registry entry per harness |
Only 1 of 14 looks like two people changing the same logic (M count; the reading is G). 13 of 14 came from the nix hash pair or the import exemption list. The counts overlap, because the nix pair and the id registry sometimes conflicted in the same event. These are mechanical files, so a tool can fix them.
Conflicts also cluster. Seven fell on 28 and 29 Nov, from sibling pull requests started on one base (G).
Catching up only on conflict looks safe, but the evidence is thin
What if we stopped catching up unless git reports a conflict? We checked what the setup does today, from the CI file.
- CI tests the pull request merged with the base at the time it starts. Base moves do not restart it.
- The branch has no protection rules, so nothing forces "up to date before merge".
- 16 of 60 pull requests (27%) already merged while behind the base, by 1 to 11 changes (M).
Only 2 of those 16 touched a file that the missing changes also touched. We found no sign they broke the base. We did not run the merged trees, so this is absence of evidence, not proof (G).
A catch-up protects against one thing: a clean merge that still breaks behaviour. Of the 15 clean catch-up-only rounds, 12 ended green and 1 ended red (M). Across all classes, 28 of 292 rounds ended red (10%).
Three fixes are proposed, in order of payoff, and the first is the cheapest
These are our judgement (G), not measured results.
- Kill the two mechanical conflictsRegenerate the nix hash files in CI or with a merge driver, and replace the exemption list with one file per feature.
- Catch up once, right before mergeA merge queue tests the exact merged result once and removes all 18 base-only re-runs. It needs a branch rule that does not exist yet.
- Study the fix rounds nextThe 65% fix class is the real cost. We cannot yet tell review fixes from CI fixes.
Fix one removes most conflict rounds, and each conflict round is a human or agent stop plus a re-run. Fix three needs one more measurement: join review-comment times with failed-job logs.
What we did not test is just as important:
- Conflicts resolved before a pull request's first test are invisible, so counts are lower bounds.
- Money and queue time: only wall-clock minutes were measured.
- Whether the 16 behind-base merges ran correctly: the merged trees were not run.