[test optimization] Fix attempt to fix in mocha parallel mode #7772
[test optimization] Fix attempt to fix in mocha parallel mode #7772juan-fernandez wants to merge 2 commits intojuan-fernandez/fix-mocha-parallel-retry-statusfrom
Conversation
Overall package sizeSelf size: 4.96 MB Dependency sizes| name | version | self size | total size | |------|---------|-----------|------------| | import-in-the-middle | 3.0.0 | 81.15 kB | 815.98 kB | | dc-polyfill | 0.1.10 | 26.73 kB | 26.73 kB |🤖 This report was automatically generated by heaviest-objects-in-the-universe |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## juan-fernandez/fix-mocha-parallel-retry-status #7772 +/- ##
===============================================================================
Coverage 80.41% 80.42%
===============================================================================
Files 741 741
Lines 32185 32176 -9
===============================================================================
- Hits 25883 25876 -7
+ Misses 6302 6300 -2 Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
✨ Fix all issues with BitsAI or with Cursor
|
BenchmarksBenchmark execution time: 2026-03-13 13:03:33 Comparing candidate commit 6ad2e8a in PR branch Found 0 performance improvements and 0 performance regressions! Performance is the same for 233 metrics, 27 unstable metrics. |
Uncomment and wire up testManagementAttemptToFixRetries config flow from main process to workers. Also remove stale comment in utils.js about flaky test retries not working in parallel mode. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
…ARALLEL_MODE Now that attempt-to-fix works in parallel mode, remove the capability gate so the backend knows Mocha supports ATF in parallel. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
6ad2e8a to
7d0fe01
Compare
What does this PR do?
Enables Attempt to Fix (ATF) in Mocha's parallel mode by wiring up
testManagementAttemptToFixRetriesfrom the main process to workers.Motivation
Building on the base branch which added the retry handler and ATR support to parallel workers, ATF was the only retry-based feature still disabled for parallel mode. The config just needed to be uncommented and passed to workers following the same pattern already used by other features.
Additional Notes
_ddTestManagementAttemptToFixRetriesconfig passthrough in bothmain.js(BufferedWorkerPool.runhook) andworker.js(Mocha.prototype.runhook).utils.js.options.delaywhich Mocha doesn't support in parallel).