Skip to content

[NO TICKET] Document that disabled flaky tests are excluded from auto-fix - #39657

Merged
TovRudyy merged 2 commits into
masterfrom
olek.rudyy/document-disabled-flaky-tests-excluded-from-auto-fix
Sep 2, 2026
Merged

[NO TICKET] Document that disabled flaky tests are excluded from auto-fix#39657
TovRudyy merged 2 commits into
masterfrom
olek.rudyy/document-disabled-flaky-tests-excluded-from-auto-fix

Conversation

@TovRudyy

@TovRudyy TovRudyy commented Sep 2, 2026

Copy link
Copy Markdown
Contributor

What does this PR do? What is the motivation?

Clarify in the Flaky Test Management docs that tests in the Disabled state are excluded from the automatic move to Fixed. Disabled tests are always skipped in CI, so Datadog has no signal about whether they are still flaky, and therefore never auto-moves them to Fixed.

The clarification is added in two places: the Fixed automation row (where the auto-move behavior is described and where the in-app link lands) with the full explanation and how to re-enable, and a short note on the Disabled state definition in the state table.

Merge readiness

  • Ready for merge

For Datadog employees:

  • ⚠️ Your branch name MUST follow the <name>/<description> convention and include the forward slash (/).

AI assistance

Used Claude Code to locate the relevant docs section (matching the anchor the Datadog UI links to) and draft the wording.

Additional notes

The #configure-policies-to-automate-the-flaky-test-lifecycle heading text is unchanged, so existing in-app deep links keep resolving.

Clarify in the flaky test management docs that tests in the Disabled state
are never automatically moved to Fixed, explain why, and how to re-enable.
This matches the in-app warnings that link here.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@TovRudyy
TovRudyy marked this pull request as ready for review September 2, 2026 12:29
@TovRudyy
TovRudyy requested review from a team as code owners September 2, 2026 12:29
@github-actions

github-actions Bot commented Sep 2, 2026

Copy link
Copy Markdown
Contributor

Preview links (active after the build_preview check completes)

Modified Files

@datadog-prod-us1-6 datadog-prod-us1-6 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.

Datadog Autotest: FAIL

The new text says that a disabled test never moves to Fixed automatically. The existing remediation flow does this after a successful fix merges.

Open Bits AI session

🤖 Datadog Autotest · Commit 907efc8 · What is Autotest? · @DataDog review to ask questions · Any feedback? Reach out in #autotest

<td>{{< ui >}}Fixed{{< /ui >}}</td>
<td>
<p>If a flaky test no longer flakes for 30 days, it is automatically moved to the Fixed state. This automation is default behavior and can't be customized.</p>
<p>Tests in the {{< ui >}}Disabled{{< /ui >}} state are excluded from this automation and are never automatically moved to {{< ui >}}Fixed{{< /ui >}}. Because disabled tests are skipped in CI, Datadog has no signal about whether they are still flaky. To make a disabled test eligible again, change its state to {{< ui >}}Active{{< /ui >}} or {{< ui >}}Quarantined{{< /ui >}}.</p>

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.

P2 Limit the exclusion claim to the 30-day automation

Users can incorrectly think that the remediation flow cannot move a disabled test to Fixed.

Assertion details
  • Input: A disabled test completes the remediation flow, all retries pass, and the fix branch merges.
  • Expected: The text must limit the exclusion to the 30-day no-flakes automation.
  • Actual: The text says that disabled tests never move to Fixed automatically. The remediation flow does this after all retries pass and the fix branch merges.

Was this helpful? React 👍 or 👎
🤖 Datadog Autotest · What is Autotest? · @DataDog review to ask questions · Any feedback? Reach out in #autotest · Open Bits AI session

Explain why disabled flaky tests are never automatically moved to Fixed and
give the two ways to fix them: trigger the attempt-to-fix remediation flow, or
manually change the state back to Active or Quarantined.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

@estherk15 estherk15 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Thanks for the update!

@TovRudyy
TovRudyy merged commit 539f838 into master Sep 2, 2026
21 of 23 checks passed
@TovRudyy
TovRudyy deleted the olek.rudyy/document-disabled-flaky-tests-excluded-from-auto-fix branch September 2, 2026 13:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants