diff --git a/.agents/reviews/fix-board-test-timeout.md b/.agents/reviews/fix-board-test-timeout.md new file mode 100644 index 0000000..02539d9 --- /dev/null +++ b/.agents/reviews/fix-board-test-timeout.md @@ -0,0 +1,34 @@ +# Review — `fix/board-test-timeout` + +**What:** the v0.1.2 release runs `r1ahwf1m23cdr` and `rm56nbzfchx5d` both stopped at the `test` step, on one +test: `art-prep` *art/placeholders/ holds exactly what the generator makes* timed out at vitest's default 5 s +(8.7 s in the first run, 5.4 s in the second). Every assertion that ran passed; the work was only slow. The test +reads the 169 SVG stand-ins in `art/placeholders/` and compares each with what the generator makes, while turbo +runs nine other suites on the same runner, in a checkout it has just fetched, so every file is read for the first +time. Run alone on D:, it takes 230 ms. + +**How:** that one test gets `{ timeout: 30_000 }`, as `tools/release` already does for its slow suites +(`copy.test.ts` 60 s, `version.test.ts` 30 s), with a comment giving the measured times. + +## Findings + +1. **Is a longer timeout hiding a real slowdown?** No assertion changed. The test still fails when one stand-in + differs from the generator's output (drill below). 30 s is about three times the slowest time measured on the + runner. A test that takes that long would be a new finding. +2. **Why not a global `testTimeout`?** That would loosen every test in the package, including ones that should + stay fast. Only the test that reads files gets the longer limit. +3. **Why not just dispatch again?** That was tried: the second run failed on the same test. Under the runner's + load, the time sits around the limit, so a retry is a coin toss. +4. **The release:** tag `v0.1.2` points at `666c78f`, which does not have this fix. Nothing was signed or + published from either run. Which tag carries the release is the author's call (HANDOVER). +5. **Soul, privacy, reachability, offline:** a test file only. Nothing a player sees changed, and the bundle is + not rebuilt by this change. + +**Test honesty:** with `app-icon-maskable.svg` changed (an attribute added), the test fails in 64 ms on the +content comparison (`expected ' { } }); - it('art/placeholders/ holds exactly what the generator makes (run pnpm art:board after changing the manifest)', () => { + // 169 files read and compared one by one: 5.4 s and 8.7 s on the release runner, beside nine other suites. + it('art/placeholders/ holds exactly what the generator makes (run pnpm art:board after changing the manifest)', { timeout: 30_000 }, () => { const dir = `${root}art/placeholders/`; const files = readdirSync(dir).filter((f) => f.endsWith('.svg')); expect(files.map((f) => f.slice(0, -4)).sort()).toEqual([...stand.keys()].sort());