Repository navigation
test(webworker,node): hermetic data roots for the RelaunchedAfterCrash suites (flake) - #89
Conversation
…s sleep (flake) 🤖 Generated with [Claude Code](https://claude.com/claude-code)
|
Claude finished @krassx's task in 21s —— View job Review of PR #89: hermetic data roots for the RelaunchedAfterCrash suitesI read the diff against the surrounding test code. I did not run the test suite, so I'm not claiming any test results. The numbers in the PR description (sleep=0 mutant, x20 under CPU load) are the author's, and I haven't verified them. No real findings. The change is a test-only polling loop in Checks I made
Summary
|
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info
📝 Summary
Priority: ⬇️ Low Change: Other Merge Risk: ⚪ Minimal · up to
|
Summary
Root cause of the recurring 'RelaunchedAfterCrash needs evidence' CI flake is NOT a shared data root. The webworker suite uses a fresh in-memory fake-indexeddb
IDBFactoryper test (no disk, no default root), so it is already hermetic. The failure is a timing race: the test waited a fixedsetTimeout(50)for the async dead-sibling recovery (IndexedDB reads) to emit the event, which loses on a loaded CI runner (expected [] to have a length of 1,expected [2 items] to deeply equal [3 items]).Reproduced deterministically by shrinking the sleep to 0: the exact two CI assertion messages appear. Fix: poll up to 1500ms for the event (same pattern
@bugsee/browseralready uses), keeping a short tail so a wrong second emission still lands. No production code changed.Node: the only default-root RelaunchedAfterCrash suite was already made hermetic in #76;
launch-stop-safety.test.tsuses explicit dirs. No further node change needed.Test plan
pnpm ci:localpasses🤖 Generated with Claude Code