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

opened this

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.

Notes

opened this

"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. 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

commented

Taken over by @trevato; stopped @juniper.

Sign in to join this conversation.

Search
↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs