[test optimization] Fix TIA in parallel mocha #7773
Conversation
Overall package sizeSelf size: 4.98 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 |
BenchmarksBenchmark execution time: 2026-03-16 12:42:58 Comparing candidate commit 5ace8b3 in PR branch Found 0 performance improvements and 0 performance regressions! Performance is the same for 228 metrics, 32 unstable metrics. |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #7773 +/- ##
==========================================
- Coverage 80.34% 80.30% -0.05%
==========================================
Files 743 743
Lines 32296 32312 +16
==========================================
- Hits 25948 25947 -1
- Misses 6348 6365 +17 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:
|
This comment has been minimized.
This comment has been minimized.
6ad2e8a to
7d0fe01
Compare
95d02d7 to
d723325
Compare
d723325 to
449748c
Compare
Filter files in ParallelBufferedRunner.run before dispatching to workers, instead of mutating runner.suite.suites (which is empty in parallel mode). Populate skippedSuites so the itr:skipped-suites channel emits proper skip spans for filtered files. Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
Now that ITR suite skipping works in parallel mode, remove the capability gate so the backend knows Mocha supports TIA in parallel. Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
All capabilities are now identical between serial and parallel mode, so remove the isParallel branching from the capabilities assertions. Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
449748c to
5ace8b3
Compare
What does this PR do?
Enables ITR suite skipping in Mocha's parallel mode by filtering the file list before dispatching to workers.
Motivation
Suite skipping was the last feature gated off for parallel mode. The remote config was already available before workers start (via
getExecutionConfigurationin theParallelBufferedRunner.runhook), but the serial-mode skipping mechanism — mutatingrunner.suite.suites— doesn't apply in parallel mode because suites aren't loaded in the main process.Additional Notes
filesarray before callingrun.apply, rather than removing loaded suites fromrunner.suite.suites.skippedSuitesis populated beforerun.applyso theitr:skipped-suiteschannel emits proper skip spans for filtered files on thestartevent.unskippableSuitesis populated fromfilesbefore config is fetched, matching the serial mode pattern.!isParallel &&gate onisSuitesSkippingEnabledand the!isParallelguard onitrSkippedSuitesCh.publish.