seriesoftubes/scripts
Frederic Jung 0342d90657
Faster tests, split everywhere: one sharded CI for pushes and releases
- The harness builds the DOM without the page's 2 MB of script text and
  runs the scripts straight in the window: a page load in tests takes
  about half the time (jsdom's parser was slow on the script text).
- That also took the game's source out of the DOM, which showed three
  tests that matched a phrase in the page source rather than the screen;
  they now check the panel, the routing window and the dictionary.
- CI plans its split once and runs the tests on 6 runners; every run on
  main records each file's time and caches it, so the parts stay even
  without anyone refreshing tests/durations.json.
- auto-release.yml and release.yml call the same sharded tests instead
  of running all 170 files on one runner each (11 and 15 min); a release
  is tested once, before it is tagged.
- Audit: five tests that duplicated a gameplay rule or checked nothing
  are gone; the two slowest checks sample a third of the cities, and a
  year of play to reach one due date became a moved due date.
2026-11-07 07:24:09 +01:00
..
agent Tests wait for state instead of sleeping, on free ports 2026-11-05 11:38:26 +01:00
legacy Docs: the single-file page and English keys lasted until 1.34 2026-10-27 11:28:17 +01:00
lib Faster tests, split everywhere: one sharded CI for pushes and releases 2026-11-07 07:24:09 +01:00
build.js Release notes: a story for big releases, and the 2.0 story 2026-10-30 16:28:19 +01:00
dev.js Fix CodeQL code-scanning alerts 2026-11-05 21:24:26 +01:00
gpu-bench.js Fix CodeQL code-scanning alerts 2026-11-05 21:24:26 +01:00
i18n-add.js Harden workflows and dev scripts against code-scanning findings 2026-11-05 21:04:21 +01:00
i18n-check.js Fix CodeQL code-scanning alerts 2026-11-05 21:24:26 +01:00
mcp.js Fix CodeQL code-scanning alerts 2026-11-05 21:24:26 +01:00
perf-bench.js Fix CodeQL code-scanning alerts 2026-11-05 21:24:26 +01:00
perf-browser.js GPU benchmark: isolate trials, time the card, say which map drew 2026-11-04 22:37:13 +01:00
perf-fixture.js Performance benchmark on a big network, posted on every PR 2026-10-26 06:39:23 +01:00
perf-stats.js Benchmark in real Chromium too, and only call a row slower when the samples say so 2026-10-26 12:04:57 +01:00
release-notes.js Release notes: a story for big releases, and the 2.0 story 2026-10-30 16:28:19 +01:00
route-fuzz.js Differential random games: main's page and this checkout's play the same seeded game move for move 2026-11-01 21:44:30 +01:00
test-timings.js Faster tests, split everywhere: one sharded CI for pushes and releases 2026-11-07 07:24:09 +01:00
test.js Faster tests, split everywhere: one sharded CI for pushes and releases 2026-11-07 07:24:09 +01:00
weekly-architect.js Fix CodeQL code-scanning alerts 2026-11-05 21:24:26 +01:00
weekly-puzzle.js Fix CodeQL code-scanning alerts 2026-11-05 21:24:26 +01:00
weekly-scenario.js Fix CodeQL code-scanning alerts 2026-11-05 21:24:26 +01:00