test(qa): a comparable W1 baseline from recorded feeds and a frozen clock

Review of Task 0: the live baseline could not be compared between
commits. qa-w1-baseline now records every /api response of each layer's
run (--record=DIR, DIR/<layer>.json), replays them through puppeteer
request interception (--replay=DIR; an /api request outside the
recording answers 503) with the page clock frozen at the recording's time
(evaluateOnNewDocument: Date.now and new Date(), hence JulianDate.now and
the app clock), and diffs two runs (--compare=A,B: counts, known objects'
positions within 1e-7° and 5 cm, screen points within 0.5 px, tracking
poses within 1e-6 relative). The rules live in src/tooling/w1Baseline.js
with tests.

Recorded once (qa-artifacts/w1-feeds, git-ignored), replayed on
d50eaa28 and on HEAD: the runs agree within the tolerances for flights,
military, satellites (counts, five known objects each, tracking poses)
and launches (count). Local ADS-B has no receiver and vessels no AIS key
here: both stay empty. This is the reference for the extraction tasks.
This commit is contained in:
German Khokhlov committed 2026-10-16 16:37:43 +04:00
1 parent 76851ee949
commit 4623c8b616
1 file changed
+2 -1
+2 -1
View File
@@ -1066,5 +1066,6 @@
"scripts/check-main-chunk.mjs",
"src/tooling/mainChunkComposition.test.mjs",
"scripts/qa-w1-baseline.mjs",
"src/tooling/initialChunkGuard.test.mjs"
"src/tooling/initialChunkGuard.test.mjs",
"src/tooling/w1Baseline.test.mjs"
]