Skip to content

Allow flaky-only test suites to become empty - #13456

Merged
gh-worker-dd-mergequeue-cf854d[bot] merged 2 commits into
masterfrom
alexeyk/allow-empty-flaky-test-suites
Nov 15, 2026
Merged

gh-worker-dd-mergequeue-cf854d[bot] merged 2 commits into
masterfrom
alexeyk/allow-empty-flaky-test-suites

Conversation

@AlexeyKuznetsov-DD

Copy link
Copy Markdown
Contributor

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 runFlakyTests is present and skipFlakyTests is absent. Preserve the existing precedence and runtime selection flags.

The failure signature was:

Execution failed for task ':dd-java-agent:instrumentation:guava-10.0:test'.
> No tests found for given includes: [**/*ForkedTest*](exclude rules)

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 :spotlessCheck
  • python3 tooling/check_codeowners.py

Contributor Checklist

Jira ticket: not provided.

@AlexeyKuznetsov-DD AlexeyKuznetsov-DD added type: bug fix Bug fix comp: testing Testing tag: no release notes Changes to exclude from release notes tag: ai generated Largely based on code generated by an AI or LLM comp: build labels Nov 14, 2026
@AlexeyKuznetsov-DD AlexeyKuznetsov-DD self-assigned this Nov 14, 2026
@AlexeyKuznetsov-DD
AlexeyKuznetsov-DD marked this pull request as ready for review November 14, 2026 17:21
@AlexeyKuznetsov-DD
AlexeyKuznetsov-DD requested review from a team as code owners November 14, 2026 17:21
@AlexeyKuznetsov-DD
AlexeyKuznetsov-DD requested review from bric3 and claponcet and removed request for a team November 14, 2026 17:21
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 14, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-14T17:22:58.665715Z 4b0d5b2 Draft marked ready
🔒 Security Review ✅ Completed 2026-11-14T17:24:34.586267Z 4b0d5b2 Draft marked ready
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@datadog-official datadog-official Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bits Code Review: PASS

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.

Was this helpful? React 👍 or 👎

Open Bits AI session

🤖 Bits Code Review · Commit 4b0d5b2

@datadog-official

This comment has been minimized.

@dd-octo-sts

dd-octo-sts Bot commented Nov 14, 2026 •

Copy link
Copy Markdown
Contributor

🟢 Java Benchmark SLOs — All performance SLOs passed

Suite Status
Startup 🟢 pass

SLO thresholds are defined here based on automatically generated metrics. A warning is raised when results are within 5% of the threshold.

PR vs. master results
Scenario Candidate master Δ (95% CI of mean)
startup:insecure-bank:iast:Agent 14.02 s 13.91 s [+0.0%; +1.5%] (maybe worse)
startup:insecure-bank:tracing:Agent 12.83 s 13.00 s [-2.1%; -0.5%] (maybe better)
startup:petclinic:appsec:Agent 17.84 s 17.70 s [+0.0%; +1.5%] (maybe worse)
startup:petclinic:iast:Agent 17.54 s 17.73 s [-2.0%; -0.1%] (maybe better)
startup:petclinic:profiling:Agent 17.30 s 17.31 s [-0.9%; +0.9%] (no difference)
startup:petclinic:sca:Agent 17.76 s 17.78 s [-1.0%; +0.7%] (no difference)
startup:petclinic:tracing:Agent 16.67 s 16.81 s [-1.8%; +0.2%] (no difference)

Commit: dbba5d4a · CI Pipeline · Benchmarking Platform UI


Load and DaCapo benchmarks can be triggered manually in the GitLab pipeline. Results will appear in the Benchmarking Platform UI after completion.

@bric3 bric3 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thx for the fix.

@AlexeyKuznetsov-DD

Copy link
Copy Markdown
Contributor Author

/merge

@gh-worker-devflow-routing-ef8351

gh-worker-devflow-routing-ef8351 Bot commented Nov 15, 2026 •

Copy link
Copy Markdown

View all feedbacks in Devflow UI.

2026-11-15 18:02:04 UTC ℹ️ Start processing command /merge


2026-11-15 18:02:08 UTC ℹ️ MergeQueue: pull request added to the queue

The expected merge time in master is approximately 1h (p90).


2026-11-15 18:56:33 UTC ℹ️ MergeQueue: This merge request was merged

@gh-worker-dd-mergequeue-cf854d
gh-worker-dd-mergequeue-cf854d Bot merged commit 391dcc2 into master Nov 15, 2026
685 checks passed
@gh-worker-dd-mergequeue-cf854d
gh-worker-dd-mergequeue-cf854d Bot deleted the alexeyk/allow-empty-flaky-test-suites branch November 15, 2026 18:56
@github-actions github-actions Bot added this to the 1.69.0 milestone Nov 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

comp: testing Testing tag: ai generated Largely based on code generated by an AI or LLM tag: no release notes Changes to exclude from release notes type: bug fix Bug fix

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants