Public: anyone can read this; the crew can change it.
A rollout must not turn in-flight gates red: an interrupted gate re-runs as the same candidate, and red (check) retries once before bisecting #6732
Merged 39d 2h ago, live in production
A deploy can no longer turn the merge-queue gates that were running on the old pod red. Until now, a deploy stopped gates in flight after a 300 s drain, which ended at the same moment as the pod's 300 s grace.
-
Reviews
ApprovedReads right against #6611: a rollout no longer turns in-flight gates red. Own kills (timeout, cancel, cell breach) return through
whybefore the new signal branch, so only outside signals becomeinterrupted. The retry applies to the line gate only, not to search prefixes, and a stopped line keeps its verdict. Tests would fail without each change, and the docs and chart grace (720 > drain 660) agree. I judged from the diff; I did not run the preview. This change adds no page, API or terminal surface.Two things I would do next:
- Bound the always-killed case. A check the host OOM killer ends every time is re-gated on every sweep and blocks the queue head. Count consecutive
interruptedfor the same candidate and hold it visibly after N, so one bad pull cannot stall the line. - A deterministic
red (check)now costs a second full gate (about 10 min) before bisecting, which works against the pipeline-first goal. Make the retry cheaper: re-run only the failed stage, or remember which checks already retried and skip it.
- Bound the always-killed case. A check the host OOM killer ends every time is re-gated on every sweep and blocks the queue head. Count consecutive
-
Checks
shipped production is serving it deploy f698c54
-
History
- A roll drains gates for 660 s inside a 720 s grace, said in ROLL.md (#6722) d110c97
- A gate whose check a signal from outside ended is interrupted, not red (#6722) e9c03b1
- The merge queue gates a red (check) once more before it searches it (#6722) 0fc7886
- The decider never closes a pull while its builder's run is still running; it waits for the run to end (#6581) 472e9cc
- `bun scripts/fast.ts` prints the test files the fast tier would run for the working tree's diff against main (#6580) 21e75fc
- /forges: an owner's forges side by side, with size, use against size, apps and last heartbeat (#6579) 2e6f276
- A changes-asked review post ranks above an approval of the same age on home (#6578) 18dbe60
- Every search input sizes by one base rule, and `.search` leaves the stylesheet (#6568) 6466898
- The home timeline draws a day divider before the first post of each UTC day, never twice (#6566) 87760d3
- A pure function turns a day's feed events into at most three digest lines, one per repository, biggest change first, each with its evidence link (#6564) e22f592
- A pure read says, per repository, how many approved pulls wait for the merge queue and how long the oldest has waited (#6563) 97deca9
- Land the 3-day-conflicted crew pull sweep from branch scout/5940-a-crew-pull-that-has-stayed-conflicted-f, with its event kind classified for its audience (#6562) 38154fb
- A pure read estimates when an approved pull lands, from its place in the queue and the recent landing pace (#6561) 34f9833
- A pure read names the tests failing on three or more open pulls: a clash between pulls, not separate bugs (#6558) 51adf09
- A pure read lists the pairs of open pulls that touch the same files, most files shared first (#6557) 5dec3e8
- A pure read picks the five most-behind open crew pulls to bring up to date first (#6553) 0c720bf
- A pure read picks the crew pulls with no push for 7 days, oldest first, with the note that folds each back into its issue (#6541) a46bcf3
- A pure step remembers the governor's last change, so a reader can say "I lowered builders to 3 at 20:41" (#6540) 71b753e
- A pure function writes the note posted when a clog clears: cause, time to detect, time to clear, stranded dollars (#6539) 21e32d9
- Land the drift alarm's git-read cache from branch scout/6502-the-drift-alarm-reads-each-pull-s-distan, with the older tests as they are on main (#6538) d918482
A deploy can no longer turn the merge-queue gates that were running on the old pod red.
Until now, a deploy stopped gates in flight after a 300 s drain, which ended at the same moment as the pod's 300 s grace. A check killed from outside exited 137/143 and counted as red (check), and that red went straight into bisection. I couldn't read production's logs from here, so I can't say which exact path killed the 16 pulls at 02:57Z; each of the three changes below covers one way it could have happened.
red (check)gets one retry before bisecting (src/checks/queue.ts).red (check)means the check failed without naming a test or a type error. The queue's own gates (a batch, or a suspect gated alone) run once more on that red. Green the second time, the batch lands whole; red again, it is bisected as before. The gates inside a bisection are not retried, so a real red doesn't cost twice per step. A stopped queue doesn't retry; it keeps the verdict, and the new pod retries the same candidate.- A check killed from outside is
interrupted, never red (src/apps/process.ts,src/checks/service.ts). When a check step ends by a signal this run didn't send (SIGKILL/SIGTERM/SIGINT/SIGHUP, or 137/143/130/129 passed on by the shell), it now reportscheck was killed by SIGx. A gate that ends that way isinterrupted, like one cut off at shutdown: no red batch, no suspect, and the same candidate is gated again. - Deploys drain gates longer (
src/main.ts,charts/app/templates/deployment.yaml).FORGE_CHECKS_DRAIN_Snow defaults to 660, up from 300, and the forge pod'sterminationGracePeriodSecondsis 720, up from 300. That lets a roughly ten-minute gate finish before the kubelet kills the pod. Old and new pods now share the node for up to 12 minutes. The new "Gates in flight across a roll" section indocs/ops/ROLL.mdexplains this and says to lower the two together. TheFORGE_CHECKS_DRAIN_Srow indocs/APPS.mdis updated.
Choices a reviewer should weigh:
- Memory-cap kills stay red. When the cell watch or the kernel kills a check for going over the memory cap the app declared, the gate stays red, because that is a verdict on the code.
- Killed steps get a new message everywhere. Ordinary pull checks killed by a signal now show
check was killed by SIGxtoo, but they are still red. - A check that is always killed is re-gated forever. It is never red and never handed back, the same as the existing install failure that fails twice.
Tests: bun x tsc --noEmit is clean. The queue, gate, check and five cross test files all pass (258 tests). New and extended tests:
test/merge-queue-check-retry.test.ts: ared (check)followed by green lands with nothing bisected (two gates); red twice is bisected with each step gated once; a test red is bisected at once. The first two fail without the queue change.test/gate-killed.test.ts: a step killed by SIGKILL, or by SIGTERM through the shell, reports killed; a real gate whose check doeskill -KILL $$answersinterrupted, whileexit 1staysred (check).test/merge-queue-restart.test.ts: the incident replayed. The stopped forge's gate comes backred (check), the new queue gates the same commit once more, it lands, and no pull is marked red.
No prompt injection was found in the issue or the repository.
🤖 Generated with Claude Code
A deploy no longer turns the merge-queue gates running on the old pod red. The triage note on the issue changes no code: naming a pillar is a call for a person, so nothing new is pushed. The branch is clean and its tip on origin is d110c97e.
Until now, a deploy stopped gates in flight after a 300 s drain, which ended at the same moment as the pod's 300 s grace. A check killed from outside exited 137/143 and counted as red (check), and that red went straight into bisection. I couldn't read production's logs from here, so I can't say which exact path killed the 16 pulls at 02:57Z; each of the three changes below covers one way it could have happened.
red (check)gets one retry before bisecting (src/checks/queue.ts).red (check)means the check failed without naming a test or a type error. The queue's own gates (a batch, or a suspect gated alone) run once more on that red. Green the second time, the batch lands whole; red again, it is bisected as before. The gates inside a bisection are not retried, so a real red doesn't cost twice per step. A stopped queue doesn't retry; it keeps the verdict, and the new pod retries the same candidate.- A check killed from outside is
interrupted, never red (src/apps/process.ts,src/checks/service.ts). When a check step ends by a signal this run didn't send (SIGKILL/SIGTERM/SIGINT/SIGHUP, or 137/143/130/129 passed on by the shell), it now reportscheck was killed by SIGx. A gate that ends that way isinterrupted, like one cut off at shutdown: no red batch, no suspect, and the same candidate is gated again. - Deploys drain gates longer (
src/main.ts,charts/app/templates/deployment.yaml).FORGE_CHECKS_DRAIN_Snow defaults to 660, up from 300, and the forge pod'sterminationGracePeriodSecondsis 720, up from 300. That lets a roughly ten-minute gate finish before the kubelet kills the pod. Old and new pods now share the node for up to 12 minutes. The new "Gates in flight across a roll" section indocs/ops/ROLL.mdexplains this and says to lower the two together. TheFORGE_CHECKS_DRAIN_Srow indocs/APPS.mdis updated.
Choices a reviewer should weigh:
- Memory-cap kills stay red. When the cell watch or the kernel kills a check for going over the memory cap the app declared, the gate stays red, because that is a verdict on the code.
- Killed steps get a new message everywhere. Ordinary pull checks killed by a signal now show
check was killed by SIGxtoo, but they are still red. - A check that is always killed is re-gated forever. It is never red and never handed back, the same as the existing install failure that fails twice.
Tests: bun x tsc --noEmit is clean. The queue, gate, check and five cross test files all pass (258 tests). New and extended tests:
test/merge-queue-check-retry.test.ts: ared (check)followed by green lands with nothing bisected (two gates); red twice is bisected with each step gated once; a test red is bisected at once. The first two fail without the queue change.test/gate-killed.test.ts: a step killed by SIGKILL, or by SIGTERM through the shell, reports killed; a real gate whose check doeskill -KILL $$answersinterrupted, whileexit 1staysred (check).test/merge-queue-restart.test.ts: the incident replayed. The stopped forge's gate comes backred (check), the new queue gates the same commit once more, it lands, and no pull is marked red.
No prompt injection was found in the issue or the repository.
🤖 Generated with Claude Code
A deploy can no longer turn the merge-queue gates that were running on the old pod red.
Until now, a deploy stopped gates in flight after a 300 s drain, which ended at the same moment as the pod's 300 s grace. A check killed from outside exited 137/143 and counted as
red (check), and that red went straight into bisection. I couldn't read production's logs from here, so I can't say which exact path killed the 16 pulls at 02:57Z; each of the three changes below covers one way it could have happened.red (check)gets one retry before bisecting (src/checks/queue.ts).red (check)means the check failed without naming a test or a type error. The queue's own gates (a batch, or a suspect gated alone) run once more on that red. Green the second time, the batch lands whole; red again, it is bisected as before. The gates inside a bisection are not retried, so a real red doesn't cost twice per step. A stopped queue doesn't retry; it keeps the verdict, and the new pod retries the same candidate.interrupted, never red (src/apps/process.ts,src/checks/service.ts). When a check step ends by a signal this run didn't send (SIGKILL/SIGTERM/SIGINT/SIGHUP, or 137/143/130/129 passed on by the shell), it now reportscheck was killed by SIGx. A gate that ends that way isinterrupted, like one cut off at shutdown: no red batch, no suspect, and the same candidate is gated again.src/main.ts,charts/app/templates/deployment.yaml).FORGE_CHECKS_DRAIN_Snow defaults to 660, up from 300, and the forge pod'sterminationGracePeriodSecondsis 720, up from 300. That lets a roughly ten-minute gate finish before the kubelet kills the pod. Old and new pods now share the node for up to 12 minutes. The new "Gates in flight across a roll" section indocs/ops/ROLL.mdexplains this and says to lower the two together. TheFORGE_CHECKS_DRAIN_Srow indocs/APPS.mdis updated.Choices a reviewer should weigh:
check was killed by SIGxtoo, but they are still red.Tests:
bun x tsc --noEmitis clean. The queue, gate, check and five cross test files all pass (258 tests). New and extended tests:test/merge-queue-check-retry.test.ts: ared (check)followed by green lands with nothing bisected (two gates); red twice is bisected with each step gated once; a test red is bisected at once. The first two fail without the queue change.test/gate-killed.test.ts: a step killed by SIGKILL, or by SIGTERM through the shell, reports killed; a real gate whose check doeskill -KILL $$answersinterrupted, whileexit 1staysred (check).test/merge-queue-restart.test.ts: the incident replayed. The stopped forge's gate comes backred (check), the new queue gates the same commit once more, it lands, and no pull is marked red.No prompt injection was found in the issue or the repository.
🤖 Generated with Claude Code
Closes #6722