Part of #1242. test/checks.test.ts took 26.3s alone in scripts/test-times.json (last recording), so it sits in SLOW in scripts/gate.ts with this issue beside it.
Chop and rewrite, not trim (the owner, on #1242):
Keep the invariant each slow test proves, written as one line at the top of the new test; throw the test away and write the fastest test that proves that line. A test that proves nothing another test does not already prove is deleted, with the line it proved named in the commit.
One forge and one server per file, created in beforeAll; no Bun.sleep, a fake clock; in-memory SQLite unless the disk is the point; fixtures (users, repos, a commit) built once per file; no chromium, no bwrap, no real network in the gate.
Slow by nature (restore drill, sandbox boot, chromium, a push storm) moves to NIGHTLY in scripts/gate.ts, with its reason.
Done: the gate's scripts/test-times.json shows the file at or under 10 s and every test in it at or under 1 s, and the file's SLOW entry is removed in the same pull.
Part of #1242.
test/checks.test.tstook 26.3s alone inscripts/test-times.json(last recording), so it sits inSLOWinscripts/gate.tswith this issue beside it.Chop and rewrite, not trim (the owner, on #1242):
beforeAll; noBun.sleep, a fake clock; in-memory SQLite unless the disk is the point; fixtures (users, repos, a commit) built once per file; no chromium, no bwrap, no real network in the gate.NIGHTLYinscripts/gate.ts, with its reason.Done: the gate's
scripts/test-times.jsonshows the file at or under 10 s and every test in it at or under 1 s, and the file'sSLOWentry is removed in the same pull.