Public: anyone can read this; the crew can change it.
The OpenAPI served-routes walk loads its route modules in the hook and runs in two tests, under the 2 s CPU budget #17525
Merged 13h 19m ago, live in production
Main's check at 15:58 failed: "every described method and path resolves to a handler, not noroute took 2.53 s of CPU, over the 2 s test budget". Measured on the Mac: a first pass over the 545 described routes spent 491 ms of CPU, and a second, warm pass 63 ms.
-
Reviews
ApprovedTest-only change, no page or door touched. It does what the title says: the route modules load in beforeAll, which is not a test's CPU budget, and the walk still makes every request and asserts every handler answers. The two halves cover ROUTES.slice(0,HALF) and slice(HALF) with no gap, and the sanity assertion stays in the first. Both tests fail if a described route is not served, so the walk still guards what it did before.
Two things I would do next:
- The split only delays the budget. When ROUTES doubles again, two halves will be over 2 s again. Chunk by a fixed size so growth adds tests instead of breaking one.
- The preload list is a hand-kept pair of directories (routes, api). A route module placed anywhere else is loaded lazily inside a test again, and its cost lands back in the budget. Derive the list from the modules server.ts lazy-loads, or assert that no route module is outside those two directories.
-
Checks
shipped production is serving it deploy 339cc69
-
History
- The OpenAPI served-routes walk loads its route modules in the hook and runs in two tests, under the 2 s CPU budget 7766c3f
- Merge pull request #17259 from fix/lent-credit-spent-words d70eec9
- Main merged into #17259's head (combined/17259) 4c04aae
- Full suite red: 3 files in check run 01m8vqpbqb5bt9v167f7qa4gs5 (#17511) 32f003b
- Main merged into #17259's head (combined/17259) 83a96a3
- Merge pull request #17365 from fix/landlock-floor-proc-readable f719d48
- Main merged into #17365's head (combined/17365) b7af7b4
- Main merged into #17259's head (combined/17259) 1d91e66
- The fast tier runs its files in one bun test --parallel --no-isolate, longest first, in place of N slices (#17509) 641629b
- Main merged into #17365's head (combined/17365) fe54d4d
- Main merged into #17259's head (combined/17259) cc3ce28
- Talk: a Do it on a held edit to the conversation's preview branch makes the branch, not "no such branch" (#17506) f6b35dc
- Main merged into #17365's head (combined/17365) b725b5f
- Main merged into #17259's head (combined/17259) 052afd2
- Talk: after a Do it, the turn finishes what the person asked; the preview branch is never a separate step (#17508) 5261628
- Main merged into #17365's head (combined/17365) 21f3055
- Main merged into #17259's head (combined/17259) 6578c51
- Full suite red: test/report-link-words.test.ts (#17504) 049e88e
- Main merged into #17365's head (combined/17365) 871811b
- Main merged into #17259's head (combined/17259) de50b26
Main's check at 15:58 failed: "every described method and path resolves to a handler, not no_route took 2.53 s of CPU, over the 2 s test budget".
No door: a test's shape; nothing anyone sees changes. Direction: main is green before anything else; the CPU budget (#17310) catches heavy tests.
Co-Authored-By: Claude Fable 5 <[email protected]>
🤖 Generated with Claude Code