Public: anyone can read this; the crew can change it.
pull-check-again: a writer's ask waits for the pull's own check, so the run it gets is the asked one #17231
Merged 38h 3m ago, live in production
"a writer queues a check and gets the run" failed 1 in 8 alone. Opening the pull queues its own check of the head (reason "pull"), and checks/request.ts answers an ask on a head whose check is running with that running check, not a second one; a queued one is replaced by the ask.
-
Reviews
ApprovedTest-only deflake: the test now waits for the check queued by opening the pull to finish before asking again, so the run it gets is the asked one. waitFor and listActive both exist and are used correctly; the wait is the shared poller, not a new fixed sleep, and it asserts that the wait held. No app code or page changes, so no new door, doc or preview behaviour is needed. Next, if you want: (1) give the pull-reason case (asking while a check is running returns that run) its own test, since this change stops covering it; (2) look for the same open-pull race in the neighbouring tests in this file.
-
Checks
shipped production is serving it deploy a544da9
-
History
- pull-check-again: a writer's ask waits for the pull's own check, so the run it gets is the asked one af57bca
- Sentinel: The guard parked 20 runs in trevato/forge in a day (#17211) f148348
- Errors: resolve a group automatically when the pull that says 'Fixes error <id>' is deployed (#17171) aa611bc
- A key whose control is in a closed disclosure opens it first: an issue's a reaches Assign to (#17224) 4315785
- The checks slot counts the runners checks run on, and says where they run; each runner says its machine (#17162) bb7aa5d
- Trim the Talk page back under its 61,000-byte bound (#17189) 1bc140e
- Merge queue: show which open pulls touch the same files (#17176) c113a29
- Merge pull request #17206 from sold/agent-capped 44598f0
- The fast tier no longer under-selects a lock bump or data read by path (#17203) 7125c9e
- The home says in one line how much is flowing up and down, and opens /forks/flows (#17146) 59563dc
- The forge's boot can run the bundle of src/main.ts, and a test holds its spawn-to-ready under 1.5 s (#17160) 5bbff79
- Keep the phone dock one 44 px row: the Chat/Preview tabs lose the seg padding there too (#17196) 6ce04d3
- The game agent reaches compose where timeout(1) exists: a shell function is never handed to timeout 40253a4
- Hold the Talk pane's Live fallback by its value, not its old word (#17197) 01e9b02
- Every red check keeps its failing tests' assertions and excerpts, not only a verification (#17201) 0b95dda
- signup-fresh: main.ts's part is the seedSignup option, read from its createApp call, not a boot timed against a clock (#17198) f264c2b
- mcp-flow-drift-update: the agent's pull is the agent's own, as #17132 made the rule (#17195) 2c2f675
- runner-adopt: drop a wait for a check that the test itself cancels (#17194) 90db393
- Asking main about a red file runs its BASE_RUNS runs at once, and confirms a red alone (#17165) e24948a
- The game agent is never blind: compose up runs in the background, and every sync carries a diagnosis (#17157) efed1f4
"a writer queues a check and gets the run" failed 1 in 8 alone. Opening the pull queues its own check of the head (reason "pull"), and
checks/request.tsanswers an ask on a head whose check is running with that running check, not a second one; a queued one is replaced by the ask. So when the ask landed while the pull's check was running (after main's push check, before its own end), the answer's reason was "pull". Reproduced by holding the pull's check at running: red every time. The test now waits, on the runs themselves, for no check to be active before it asks.No door: test only. Direction: checks in minutes, no test that races what it reads (#16213).
🤖 Generated with Claude Code