You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 9758571
Browse filesBrowse the repository at this point in the historyBrowse files
fix(app): audit-log-store stress test could trip vitest's internal 60s RPC watchdog on slow Windows CI
The 'caps retained events' test does 5,000+ synchronous
recordEvent() calls with no yield point. On a slow Windows CI runner this
crossed 60s of unbroken synchronous work (61.7s in the v1.4.0 release
build), tripping vitest 3.x's own internal birpc RPC heartbeat — a
hardcoded 60s timeout, independent of and not covered by testTimeout
(only removed in vitest 4, see vitest-dev/vitest#8164/#8297). The whole
run then fails with "[vitest-worker]: Timeout calling onTaskUpdate" even
though every assertion passes. Fixed by yielding to the event loop via
setImmediate every 250 iterations so the RPC channel stays serviced
regardless of total wall-clock time. Applied the same hardening to the
other 5,000+-iteration loop in this file (the addon-gated 2x-cap stress
test) as cheap insurance against the same failure mode.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
0 commit comments