[test optimizaton] Use duration buckets for vitest EFD retries#8288
Conversation
Overall package sizeSelf size: 5.78 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 |
|
✨ Fix all issues with BitsAI or with Cursor
|
5ee02f1 to
20768e7
Compare
BenchmarksBenchmark execution time: 2026-05-07 18:42:40 Comparing candidate commit bae88c2 in PR branch Found 0 performance improvements and 0 performance regressions! Performance is the same for 1749 metrics, 95 unstable metrics. |
d4fc7a8 to
bae88c2
Compare
💡 Codex Reviewdd-trace-js/packages/datadog-instrumentations/src/cucumber.js Lines 1055 to 1058 in d4fc7a8 When Cucumber runs in parallel, this code executes in the coordinator and measures the time between receiving ℹ️ 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?
Updates Vitest Early Flake Detection repeat scheduling to use the
slow_test_retriesduration buckets returned by the settings API.Avoids reporting skipped excess EFD repeats once the first execution duration selects a lower retry count, and marks tests with
test.early_flake.abort_reason=slowwhen the selected bucket aborts additional retries.Motivation
Jest, Mocha, and Cucumber already limit EFD retry attempts based on the duration of the first test execution. Vitest should apply the same API-driven retry bucket behavior so slow tests do not keep scheduling unnecessary EFD retries.
Additional Notes
Stack: 3/5. This is now the base PR for the remaining framework PRs after #8287 merged.