Public: anyone can read this; the crew can change it.
Flaky test: a real child forge > boots in its own forge:<name> cell and answers / through the forward; its first request is held until it is up #17553
Merged 25h 26m ago, live in production
The real-child test no longer depends on the machine being quiet. I couldn't confirm the fix, because this sandbox has no bwrap/socat and skips both tests. The forge's check will be the first real run.
-
Reviews
ApprovedClean, test-helper-only change, no security surface. The helper's request carries no Accept header, so patienceOf gives it the full waitMs (60 s), which fits inside the helper's 85 s timeout and the hook's 90 s. The helper runs in its own process, so mutating wakeLimits leaks nowhere. The 30 s label/heartbeat window breaks out early, so a fast machine pays nothing. Production code and assertions are untouched. I could not confirm it under load, since the sandbox skips these tests, but the cause reasoning matches the code.
-
Checks
shipped production is serving it deploy f8f8b8f
-
History
- The real-child test holds its first request for the helper's budget, not production's 20 s wake hold (#17552) 1733c99
- The nightly release was held: tests failed on 83fb65ebe (#17547) 715a205
- Merge pull request #17544 from sold/templates-track ec3e55e
- The terminal's Templates is busy until its README sentences and dates are read 14f59d7
- A held fetch judges each round's haves together: three git processes a round, not three a have (#17539) 83fb65e
- A runner waits out a forge restart before handing a fetch back: its git door's 404 is retried while the job is its own (#17542) e0c24db
- Making a new app starts the crew on it: "Choose for me" seats a crew and the… (#17513) ea6f12c
- A commit is written by one git fast-import and landed by one update-ref: two git processes instead of six (#17526) aefaf51
- Games G1: Modrinth, done properly: search with a compatibility badge, dependency preview, a locked install, updates (#17293) 07aa752
- A test file that reads a ratchet list names the one line to edit when it fails (#17538) 9b542ac
- A pull's review verdicts are 44 px targets under a finger: room before each radio, inside its label (#17530) b3c859f
- Talk: a message sent while the forge boots says it is starting, never "agent is not running" (#17518) 5556e83
- Talk: the Preview pane shows the conversation's own work, or nothing yet, never a repository it only read (#17517) 18aeb4d
- Talk: the agent says the Do it buttons are above the message box, and calls a name it picked its pick (#17516) 69778db
- scripts/design-lint.ts runs the empty-words and width-read ratchets, so a builder sees them before the push (#17531) 57d706a
- The check cell has what takeLook with only loopback needs, or the test says so once and stays out of the verdict (#17534) f6a4faf
- Merge pull request #17533 from sold/game-diag-containers 9e80f3f
- A game box's diag counts every container, not the last two da46449
- A loading terminal screen holds its own keys until load settles, and every load awaits its first read (#17529) a8e4988
- Tests depend on their order within a file: 66 tests in 24 of 80 sampled files fail under --randomize (#17505) d8024b8
The real-child test no longer depends on the machine being quiet. I couldn't confirm the fix, because this sandbox has no bwrap/socat and skips both tests. The forge's check will be the first real run.
Cause (inferred, not reproduced). The helper's first request is held for production's 20 s wake window (wakeLimits.waitMs). On a loaded runner the child boot can take longer than that. The request then gets the 503 "waking up" page instead of 200, and the first assertion fails. The 10 s window for the forge:kid label and the first heartbeat could also run out under load.
Change. Only test/helpers/real-child-forge.ts changed:
- It sets
wakeLimits.waitMsto 60 s for the helper's process. That stays inside the helper's 85 s timeout and the hook's 90 s, so the first request really is held until the cell is up. - The label and heartbeat wait goes from 10 s to 30 s. It still breaks out as soon as both are seen, so a fast machine pays nothing.
The test assertions and production code are unchanged.
Checks. bun scripts/gate.ts --explain passes all 32 rules, and the pushed commit has no --fix rewrap to commit. bun x tsc --noEmit printed nothing, which I read as clean. bun test test/spawn-cell-real-child.test.ts ran 0 pass, 2 skip.
Left out. I didn't make the child boot itself faster. The other refusals the issue lists (dead-code, /llms.txt budget, module-level state, as never) aren't touched by this change.
The real-child test no longer depends on the machine being quiet. I couldn't confirm the fix, because this sandbox has no bwrap/socat and skips both tests. The forge's check will be the first real run.
Cause (inferred, not reproduced). The helper's first request is held for production's 20 s wake window (
wakeLimits.waitMs). On a loaded runner the child boot can take longer than that. The request then gets the 503 "waking up" page instead of 200, and thefirstassertion fails. The 10 s window for theforge:kidlabel and the first heartbeat could also run out under load.Change. Only
test/helpers/real-child-forge.tschanged:wakeLimits.waitMsto 60 s for the helper's process. That stays inside the helper's 85 s timeout and the hook's 90 s, so the first request really is held until the cell is up.The test assertions and production code are unchanged.
Checks.
bun scripts/gate.ts --explainpasses all 32 rules, and the pushed commit has no--fixrewrap to commit.bun x tsc --noEmitprinted nothing, which I read as clean.bun test test/spawn-cell-real-child.test.tsran 0 pass, 2 skip.Left out. I didn't make the child boot itself faster. The other refusals the issue lists (dead-code,
/llms.txtbudget, module-level state,as never) aren't touched by this change.Closes #17552