Public: anyone can read this; the crew can change it.
Speed up four slow test files: route-marks, api-hints, here-pages, talk-phone #17364
Merged 40h 52m ago, live in production
Each of the four files is now split so no test is near the 2 s test budget, and talk-phone is no longer one 21 s file. There were no SLOW entries for these four in scripts/gate.ts, so I had none to delete. They were breaching the budgets themselves, as the issue #17359 report says.
-
Reviews
ApprovedTests only; no runtime, auth, input or output path is touched, so there is no security finding. The route walks are split into eight slices over the same routes, and the provoked-status test in api-hints and the kind-set assertions in here-pages keep what the single walks asserted. The talk-phone fixture moves to test/helpers/talk-phone.ts, with one file per width. No door is needed for a test-only change. Two nits, neither blocking: the 120_000 timeouts on the route-marks and api-hints slices no longer match a 2 s budget, and talk-phone.test.ts has a stray double blank line where the width loop was removed.
-
Checks
shipped production is serving it deploy db96b4c
-
History
- Split four slow test files so each test fits the 2 s budget: route-marks, api-hints and here-pages walk in eight slices; talk-phone is one file a width on a shared fixture 349d12a
- A tab forge keeps its data in SQLite wasm on OPFS behind one small store module (#17303) cd3a4ff
- Load highlighter grammars lazily behind an async loader (#16804 follow-up) (#17332) 49c2c02
- Main's own check starts in a slot of its own: no main check had started since 21:08Z (#17287) bda2cf9
- Main's whole verification runs on a runner and hands back what it measured: releases stop cutting it (#17315) 7256b20
- In the suite, a push to a parent does not move its forks in the background unless a test of following turns it on (#17330) bac72da
- Merge pull request #17226 from sold/cloud-projects 8eddcc7
- Game servers: Minecraft Java as a ready-made /infra design (#17341) 97edd7b
- In the suite, the loop's measured lag reads on time unless a test says otherwise, so a loaded runner sheds no test's page (#17358) b966f8c
- Games G6: Settings: server.properties and Paper config editors with a preview and one commit (#17319) d297ea6
- main-verify-not-cancelled: the last word waits for the later landings' own checks, which hold a release too (#17352) 24f44cb
- Every new forge and app can send email with zero setup through an inherited sending key, with a per-app override (#17338) d994979
- The suite's preload registers its afterEach only under bun test, so a child it preloads outside a test run loads (#17354) 9ba7513
- Cloud projects: each project's row is a dl of its own fields with at most ten resources beneath; infraPage keeps its doc comment ef60e5b
- Cloud projects: check again (fork-flows passed 11/11 alone) 6f6d8d5
- Cloud projects: cloud_resource.made_by is covered for account purge as not a user d776b8d
- One model for every cloud: provider, account, project, resource, read every 5 minutes, grouped on /infra a481201
- An open edge-kept finding is assigned to the owner on production, so no builder is handed it (#17349) a244ed0
- Talk workspace W3: Test what I touched, Commit and Open pull (#17307) 24db731
- anonymous-deep: whether the loop is behind is said by each test, never read from the process's own lag (#17350) 9b843ee
Each of the four files is now split so no test is near the 2 s test budget, and talk-phone is no longer one 21 s file. There were no SLOW entries for these four in scripts/gate.ts, so I had none to delete. They were breaching the budgets themselves, as the issue #17359 report says. I ran bun x tsc --noEmit and the covering guard tests, and all pass. The forge's check runs the full suite.
route-marks,api-hints,here-pages:- The walk that called every route was one 2.4–3 s test in each file. It is now eight slices of the same routes, one test each.
- Alone, the slowest slice is 0.6 s in
route-marksandapi-hintsand 0.8 s inhere-pages. The old tests ran 2.4 s, 2.8 s and 3 s under load. api-hintskeeps the provoked-status checks (401, 403, 404, 409, 422) as their own test. They still assert every status was exercised.here-pageskeeps its kind-set assertions in a test after the slices, and warms/, the site image and the sitemap inbeforeAll. The first request paid a cold-start cost that landed in one slice.
talk-phone:- The fixture, the
phone()helper and the per-width browser tests moved totest/helpers/talk-phone.ts, withwidthTests(width)exported. talk-phone-360,-375and-390each run one width.talk-phone.test.tskeeps the non-browser tests and the two reply/answering tests.- There is no Chromium in this sandbox, so the browser tests skipped here. I could not time the new files; the forge's check will.
- The fixture, the
- Guard tests you named:
unused-exports,module-state,test-honestyand the other scan tests pass. The helper's exports all have callers, and no module-level Map, Set or array is added.
I did not add a docs/features/ or src/tui/ change, since this touches tests only (the commit says "No door"). I wrote no new function, so I did not run similar.ts. gate.ts --fix leaves a note about comment lines over 100 columns in three test files; the nightly rewrap handles them.
To try it: bun test test/route-marks.test.ts test/api-hints.test.ts test/here-pages.test.ts test/talk-phone*.test.ts.
Each of the four files is now split so no test is near the 2 s test budget, and
talk-phoneis no longer one 21 s file. There were no SLOW entries for these four inscripts/gate.ts, so I had none to delete. They were breaching the budgets themselves, as the issue #17359 report says. I ranbun x tsc --noEmitand the covering guard tests, and all pass. The forge's check runs the full suite.route-marks,api-hints,here-pages:route-marksandapi-hintsand 0.8 s inhere-pages. The old tests ran 2.4 s, 2.8 s and 3 s under load.api-hintskeeps the provoked-status checks (401, 403, 404, 409, 422) as their own test. They still assert every status was exercised.here-pageskeeps its kind-set assertions in a test after the slices, and warms/, the site image and the sitemap inbeforeAll. The first request paid a cold-start cost that landed in one slice.talk-phone:phone()helper and the per-width browser tests moved totest/helpers/talk-phone.ts, withwidthTests(width)exported.talk-phone-360,-375and-390each run one width.talk-phone.test.tskeeps the non-browser tests and the two reply/answering tests.unused-exports,module-state,test-honestyand the other scan tests pass. The helper's exports all have callers, and no module-level Map, Set or array is added.I did not add a
docs/features/orsrc/tui/change, since this touches tests only (the commit says "No door"). I wrote no new function, so I did not runsimilar.ts.gate.ts --fixleaves a note about comment lines over 100 columns in three test files; the nightly rewrap handles them.To try it:
bun test test/route-marks.test.ts test/api-hints.test.ts test/here-pages.test.ts test/talk-phone*.test.ts.Closes #17361