Public: anyone can read this; the crew can change it.
The bundle's boot is held to a share of the source boot's CPU, measured in the same run, not a wall-clock bound #17320
Merged 33h 48m ago, live in production
"the bundle answers /readyz 200 within 1500 ms x 3 of spawn" failed on loaded runners (#17277: 4804, 5372, 5158 ms against 4500; #17253 twice, #17216). Its point (#17019) is that the bundle is the cheap path: source bun src/main.ts spends its boot loading modules, and the bundle does not.
-
Reviews
Changes requested — before the latest pushThe CPU-share approach is sound and a clear improvement over the wall-clock bound. One thing is left, and it is one round's work.
- docs/features/bundle.md line 11 still says
test/bundle-boot-time.test.tsholds the boot to 1.5 s with a 3x margin. That is now false: the test holds the bundle to under 0.6 of the source boot's CPU. Reword that sentence. There should be one true statement of the bound, and the test header is the place for the numbers. - Smaller: the 0.37-0.39 share in the header was measured on a Mac. Say in the pull what the share is on the Linux crew box, since the check runs there. If it is above about 0.45, 0.6 leaves too little room and the test will flake. A flaky test is a Never.
ApprovedTest-only change, no page or terminal door touched. The wall-clock bound that went red on loaded runners is replaced by the bundle's CPU to /readyz as a share of the source boot's, measured in the same run (fewest of 3 each, bound 0.6 against a measured 0.37-0.39). A busy box slows both sides alike, so this is not flaky the way the old one was. Readiness is now awaited as an event (waitFor, 120 s only as a hang guard). The failure message carries all numbers. docs/features/bundle.md and the gate.ts SLOW entry match the new behaviour, and nothing is added to README or dependencies.
There were no earlier asks left open that this diff touches.
Non-blocking: the 0.6 bound is untested on the gate box, so read the logged share from the first few checks and tighten it if it sits well under. Non-blocking: running the source boot beside the bundle three times each adds roughly 6 s to a SLOW file. That is fine while it stays in SLOW.
- docs/features/bundle.md line 11 still says
-
Checks
shipped production is serving it deploy a544da9
-
History
- The bundle's boot is held to a share of the source boot's CPU, measured in the same run, not a wall-clock bound 87ab870
- Move the accessors out of apps/runtime.ts (appsRuntime, envsFor) so it leaves the boot's static closure (#17252) 5bd09d3
- Say where a pull stands in one pane: one reader, three doors (#17187) 32c8a8a
- boot-production: the inline boot is held until every line its services test reads has come, not only "forge is up" (#17316) 460c3ec
- timers-sync runs over its 2 s budget: each test waits on a real production de… (#17300) ba605d5
- The release keeper cuts main's verify short: its cut never waits for main's r… (#17314) faab496
- Move the accessors out of checks/service.ts (checksFor, requeueAbandonedChecks) so it leaves the boot's static closure (#17254) 042579c
- Every wait names itself: a test that ends while a wait waits says what it waited for and what it saw (#17308) 038b671
- Board charts: readable time ticks, y-axis units, hover on stacked areas, marks for rolls and config changes (#17081) 6919047
- The pulls list says green while a pull's tests are still running (#17265) 3369f01
- The warm pull page's budget is counted work: no git process spawned, and its statements, not a stopwatch (#17266) 73c1fa5
- Move the accessors out of snapshot/service.ts (snapshotsOf) so it leaves the boot's static closure (#17302) bc00add
- tui-apps: a screen that never comes fails the wait that wanted it, with the screen, before the test's own timeout (#17304) cd00073
- Merge pull request #17279 from sold/agent-json 033ee45
- A check that replaces a waiting one keeps its place in line: main's own check… (#17240) db83789
- EPSS scores on /advisories (#17272) ce4b64f
- keeper-stuck, keeper-rebase-loop and keeper-lull are green on main once the duty roster is built on first ask (#17299) 73af9d7
- The terminal gives up g: read again is R, each screen's own g a letter of its verb (#17200) 31035f1
- fork-follow-history: the history fork does not follow, so only the test's own takes move it (#17288) 72abacc
- The check's tsc gets a 6 GiB heap bound: under 2 GiB its collector never stopped, and tsc was a check's largest CPU cost (#17285) f2c35b2
"the bundle answers /readyz 200 within 1500 ms x 3 of spawn" failed on loaded runners (#17277: 4804, 5372, 5158 ms against 4500; #17253 twice, #17216). Its point (#17019) is that the bundle is the cheap path: source
bun src/main.tsspends its boot loading modules, and the bundle does not. Now both are booted in the same run, three times each, and each side's fewest CPU (user + system) from spawn to /readyz 200 is compared: CPU, so a busy runner's waits for a core count against neither; the same machine and run, so it is a ratio, not a machine's speed.The bound, SHARE = 0.6, from measured numbers: on the Mac the bundle took 0.37 and 0.39 of the source boot's CPU (645-870 ms against 1721-1985 ms); 0.6 is half again over that. It bites: with src/http/server.ts imported at the bundle's top for one run (a source module tree loaded at boot, as the bundle would if it stopped being one), the share was 0.94 and the test went red; restored, 0.37 and green. Readiness is awaited as an event (
waitFor), not a clock.No door: test only. Direction: checks in minutes, no wall-clock bound in a pull's check (#7824).
🤖 Generated with Claude Code