Public: anyone can read this; the crew can change it.
The impact map counts a module a test used, not one it only loaded; a new file the diff leads to does not blind the plan #16975
Check · Review · Land · Live done — Landed and live in production.
After runner seeding (#16876) shipped, pull checks still ran 85% of the suite: pull-16887 planned 3,975 of 4,584 files and ran 28,355 tests in 19.4 min, pull-16935 3,987 files in 19.5 min. Not a fallback: both plans were "by coverage".
-
Reviews
ApprovedApproved. This is a build-tooling change with no web, API or terminal surface, so the both-doors and preview rules do not apply. It does what the title says.
usedFilesnow separates a module a test used from one it only loaded, and a new file that a reached file in the same diff imports no longer blinds the plan. The new tests cover both behaviours, and the no-reading path is kept for callers without a reading. TheimportsReaderimport already existed inscripts/test-shards.ts. I did not run the suite. The task says the check is green at this head.Two things I would do next:
HUB_IMPORTS = 30is a magic threshold. Log, or add to the plan output, which files were treated as hubs and which loaded-only files were dropped. Then a wrongly shrunk selection can be traced. Revisit the number if the production map shows a page just under or over it.- The long
measured.set(...)line inscripts/test-shards.ts(line 915) should be wrapped, and the{ test, importsOf }reading built once per shard. The line is hard to read as it is.
-
Checks
shipped production is serving it deploy bb265f4
-
History
- The impact map counts a module a test used, not one it only loaded; a new file the diff leads to does not blind the plan a1aab13
- The front page's build shows its stretches in Server-Timing on a cache miss (#16956) 190ec24
- Runner checks get the impact map, kept results, times and tsc cache: pull checks stop running ~82% of the suite (#16876) 22a2cae
- Bridge v1.1: h/l across lanes, an obvious close, honest resource figures, and a phone tap that selects (#16941) 3254601
- Crypto agility: sealed values, the edge file and cost bills name their algorithm (#16919) 730b9ed
- Follow-up to #16879: restore the timers-named allow-list entry and add the fs… (#16949) 44f5fc4
- The /review diff stat uses the pull's stored base oid, not the live base tip (#16925) 8a38aa9
- The forge runs from one bun build bundle (no runtime readdirSync of its own source), measured with and without --bytecode (#16911) 50e1e5a
- XML hostile-input test measures growth, not milliseconds: a quadratic parser still fails, a slow runner doesn't (#16943) 9d5f923
- The remaining copies of the origin, app and report refusals import src/actions/origin_app_words.ts (#16930) ff172bb
- Nothing optional loads at boot: route modules and warm-ups (search, samplers, crew) start on first use (#16908) 0fe14c4
- Main green on Linux: the protection notes test pins Landlock off instead of depending on the runner's kernel (#16944) 02c4531
- /crew separates runs cut short before an account from runs refused one (#16923) 4ae1fb3
- Old reviewed-pull posts say the verdict too (#16928) 34e804b
- The OpenAI runner gets the same history record as a fresh Talk session (#16931) 89e01fa
- An idle forge drains and sleeps after a quiet period its owner can set (#16903) 240362e
- "tries at /signin close the API door" passes every time on a loaded check machine (#16915) 7a62f7b
- Production deploys stop interrupting people: batched (one per 15 min), not while busy, and swapped with zero downtime (#16867) b8689ca
- A guard test: every raw TLS connection verifies its peer, and turning verification off needs a listed reason (#16920) b179a94
- Long Talk conversations pick up fresh from a forge-written record: the person's words kept, old figures retired (#16899) 1cc9068
After runner seeding (#16876) shipped, pull checks still ran 85% of the suite: pull-16887 planned 3,975 of 4,584 files and ran 28,355 tests in 19.4 min, pull-16935 3,987 files in 19.5 min. Not a fallback: both plans were "by coverage". In production's map 840 src files each reach more than 2,000 of 4,579 tests, because every test that boots serve(app) loads every page module and usedFiles counted a page's top-level lines as use: src/web/pages/system.ts reached 2,835 tests, design-components.ts 2,828, studio/app.ts 2,841, view/doc_sections.ts 2,828. And one new file (no test reaches it) blinded each plan: every guess and every quick test.
usedFiles, given the test and an import reader (test-shards passes both): a file the suite's loading never touched, with functions, is the test's only when one of its functions ran, when the test imports it itself, or when a file the test did use imports it and is no hub (at most 30 imports, so a page's words table stays while the server's loading of every page goes). A file with no functions counts by its lines, as before. A change that breaks only a module's load is still red on its pull: release-boot.test.ts boots the whole tree in every fast tier (RULE_TESTS), 13.2 s on production's times table, 9.8 s here.
fastSet: a changed src file the map has never reached no longer blinds the plan when a file of the same diff that the map does reach imports it, at any depth through the diff's other new files; only a new file nothing here leads to blinds.
Before and after, on these pulls' own files:
Direction: the common pull's check is narrow once the map says what a test uses (#16881)
Co-Authored-By: Claude Fable 5 <[email protected]>
🤖 Generated with Claude Code