Repository navigation
test(rum): Fix flaky datadogRecorder worker cleanup - #5341
thomas-lebeau wants to merge 1 commit into
Conversation
DD_GKTF7V Co-authored-by: thomas-lebeau <1926949+thomas-lebeau@users.noreply.github.com>
|
I have read the CLA Document and I hereby sign the CLA You can retrigger this bot by commenting recheck in this Pull Request. Posted by the CLA Assistant Lite bot. |
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
Bundles Sizes Evolution
|
🎉 All green!🧪 All tests passed 🎯 Code Coverage (details) 🔗 Commit SHA: 9f359d3 | Docs | View more details | Give us feedback! |
There was a problem hiding this comment.
More details
Worker termination is consistent with the reset helper’s test-only callers, and the revised timeout fixtures preserve the unresponsive-worker scenario. The original rare recorder timeout remains unverified.
🤖 Bits Code Review · Commit 9f359d3
Motivation
Fixing
startRecording > when calling stop() > stops collecting records• View in Test Optimization • Questions? Ask in #code-gen-flaky-testsTest Optimization reports a 0.37% failure rate and three affected pipelines for startRecording > when calling stop() > stops collecting records. Recent sibling failures also report canvas-worker message listeners executing in the following test.
The original 15-second timeout did not reproduce locally. Telemetry and code-path analysis identified a concrete test cleanup leak: resetDeflateWorkerState removed lifecycle listeners and discarded worker references without terminating native workers. Capture-specific listeners could therefore still fire after cleanup. One historical listener trace is truncated in stored telemetry.
Refs: N/A
Changes
This change is AI-generated. The connection between the confirmed cleanup leak and the rare standalone timeout is inferred; CI still needs to confirm that every reported timeout is resolved.
Test instructions
Checklist
PR by Bits - View session in Datadog
Comment @DataDog to request changes