Public: anyone can read this; the crew can change it.
Full suite red: test/snapshot.test.ts #17703
Merged 10h 54m ago, live in production
The backups-page test in test/snapshot.test.ts took about 2 s of CPU, over the 2 s per-test budget. I split it into three tests, and the file passes (12 tests). bun x tsc --noEmit and bun scripts/gate.ts --fix showed no problems.
-
Reviews
ApprovedTest-only change; it does what the issue asked. The one 2 s test is now three, each keeping its original assertions, and the password hash runs once for the block through a shared session cookie. Each test also signs in lazily, so any one runs alone. A test-only change has no door to add. The 'stranger' check stays in the third test, after the passphrase assertions.
Two things I would do next:
- Run the file under full-suite load (
bun test ./test/snapshot.test.ts --rerun-each 10beside other suites). The split moves the work between tests and does not shrink it: the file still takes about 6.5 s, and the three snapshots now sit in two tests rather than one. The 2 s margin is untested under load. snapshotted()runs in tests two and three, so the setup is paid twice. If a test nears the budget again, take it into abeforeAll.
- Run the file under full-suite load (
-
Checks
shipped production is serving it deploy 5fa2c54
-
History
- test/snapshot.test.ts: the backups page test is three, sharing one sign-in, so none takes 2 s of CPU 637df14
- The kept-log flush timer runs in background(), as #17634's timer rule asks (#17697) 22820dc
- The infra tool names every cloud resource, what each is part of and attached to (#17695) 516a968
- test/pulls-merge-budget.test.ts once answered a conflict where there is none (#17700) 82c923d
- Home: the lanes, their graphs, then one row of figures, each number said once (#17678) 2119f0d
- The forge keeps its stall and minute memory lines in its data dir, so its performance history survives a release (#17681) d3e188b
- The agent says back which /forge answers it has, and never writes one twice (#17696) 6164cd2
- A background job's error is logged and counted, never thrown into the process (#17634) c8ebb1e
- An answer to /forge is kept until the box says it has it (#17694) ffc21dc
- Game pages: the address a friend is given works from outside, and the last game words say what they mean (#17672) 5623a57
- game_command rows are kept for ever, and their reads have no index on service and time (#17691) 621b363
- Every full sync says the agent reads the proxy's jars (#17688) bb539a6
- Runs: a run's page says what it is, whether it passed, why and what next, and every reference on it opens (#17636) 4b87c05
- A game command whose answer never comes says so (#17661) 486ac5c
- An app goes back to its previous version in one action (#17669) 4f47e1f
- Merge pull request #17663 from sold/game-door f1c89a7
- Main's push check runs on a connected runner and keeps only its verdict here (#17687) 9e2eabc
- The JSON-404 walk asks only routes that name something; the 38 that name nothing and are off get their own test (#17686) f95c6ce
- A second game box on one compose file is refused, and no box is made on a repository nobody named (#17675) 00779a4
- Merge pull request #17685 from sold/cloud-ties 0e2c1ef
The backups-page test in test/snapshot.test.ts took about 2 s of CPU, over the 2 s per-test budget. I split it into three tests, and the file passes (12 tests). bun x tsc --noEmit and bun scripts/gate.ts --fix showed no problems. I did not run the whole suite or the check under full-suite load, so the 2 s margin is untested there.
- What changed: the test did one password sign-in, three snapshots and a "Snapshot now" call in a single test. It is now three tests: no store, a store with the list and the button, and a passphrase with the stranger check. Alice's session cookie is created once and shared, so the password hash runs once for the block.
- What I left out: nothing is added to
SLOWinscripts/gate.ts. Every assertion is kept, so only the grouping changed. The file's total time is unchanged at about 6.5 s, since the same work now runs across three tests. - To try it:
bun test ./test/snapshot.test.ts --rerun-each 10.
No door: this is a test-only change. I reused no existing function.
🤖 Generated with Claude Code
The backups-page test in
test/snapshot.test.tstook about 2 s of CPU, over the 2 s per-test budget. I split it into three tests, and the file passes (12 tests).bun x tsc --noEmitandbun scripts/gate.ts --fixshowed no problems. I did not run the whole suite or the check under full-suite load, so the 2 s margin is untested there.SLOWinscripts/gate.ts. Every assertion is kept, so only the grouping changed. The file's total time is unchanged at about 6.5 s, since the same work now runs across three tests.bun test ./test/snapshot.test.ts --rerun-each 10.No door: this is a test-only change. I reused no existing function.
🤖 Generated with Claude Code
Closes #17701