test: keep three slow repo-scan and fuzz tests clear of the 5 s timeout
Merged
SA
7d ago+100+100+012345678901234567890123456789-31-31-01234567890123456789
Summary
Three unit tests ran close to the 5 s vitest timeout and failed full-unit runs on a loaded host, at base too. No timeout is raised.
- Daemon fixture guard: parsed all 4,391 source files to follow imports from 5 seed files. It now parses only files that could import a family member. Its prefilter follows the guard's own resolver, and any file with a backslash counts.
- Snapshot producer guard: 4 tests each parsed all 2,013 production modules. It now skips modules whose text has no
producer, noPRODUCER, and no backslash. - Fuzz harness: every spawned
run.tsloaded fast-check. Only generated runs load it now.
Contract change: the fixture guard no longer fails on a syntax error in a file outside its candidate set. Lint and typecheck still parse every file.
Validation
Timings measured at base c37bb9563 and head on this host:
| Test | Base | Head |
|---|---|---|
daemon-fixture-launches | 3.4-3.8 s | 1.3 s |
snapshot-producer-emitters, each repo scan | 3.4 s | 1.05-1.4 s |
fuzz/harness promotion case | 2.37 s | 1.62 s |
- Equivalence: with every source file seeded with a raw launcher, old and new fixture scans return the same 19 violations. Producer scans are identical on all 2,013 modules.
- Four new fixture-guard cases, found by review, pass at base and head.
pnpm check:affected --run --head c181a8469passed every runnable check, including full unit (21,401 passed).
Reviewed with sol-loop: 3 rounds with gpt-6.2-sol. Sol verdict: approved
Created with Claude Opus 5.5 in Claude Code.