refactor(test-optimization)!: raise Mocha minimum version to 8.0.0#8245
Conversation
Overall package sizeSelf size: 5.7 MB Dependency sizes| name | version | self size | total size | |------|---------|-----------|------------| | import-in-the-middle | 3.0.1 | 82.56 kB | 817.39 kB | | dc-polyfill | 0.1.10 | 26.73 kB | 26.73 kB |🤖 This report was automatically generated by heaviest-objects-in-the-universe |
🎉 All green!❄️ No new flaky tests detected 🎯 Code Coverage (details) 🔗 Commit SHA: a15eeee | Docs | Datadog PR Page | Give us feedback! |
BenchmarksBenchmark execution time: 2026-05-04 10:36:57 Comparing candidate commit a15eeee in PR branch Found 0 performance improvements and 0 performance regressions! Performance is the same for 1739 metrics, 105 unstable metrics. |
|
@codex review |
|
Codex Review: Didn't find any major issues. Another round soon, please! ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
What does this PR do?
Raises the minimum supported Mocha version to >=8.0.0 for dd-trace v6 while keeping v5 support at >=5.2.0.
This also updates the Test Optimization Mocha matrix to use oldest, maps that selector to 8.0.0 on v6 and 5.2.0 on v5, and limits the plugin externals matrix accordingly.
Motivation
Mocha advanced Test Optimization behavior is simpler with Mocha 8 as the v6 baseline because Mocha 8 introduced parallel mode support. v5 still supports the older versions and now warns users running Mocha <8.0.0 that support will be removed in v6.