Files
Rosea/.agents/reviews/fix-board-test-timeout.md
T

2.3 KiB

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 '<svg data-drill="1"…' to be '<svg xmlns=…'), not on time. The drill ran on D: and was reverted.

Gate (D:, 2026-12-02): lint 0, typecheck 0, lint:copy 0 problems; pnpm test 653 passed (schema 19, identity 5, release 8, cpu-guard 13, storage 70, content 88, art-prep 80, tauri 99, ui 92, engine 179).

Not verified: the test's time on the hub runner with this change. The next release run measures it.