Repository navigation
Allow flaky-only test suites to become empty - #13456
gh-worker-dd-mergequeue-cf854d[bot] merged 2 commits into
Conversation
Codex Review Summary: ✅ CompletedThis 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.
More details
Empty-suite allowances are limited to flaky-only runs, preserving skip-flaky precedence and strict discovery checks in other modes. Static review found no actionable defects.
🤖 Bits Code Review · Commit 4b0d5b2
This comment has been minimized.
This comment has been minimized.
🟢 Java Benchmark SLOs — All performance SLOs passed
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. |
|
/merge |
|
View all feedbacks in Devflow UI.
The expected merge time in
|
What Does This Do
Allow flaky-only test runs to succeed when a suite has no flaky tests left, including forked suites. Normal runs retain the empty-test checks.
Motivation
The test-discovery hardening in #13274 correctly rejects misconfigured test tasks, but flaky-only filtering can legitimately select no tests. Fixing or removing the last flaky test must not break the flaky-test job or require a module-specific exemption.
Additional Notes
Gradle can reject an empty selection through either its discovery check or its include/exclude matching check. Disable both only when
runFlakyTestsis present andskipFlakyTestsis absent. Preserve the existing precedence and runtime selection flags.The failure signature was:
Six TestKit regression cases cover removing the final flaky tag from non-forked, forked, and unfiltered tasks, plus strict discovery in default, skip-flaky, and conflicting-flag modes. Enable TableTest formatting for Kotlin in buildSrc alongside its test dependency.
Validation passed:
./gradlew -p buildSrc :test --tests datadog.gradle.plugin.testing.FlakyTestSelectionTest -PrunBuildSrcTests— six cases../gradlew :dd-java-agent:instrumentation:guava-10.0:test -PrunFlakyTests— the affected task succeeds../gradlew -p buildSrc :spotlessApply :spotlessCheckpython3 tooling/check_codeowners.pyContributor Checklist
type:and (comp:orinst:) labels in addition to any other useful labelsclose,fix, or any linking keywords when referencing an issueJira ticket: not provided.