ci flake: pendingLive seam reds on vi.waitFor's implicit 1 s default — the fixed clock #895 removed from settle(), back via waitFor #1249
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#1249
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 18624 (https://git.matou.nz/Matou/idss/actions/runs/18624) reddened the seam atTypeScript: build (tsc), test (vitest), lint (eslint):Accompanied on the same tail by
DOMException [AbortError]: The operation was aborted.Why this is a flake, not a regression
Run 18624 ran on
25d102a8. The previous green seam (run 18585, 2026-09-05 23:45) ran on565bfc47.git diff --name-only 565bfc47 25d102a8 -- dashboard/is empty — zerodashboard files changed between the pass and the fail. The suite is byte-identical across
a green and a red. Same-code pass→fail = load-sensitive timing.
Root cause
dashboard/tests/unit/pendingLive.test.ts:108gates the first card render onwith no explicit timeout — so it rides
vi.waitFor's default 1000 ms wall clock.What has to fit in that budget is a real loopback HTTP round-trip (
startControlPlaneboots a
node:httpserver;httpPendingSourcefetches through the generated client) plusthe Vue reactive re-render. Under seam CI load —
pnpm -r run testforks ~15 vitestworkers, and
host.txtat the time showed swap at 2388/4095 MB — that round-trip canexceed 1 s. When it does, the awaited node has not rendered, the assertion reds on
expected false to be true, and happy-dom aborts the still-in-flight fetch on teardown,which is the
AbortErroron the tail.This is exactly the class
tests/support/liveServer.tsalready documents and fixed twice:#882 and #888 both chased a symptom, and #895 established the rule — a condition wait,
not a clock, so a slow host makes a live seam slower, never red.
settleLive()existsfor precisely this and drains happy-dom's async task manager.
vi.waitFor's default 1 s isthe same fixed clock #895 removed from
settle(), reintroduced through the back door.Scope — not one file
Every
vi.waitForin the live-server seams relies on the 1 s default:tests/unit/pendingLive.test.ts:108tests/unit/pendingActsLive.test.ts:126,134,144,173,181,190tests/unit/enrollLive.test.ts:174,181,210,219All 11 sites carry the same exposure.
pendingLivereds first only because it is the onethat has to complete a cold mount fetch inside the budget.
Acceptance
vi.waitFor's implicit 1 s default —either route through
settleLive()(the #895 condition wait) or pass an explicitload-tolerant
{ timeout }at every site listed above.swarm-pool seam job (~15 forked workers).dashboard/src/**) changes — the transport is not at fault.Evidence
41caf9190ae5, heal runheal-Matou-idss-1788659291-3256512swarm-claim host=matou-dev-server-01 run=18630
(automated multi-host claim — lowest live claim id works this ticket)
swarm-claim host=matou-dev-server-01 run=18630
(automated multi-host claim — lowest live claim id works this ticket)
swarm-claim host=matou-dev-server-01 run=18642
(automated multi-host claim — lowest live claim id works this ticket)
swarm-claim host=matou-dev-server-01 run=18651
(automated multi-host claim — lowest live claim id works this ticket)
swarm-claim host=elitebook-distributed-server-03 run=18652
(automated multi-host claim — lowest live claim id works this ticket)
swarm-claim host=elitebook-distributed-server-03 run=18652
(automated multi-host claim — lowest live claim id works this ticket)
swarm-claim host=matou-dev-server-01 run=18660
(automated multi-host claim — lowest live claim id works this ticket)
swarm-claim host=matou-dev-server-01 run=18661
(automated multi-host claim — lowest live claim id works this ticket)
swarm-claim host=elitebook-distributed-server-03 run=18661
(automated multi-host claim — lowest live claim id works this ticket)
swarm-claim host=elitebook-distributed-server-03 run=18661
(automated multi-host claim — lowest live claim id works this ticket)
swarm-claim host=elitebook-distributed-server-03 run=18661
(automated multi-host claim — lowest live claim id works this ticket)
swarm-claim host=matou-dev-server-01 run=18661
(automated multi-host claim — lowest live claim id works this ticket)
close-report for #1249 — 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