Skip to content

Fix E2e tests on main#3064

Merged
khewonc merged 4 commits into
mainfrom
tbavelier/fix-e2e
Jun 1, 2026
Merged

Fix E2e tests on main#3064
khewonc merged 4 commits into
mainfrom
tbavelier/fix-e2e

Conversation

@tbavelier

@tbavelier tbavelier commented Jun 1, 2026

Copy link
Copy Markdown
Member

What does this PR do?

  • Use ECR registry instead of default registry.datadoghq.com to pull images faster on EC2: eeccc0d
  • Run agent status ... -j with DD_LOG_LEVEL=off in k8s e2e checks so status output is clean JSON.
  • Remove regex-based status JSON extraction and parse agent status -j output directly, failing when the command does not return valid JSON.

Motivation

The e2e assertions were compensating for log lines mixed into agent status -j output by extracting the first JSON-looking object. Disabling Agent logging for status commands makes the command output deterministic and lets the tests validate the actual JSON contract.

Additional Notes

No production code changes.

Minimum Agent Versions

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

  • Agent: N/A
  • Cluster Agent: N/A

Describe your test plan

  • make lint-e2e

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)

@codecov-commenter

codecov-commenter commented Jun 1, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 43.00%. Comparing base (8b39974) to head (6e659d2).

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##             main    #3064   +/-   ##
=======================================
  Coverage   43.00%   43.00%           
=======================================
  Files         339      339           
  Lines       29226    29226           
=======================================
  Hits        12568    12568           
  Misses      15836    15836           
  Partials      822      822           
Flag Coverage Δ
unittests 43.00% <ø> (ø)

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 8b39974...6e659d2. Read the comment docs.

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

@datadog-prod-us1-6

datadog-prod-us1-6 Bot commented Jun 1, 2026

Copy link
Copy Markdown

Pipelines  Code Coverage

Fix all issues with BitsAI

⚠️ Warnings

🚦 1 Pipeline job failed

DataDog/datadog-operator | e2e: [1.24]   View in Datadog   GitLab

🔧 Fix in code (Fix with Cursor). Test failure: "0" is not greater than "0" in TestAWSKindSuite/TestGenericK8s at k8s_suite_test.go:189.

ℹ️ Info

🎯 Code Coverage (details)
Patch Coverage: 100.00%
Overall Coverage: 43.33% (+0.00%)

Useful? React with 👍 / 👎

This comment will be updated automatically if new data arrives.
🔗 Commit SHA: 6e659d2 | Docs | Datadog PR Page | Give us feedback!

@khewonc
khewonc marked this pull request as ready for review June 1, 2026 17:56
@khewonc
khewonc requested a review from a team June 1, 2026 17:56
@khewonc
khewonc merged commit 6ef503a into main Jun 1, 2026
39 of 40 checks passed
@khewonc
khewonc deleted the tbavelier/fix-e2e branch June 1, 2026 19:42
@dd-octo-sts dd-octo-sts Bot mentioned this pull request Jun 2, 2026
3 tasks
tbavelier added a commit that referenced this pull request Jun 2, 2026
* Use ECR registry instead of default registry.datadoghq.com

* Disable log level when running status command to ensure no polluted output

* Fix lint-e2e by using require.NoError

---------


(cherry picked from commit 6ef503a)

Co-authored-by: Timothée Bavelier <[email protected]>
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