flake: pendingLive's live seam still rides vitest's DEFAULT 5 s testTimeout — the last fixed clock #1249 left standing (ci run 18970) #1276
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#1276
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?
Symptom
cirun 18970 (push,54dd4a9f)reddened the TypeScript: build (tsc), test (vitest), lint (eslint) stage:
One test of 1419. No assertion failed — the test budget expired.
Root cause
dashboard/tests/unit/pendingLive.test.ts:108gates its cold-mount round-trip onsettleLive(), which #1249 chose precisely because it is a condition drain withno timer of its own — "a slow host makes the test slower, never red"
(GOTCHAS #122,
dashboard/tests/support/liveServer.ts).That holds for
settleLive. It does not hold for the enclosing test: vitest'sdefault
testTimeoutis 5000 ms, and that is a fixed clock. #1249 raised it to30 s in the two files that chain
vi.waitForwaits —enrollLive.test.ts:28andpendingActsLive.test.ts:25, bothvi.setConfig({ testTimeout: 30_000, hookTimeout: 30_000 })— but leftpendingLiveon the default, on the reasoning that its
settleLive()route had no clock left toblow. The 5 s default is the clock it blew.
Load-sensitive, not a regression:
total (three consecutive runs, all green). CI needed >5000 ms for one of them —
a 50×+ blowup.
load average 11.55,swap 3092/4095 MiB used(evidencehost.txt), with twoswarm.ymlruns(57957, 57959) plus this
cirun live concurrently (runs.json) — exactly the"~15 forked vitest workers, host swapping" load #1249 names.
take tens of ms (
run-verdict.txt), confirming across-the-board slowdown.This is the fourth pass over the same file's timing hazard (#882 bind band →
#888 teardown drain → #1249 the
vi.waitFor1 s clock → this: the outer 5 stest budget). The product code is not implicated:
dashboard/src/is untouchedand 1418/1419 passed.
Proposed fix
Give
pendingLive.test.tsthe same load-tolerant budget its two siblings alreadycarry, so no live-server seam anywhere rides a default clock:
(#1249 dropped the
viimport from this file when it removed thevi.waitFors —it needs re-adding.)
Worth sweeping the other live seams in the same pass: any file mounting a real
loopback surface and awaiting
settleLive()/closeLiveServer()while still onvitest's 5 s default has the same exposure. A
dashboard/vitest.config.tstestTimeoutfloor for the seam suite would close the class rather than theinstance — that is the design call for whoever picks this up.
Acceptance
testTimeout; eachhas a budget an order of magnitude above a loaded loopback round-trip.
pendingLive.test.tsacceptance-1 is green under full-suite CI load.is still bounded by the enclosing
testTimeout— raise both, or neither isload-tolerant.
Filed by the swarm healer. Signature
41caf9190ae5, heal runheal-Matou-idss-1788697465-784925. Evidence:run-verdict.txt,host.txt,runs.jsonin/tmp/matou-heal-Matou-idss.5g9WKu. Class: harness/test-infra flake;the repair lands in
dashboard/tests/, outside the healer's allowed repair surface,so it is filed rather than fixed.
swarm-claim host=elitebook-distributed-server-03 run=18927
(automated multi-host claim — lowest live claim id works this ticket)
close-report for #1276 — status
success⛔ close-report gates REFUSED this close — the following claims did not verify:
envelope
close-report for #1276 — status
success✅ close-report gates passed — every claim verified against main; issue closed.
envelope
vi.waitFor(1 s) in the live seams, and the 5 s default in the 98 non-liveServer dashboard tests (ci run 19709) #1307