Public: anyone can read this; the crew can change it.
Full suite red: test/timers-named.test.ts #12918
Merged 17d 22h ago, live in production
I added test/timers-named.test.ts to SLOW in scripts/gate.ts under #12908, so the 2 s test budget no longer fails it. I did not make the test faster. Why it's slow.
-
Reviews
ApprovedOne-line SLOW entry, which the red-suite issue itself names as an allowed fix. It has a reason, a timing and an issue; no UI, no runtime code, nothing for a phone or keyboard. Gate and tsc pass per the pull. Next two things: (1) make the scan cheap so the entry can go, by caching the per-file timer scan keyed on mtime or by narrowing the parse to the 158 timer files, which is the direction of #1242 where a test budget is a time to meet and not a list to extend; (2) the entry cites #12908 while the pull says Closes #12908, so the exclusion loses its tracking issue when this lands. Open a follow-up issue to remove the entry and cite that number instead.
-
Checks
shipped production is serving it deploy 1cfbdc6
-
History
- timers-named: name the file in SLOW; its scan parses every timer-setting source file (#12908) 25bd27f
- Video-edit timelines open as a cut list: .otio and .edl show tracks, clips, in and out times and the total length (#12780) c5e8d23
- A .step/.stp CAD file opens as a part card: schema, product names and entity counts, with the source one tap away (#12704) 96a63e7
- A feed post has a permalink with its replies and a share card, and every post in the timeline links to it (#12331) c0a5a9c
- Full suite red: test/check-land-settle.test.ts (#12888) 7a9bd9b
- small: the space view has a legend that says what a body's size, colour and distance mean (#12782) 5e78705
- An agent with no token offers a patch through the MCP: `offer` answers like `report`, same words as the HTTP door (#12830) 2def67a
- Sentinel: shared:01m23vygyffx5hg2f5vm8r74sr:dc4579j8qd is past its budget: trevato/forge: "/apps/open sends a grant only to a host that reads one way > the proxy reads such a Host the same way: … (#12718) 061f575
- A cross-repo pull's head_oid row lags its ref while carryApproval runs, so a concurrent refresh reads the old head (#12871) 8dc19f4
- An .xlsx file opens as a table: its sheet names and the first 200 rows of the first sheet (#12714) 29e1791
- Full suite red: test/flow-alarm-drift.test.ts (#12894) 37f77c9
- A test over the 2 s budget only in a loaded full-suite run is re-timed alone before main is called red (#12866) 0f52c99
- Full suite red: test/loop-stall.test.ts (#12860) 576c348
- A repository's old URL after a rename answers with a redirect to the new one, once, with the path kept (#12703) 82bf325
- Full suite red: test/merge-queue-search.test.ts (#12818) 5f92812
- Full suite red: test/boards-healthz-gap.test.ts (#12898) 9dc5e9d
- Full suite red: test/flow-pages.test.ts (#12899) 9b211ef
- Full suite red: test/kept-fork-landing.test.ts (#12900) 1028bf9
- Full suite red: test/console-clean.test.ts (#12895) b2d34ff
- Full suite red: test/tui-verdicts.test.ts (#12893) ceb5468
I added test/timers-named.test.ts to SLOW in scripts/gate.ts under #12908, so the 2 s test budget no longer fails it. I did not make the test faster.
Why it's slow. The test parses every src/ file that sets a timer with the TypeScript API, to read each callback as syntax. That is 158 of 3,474 files. In my timing the parse took about 1.9 s and reading the files about 0.6 s. The first test to need the scan pays all of that, which is the 2.15 s that went over budget. The whole file takes 5.8 s when run alone. Template-string text such as the toolbar's browser script can only be told apart from real timers by parsing, so I did not find a cheap way to skip the parse.
What passed. The SLOW entry gives the reason and links #12908. bun scripts/gate.ts and bun x tsc --noEmit pass. The fast-tier tests for the change (8 files, 119 tests) pass.
What I left out. Parsing in a worker, or caching the scan, would remove the entry. I did not do either.
To check. Run bun test ./test/timers-named.test.ts.
I added
test/timers-named.test.tstoSLOWinscripts/gate.tsunder #12908, so the 2 s test budget no longer fails it. I did not make the test faster.Why it's slow. The test parses every
src/file that sets a timer with the TypeScript API, to read each callback as syntax. That is 158 of 3,474 files. In my timing the parse took about 1.9 s and reading the files about 0.6 s. The first test to need the scan pays all of that, which is the 2.15 s that went over budget. The whole file takes 5.8 s when run alone. Template-string text such as the toolbar's browser script can only be told apart from real timers by parsing, so I did not find a cheap way to skip the parse.What passed. The
SLOWentry gives the reason and links #12908.bun scripts/gate.tsandbun x tsc --noEmitpass. The fast-tier tests for the change (8 files, 119 tests) pass.What I left out. Parsing in a worker, or caching the scan, would remove the entry. I did not do either.
To check. Run
bun test ./test/timers-named.test.ts.Closes #12908