test: deflake map fill gate and wall-locked under load

Map gate (a): measure the fastest of 4 fresh page loads after a warm-up (min-of-N,
TESTING 5.3) against 2x the 1 s DESIGN budget (the documented saturated-host
tolerance), and print every sample; a planted 50 ms/tile decode delay fails it.

Wall editor: an ack dispatch re-renders with the previous server record, and the
panel repopulated every control on every render, so a just-toggled checkbox was
reverted until the wall frame landed (Playwright saw 'did not change its state').
Repopulate only when the record changed (src/panels/wallSync.ts, unit-tested) and
restore the controls when the server refuses an edit.
This commit is contained in:
2026-11-21 17:37:11 +01:00
parent 9c7f9de910
commit ac5a6ac8dc
6 changed files with 160 additions and 35 deletions
+5 -1
View File
@@ -698,7 +698,11 @@ from the prototype, what was missing, what the M3 build added, and the tools it
`cy * sc.cols + cx in explored` and fail the tile gate group again.
- **M4 gate harness.** (a) automated headless-Chromium test with mobile emulation (viewport, dpr, CPU
and network throttle) against the real server path (nginx HTTP/2 + caching); (b) one manual run on
the owner's 5-year-old Android phone. The 2026-11-08 prototype phone run is evidence, not the gate
the owner's 5-year-old Android phone. Gate (a)'s fill is the fastest of 4 fresh page loads after a
warm-up (min-of-N, §5.3), asserted against 2x the 1 s DESIGN budget (the documented saturated-host
tolerance); every sample is printed on every run. Measured 2026-11-21: 439 ms fastest on the dev
host (628, 778, 444, 439), 1.3-1.9 s fastest under a saturated 16-core host, same binary, and a
planted 50 ms/tile decode delay raised the minimum to 4264 ms so the gate fails. The 2026-11-08 prototype phone run is evidence, not the gate
(HTTP/1.1, no-store, zoom 0.5 only, first cold load up to 3.3 s).
- **M4/M5 proving harnesses.** Headless e2e (§10.3 Browser e2e), the independent traffic audit
(§10.3) and the slow-client test (§10.3) are the gates' harnesses; the pass criteria stay in DESIGN