Public: anyone can read this; the crew can change it.

Runner checks get the impact map, kept results, times and tsc cache: pull checks stop running ~82% of the suite #16876

Merged opened this

Check · Review · Land · Live done — Landed and live in production.

Merged

The biggest check-speed win (talk-research/check-speed.md #1). Pull checks run on runners, and runner jobs never got the impact map, kept results, per-file times or the base's tsc cache (tryRunner returned before the seeding in src/checks/runtier.ts).

Notes

opened this

The biggest check-speed win (talk-research/check-speed.md #1). Pull checks run on runners, and runner jobs never got the impact map, kept results, per-file times or the base's tsc cache (tryRunner returned before the seeding in src/checks/run_tier.ts). Live logs said "by imports (no impact map)", and long runs executed about 82% of the suite (27.6k tests); a June-era measurement on this path was 356 s without the map against 22–64 s with it. Expected: about 180–215 runner-min/h saved, roughly two thirds of all check time.

  • tryRunner fills <checks>/<run>.seeds with the same seed functions the local path uses; the job names each file by path, size and sha256.
  • The runner fetches them with the job token through GET /api/v1/runner/jobs/:id/seed, writing each only when size and hash match, after clearing anything the pull's own tree had at those names (a pull can't ship its own map).
  • The seeds dir is removed when the job ends; the sweep handles <run>.seeds like .home.
  • Trust rules unchanged because selection is unchanged: needsFull (kernel, forge.json, package.json, scripts → full), unmapped files guessed, stores written only by default-branch runs. No route accepts a seed back. Lent runners get the seeds too: they describe only the repo's own files.
  • Log: "runner seeds: impact map (N tests), kept results (N tests), test times (N files), build cache from abc1234" or "none kept yet"; test-shards then says "by coverage: …" or "full tier, <file> changed".

test/runner-seeds.test.ts: the door serves only listed seeds, only to the job token, never after the job, accepts no writes; seeded bytes select by the map; kernel or forge.json change → full; unmapped file guessed; a real runner writes all four and the stores stay unchanged; a map in the pull's own tree never reaches the check. A validator found no escape; its three low findings are fixed.

This pull's own check runs full (it touches src/kernel/destroy_reach.ts). tsc and gate clean; 18 files, 338 tests pass. I'll measure median pull-check time before and after on production.

🤖 Generated with Claude Code

Sign in to join this conversation.

Search
↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs