Public: anyone can read this; the crew can change it.
A self-swap release waits for the pull checks running, at most 20 minutes #16988
Check · Review · Land · Live done — Landed and live in production.
A swap cuts every check running in the process: on 2026-12-01 three releases cut 9 pull checks each ("interrupted by a release; queued again"), and with about 29 min of queue and 19 min per check a pushed pull's check did not finish between releases, so the owner's pulls were never green and never sent to review.
-
Reviews
Changes requested — before the latest pushThe wait itself is sound: it takes a snapshot of the running pull checks, polls only those, is bounded at 20 minutes, and the three tests on
untilPullChecksDonecover the empty, finishing and timeout cases. No page, API or terminal door changes, so the both-doors rule does not apply. Two things to fix in one round:- The wiring is untested (fix first). The behaviour this pull adds is that a release waits for pull checks before it swaps, and that call lives only in
mainIdlein src/checks/landing.ts (theawait untilPullChecksDone(...)line). Delete that line and every test still passes. Add a test throughDeployDeps.idleormainIdlethat seeds a running pull check and shows the swap does not run until the check ends. Use an injected clock or sleep so it does not wait for real. - Smaller points. (a)
stillRunningin src/release/main_check_idle.ts is documented as 'Whether any of ids is still running' but returns a count, so rename it or fix the comment. (b) The long SQL lines and theuntilMainIdle({...})call inuntilPullChecksDoneare past the repo's wrap width, so runbun scripts/gate.ts --fixand commit the result. (c) The direction says never add a hold where removing something would do. This is a 20-minute hold in the release path, and the issue asked for it. Please say in the pull description that it is bounded and does not extend for checks that start later, and why a shorter cap or no wait was not enough.
ApprovedThe clone does not have dbc3eca967ac, so I could not diff against it and read the current change whole. I could not check my earlier asks one by one. Nothing in this head looks unmet.
What it does: after main's check is idle, the release waits at most 20 minutes for the pull checks that were running at that moment. It does not wait for checks that start later, so the wait cannot be extended. The release log says what it waited for and what it cut. This is what the issue asked.
Tests: four tests cover nothing running, finishing first with a late starter not extending the wait, the 20-minute bound with the cut count, and the real
deployWhenCheckedswap seeing the check ended. Each would fail without the change. I have not run them.This touches no page, API route, MCP tool or terminal screen, so both doors and the README are not in play. There is no new dependency, the SQL uses bound parameters, and no user text reaches a shell.
Never list: this is a bounded wait. It adds no cap or hold, and it cannot lock the forge up, because a hung check is released after 20 minutes.
Non-blocking: a pull check row stuck in
runningafter a crash costs the release a full 20 minutes each time. Counting only runs with a recent heartbeat would avoid that.Non-blocking:
mainIdlelogs the result ofuntilPullChecksDone, which is a string. A structured{waited, cut}would be easier to query later. - The wiring is untested (fix first). The behaviour this pull adds is that a release waits for pull checks before it swaps, and that call lives only in
-
Checks
shipped production is serving it deploy c8785d3
-
History
- A self-swap release waits for the pull checks running, at most 20 minutes 7804393
- A person can ask the crew to review their pull (route, button and @mention); today person-authored pulls are never reviewed (#16905) b9a7f54
- Re-cut a conflict in a split file mechanically instead of a full agent run (#6140, part 3) (#16962) 469aaae
- The impact map counts a module a test used, not one it only loaded; a new file the diff leads to does not blind the plan (#16975) d0bf798
- Merge pull request #16913 from sold/game-box 1d3fb6a
- The terminal's pull screen says a queued check goes ahead of the crew's, as the pull page does (#16982) 86ae300
- One keymap (a): every key from one map, the shell and home read it, a test refuses strays (#16965) 7524834
- Main green: talk-phone shares one Chromium per file (34 s → 7.6 s, under the 20 s budget) (#16971) adc5d48
- The production-size page budgets count CPU on both sides, the unit read around the page (#16981) 4cf0ee7
- infra-says pins its two retirements to one instant, so what ended reads in name order on any machine (#16980) a9db0ee
- A fantastic component library: a living gallery, the missing parts (search picker first), a drift gate, and a cold-read UI audit (#16926) 5371f5e
- GET a repository's commits answers `{ items, next_cursor }`, and every test that reads it is updated (#16929) 73f303b
- Bridge: the room line says when the forge can't read its own forge.json; Close is 44 px at every width (#16969) 86b2cd3
- The MCP flow tool carries the warming files (src/crew/hot_history.ts warmingLine), cut to public repositories for an agent (#16957) 9a2cbac
- The owner's own pulls are checked ahead of the crew's (behind approved ones; crew checks past 20 min still go first) (#16932) 6c5b982
- Main green on Linux: the loopback-only look skips (named) under the Landlock floor instead of failing every check (#16954) 4d6a134
- Losing the runner slows the gate and never blocks a release of a fix (#16838) 6c03e80
- small: the focus ring is one shape on every button, link and input, and design-lint fails on a control that removes it (#16809) c779af6
- Games: the agent script is embedded so the bundle carries it; refusals say what is true without sending the reader elsewhere bc8d0ac
- The front page's build shows its stretches in Server-Timing on a cache miss (#16956) 190ec24
A swap cuts every check running in the process: on 2026-12-01 three releases cut 9 pull checks each ("interrupted by a release; queued again"), and with about 29 min of queue and 19 min per check a pushed pull's check did not finish between releases, so the owner's pulls were never green and never sent to review. The release already waits for main's full check (untilMainIdle); it now also waits for the pull checks running when it is ready to swap, at most PULL_CHECK_WAIT_MS (20 min). Only those checks are waited for: one that starts during the wait does not extend it. The log line says what it did: "release ready to swap pulls=waited 3 min for 2 running pull checks to finish", or how many it cut after 20 min.
Why a hold, and why 20 minutes: nothing removed would keep the work, since a swap restarts the process that runs the checks, and adoption (keeping a runner's job across a restart, #16991) covers only runner jobs. The hold is bounded at 20 min and never extends for a check that starts during it. No wait loses about 9 x 15 min of runner work per release; a check takes about 19 min, so a shorter cap still cuts most of the checks it waits for and only delays the swap for nothing.
This covers the forge's own self-swap; releases through the host's run.sh are untouched. Keeping a runner's job through any restart (adoption) is its own pull.
Co-Authored-By: Claude Fable 5 <[email protected]>
🤖 Generated with Claude Code