ci seam flake: rendererBuild.test.ts runs three full Vite production builds under a 120s-per-test timeout — one timeout collapses the whole vitest fork pool (~22 unrelated files red) #1182
Labels
No labels
agent-blocked
agent-working
autopilot
bug
deferred
deploy-pending
enhancement
landing-pr
model-haiku
model-opus
model-sonnet
needs-design
needs-info
needs-triage
no-triage
out-of-scope
priority
ready-for-agent
ready-for-human
ready-for-session
rehearsal-183
snapshot-pending
standing-drive
wayfinder:grilling
wayfinder:map
wayfinder:prototype
wayfinder:research
wayfinder:task
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Matou/idss#1182
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Filed by the swarm healer for ci run 16970 (signature
2b6783a3ce4d, commit3daafbdc), which red theTypeScript: build (tsc), test (vitest), lint (eslint)seam stage.Symptom
run-verdict.txt:What is actually happening
app/tests/unit/rendererBuild.test.tshas threeits. Each one callsbuildRenderer(), which runs the real production Vite renderer build (build({ root, configFile, write: false })) from scratch — no build is shared between them. Each carries an explicit}, 120_000)timeout.On the runner (matou-workstation, 8 cores) with the box otherwise busy, the healer measured this one file at 92.9 s wall (36.9 s / 29.2 s / 26.7 s) — already three quarters of the per-test budget with no headroom. When the box is more loaded than that, one build crosses 120 s, its fork is killed mid-flight, and vitest's worker RPC then dies with
Timeout calling "snapshotSaved"— which tears down the fork pool, not just that file.That is where the 23 failed files come from. The arithmetic pins it: CI counted 1058 tests across 112 files; a healthy full run of the same tree counts 1359. ~300 tests in ~20 files never ran at all — they were aborted by the pool teardown, not failed on their merits. The 3 "failed tests" are exactly the 3
its inrendererBuild.test.ts.Not a code defect
The healer ran the full suite on main's tip (
3daafbdc) in the dev shell: 111/112 files, 1353 passed, 6 skipped. The single red (tests/unit/boot.test.ts,go buildfailed) passes 6/6 in isolation — itself a contention artifact. Main's tree is green; the seam is timing-fragile, not broken.Suggested fix
Build the renderer once and share the chunks across all three assertions (a module-scope memoised promise, or
beforeAllin a singledescribe). That cuts the file from three builds to one — roughly 93 s to ~30 s on the same box — and moves it clear of the 120 s cliff. The twodescribeblocks (#233 and #255) assert over the same build output, so nothing is lost by sharing it.Worth considering alongside it: this file is the only one in the suite that does real work at build scale, so a
poolOptionscap orsequential/isolatetreatment for it would stop a future slow build from taking 22 unrelated files down with it. That part is a judgement call for whoever picks this up.Contributing host condition (separate, not fixable from here)
The healer also found four stale processes on matou-workstation, 4–9 days old, burning ~3.4 of 8 cores continuously (
node install.jsx3,make test), all descended from an unrelated repo'scd frontend && CI=true npm ci ... cd backend && go build ./... && make testjob. Swap sat at 4024/4095 MB. That is the load that pushed this file over its budget. It needs a human on the host; it is out of the healer's charter to kill them.swarm-claim host=matou-dev-server-01 run=16990
(automated multi-host claim — lowest live claim id works this ticket)
close-report for #1182 — status
success✅ close-report gates passed — every claim verified against main; issue closed.
envelope