Repository navigation
Fix ATR eligibility with fail-fast test ordering - #12508
gh-worker-dd-mergequeue-cf854d[bot] merged 2 commits into
Conversation
Codex Review SummaryThis 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. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 17075435ad
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
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".
There was a problem hiding this comment.
More details
The retry condition now checks the explicit known-flakes-only setting before it checks flaky-list membership. Fail-fast ordering can load an empty flaky list without stopping retries for other eligible tests.
🤖 Datadog Autotest · Commit 1707543 · What is Autotest? · @DataDog review to ask questions · Any feedback? Reach out in #autotest
This comment has been minimized.
This comment has been minimized.
CI Visibility Test Environment - nebula-release-pluginJob Status: 🟢 success
Baseline: median of Tests run to verify that CI Visibility behavior has not regressed in the current PR. |
CI Visibility Test Environment - sbt-scalatestJob Status: 🟢 success
Baseline: median of Tests run to verify that CI Visibility behavior has not regressed in the current PR. |
CI Visibility Test Environment - reactive-streams-jvmJob Status: 🟢 success
Baseline: median of Tests run to verify that CI Visibility behavior has not regressed in the current PR. |
CI Visibility Test Environment - netflix-zuulJob Status: 🟢 success
Baseline: median of Tests run to verify that CI Visibility behavior has not regressed in the current PR. |
CI Visibility Test Environment - pass4sJob Status: 🟢 success
Baseline: median of Tests run to verify that CI Visibility behavior has not regressed in the current PR. |
CI Visibility Test Environment - heliboardJob Status: 🟢 success
Baseline: median of Tests run to verify that CI Visibility behavior has not regressed in the current PR. |
🟡 Java Benchmark SLOs — Performance SLO warning (near threshold)
PR vs. master results
Commit: Load and DaCapo benchmarks can be triggered manually in the GitLab pipeline. Results will appear in the Benchmarking Platform UI after completion. |
CI Visibility Test Environment - sonar-kotlinJob Status: 🟢 success
Baseline: median of Tests run to verify that CI Visibility behavior has not regressed in the current PR. |
CI Visibility Test Environment - jolokiaJob Status: 🟢 success
Baseline: median of Tests run to verify that CI Visibility behavior has not regressed in the current PR. |
CI Visibility Test Environment - okhttpJob Status: 🟢 success
Baseline: median of Tests run to verify that CI Visibility behavior has not regressed in the current PR. |
CI Visibility Test Environment - spring_bootJob Status: 🟢 success
Baseline: median of Tests run to verify that CI Visibility behavior has not regressed in the current PR. |
CI Visibility Test Environment - sonar-javaJob Status: 🟢 success
Baseline: median of Tests run to verify that CI Visibility behavior has not regressed in the current PR. |
|
/merge |
|
View all feedbacks in Devflow UI.
The expected merge time in
|
What Does This Do
Fixes an interaction between Auto Test Retries (ATR) and fail-fast test ordering.
Fail-fast test ordering loads the known-flaky test list so those tests can run first.
ExecutionStrategyincorrectly treated that list's availability as "retry only known flakes," even whenDD_CIVISIBILITY_FLAKY_RETRY_ONLY_KNOWN_FLAKES=false. Consequently, known-flaky failures retried while ordinary failures did not.After this change, membership in the known-flaky list affects ATR eligibility only when known-flakes-only retries are explicitly enabled.
Motivation
With ATR and fail-fast ordering enabled:
Loading data for one feature should not implicitly enable a separate ATR restriction.
Additional Notes
The JUnit 5 regression covers fail-fast ordering with an empty known-flaky list while known-flakes-only retries remain disabled. It fails without the
ExecutionStrategychange because no retry attempts are emitted.Validated with:
:dd-java-agent:instrumentation:junit:junit-5:junit-5.3:test --tests JUnit5Test:dd-java-agent:agent-ci-visibility:test --tests datadog.trace.civisibility.test.ExecutionStrategyTest:dd-java-agent:agent-ci-visibility:spotlessCheck:dd-java-agent:instrumentation:junit:junit-5:junit-5.3:spotlessCheckContributor Checklist
type:and (comp:orinst:) labels in addition to any other useful labelsclose,fix, or any linking keywords when referencing an issueUse
solvesinstead, and assign the PR milestone to the issueJira ticket: N/A