Skip to content

Comment out flaky test#2932

Merged
khewonc merged 1 commit into
mainfrom
khewonc/flaky-test
Apr 24, 2026
Merged

Comment out flaky test#2932
khewonc merged 1 commit into
mainfrom
khewonc/flaky-test

Conversation

@khewonc

@khewonc khewonc commented Apr 24, 2026

Copy link
Copy Markdown
Collaborator

What does this PR do?

Comment out flaky test

Motivation

What inspired you to submit this pull request?

Additional Notes

Anything else we should know when reviewing?

Minimum Agent Versions

Are there minimum versions of the Datadog Agent and/or Cluster Agent required?

  • Agent: vX.Y.Z
  • Cluster Agent: vX.Y.Z

Describe your test plan

Write there any instructions and details you may have to test your PR.

Checklist

  • PR has at least one valid label: bug, enhancement, refactoring, documentation, tooling, and/or dependencies
  • PR has a milestone or the qa/skip-qa label
  • All commits are signed (see: signing commits)

@khewonc khewonc added this to the v1.26.0 milestone Apr 24, 2026
@khewonc
khewonc requested a review from a team April 24, 2026 13:19
@khewonc khewonc added the bug Something isn't working label Apr 24, 2026

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 5b04397950

ℹ️ About Codex in GitHub

Codex has been enabled to automatically 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 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

}
}
}
// func Test_Experiment_StateTransitions(t *testing.T) {

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Re-enable Test_Experiment_StateTransitions coverage

Commenting out Test_Experiment_StateTransitions removes the only matrix test that exercises new experiments after all terminal prior states (promoted, rollback, timeout, aborted) and both fresh/stale revision timestamps. The remaining tests in this file validate only narrower paths (primarily promoted), so regressions in rollback/timeout/aborted transition handling can now pass CI and reach users undetected.

Useful? React with 👍 / 👎.

@tbavelier tbavelier left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

No more flakes:

FAIL
FAIL    github.com/DataDog/datadog-operator/internal/controller/datadogagent    206.254s
FAIL
╭─ ~/dd/datadog-operator main                                                                                                                                                                                                   3.12  15:25:11
╰─❯ git checkout khewonc/flaky-test
branch 'khewonc/flaky-test' set up to track 'origin/khewonc/flaky-test'.
Switched to a new branch 'khewonc/flaky-test'
╭─ ~/dd/datadog-operator khewonc/flaky-test                                                                                                                                                                                     3.12  15:25:14
╰─❯ go test ./internal/controller/datadogagent/ -count=20
ok      github.com/DataDog/datadog-operator/internal/controller/datadogagent    151.063s

@codecov-commenter

codecov-commenter commented Apr 24, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 40.69%. Comparing base (f11b43c) to head (5b04397).

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##             main    #2932   +/-   ##
=======================================
  Coverage   40.69%   40.69%           
=======================================
  Files         321      321           
  Lines       28413    28413           
=======================================
  Hits        11563    11563           
  Misses      16015    16015           
  Partials      835      835           
Flag Coverage Δ
unittests 40.69% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.


Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update f11b43c...5b04397. Read the comment docs.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@datadog-datadog-prod-us1-2

This comment has been minimized.

@khewonc
khewonc merged commit 039572f into main Apr 24, 2026
42 of 51 checks passed
@khewonc
khewonc deleted the khewonc/flaky-test branch April 24, 2026 13:38
khewonc added a commit that referenced this pull request Apr 24, 2026
(cherry picked from commit 039572f)

Co-authored-by: khewonc <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants