[Backport v1.27] Fix E2e tests on main#3068
Merged
Merged
Conversation
* 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 --------- Co-authored-by: khewonc <39867936+khewonc@users.noreply.github.com> (cherry picked from commit 6ef503a)
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## v1.27 #3068 +/- ##
=======================================
Coverage 41.61% 41.61%
=======================================
Files 336 336
Lines 28737 28737
=======================================
Hits 11958 11958
Misses 15984 15984
Partials 795 795
Flags with carried forward coverage won't be shown. Click here to find out more. Continue to review full report in Codecov by Sentry.
🚀 New features to boost your workflow:
|
|
🎯 Code Coverage (details) 🔗 Commit SHA: 95e5523 | Docs | Datadog PR Page | Give us feedback! |
tbavelier
approved these changes
Jun 2, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Backport 6ef503a from #3064.
What does this PR do?
agent status ... -jwithDD_LOG_LEVEL=offin k8s e2e checks so status output is clean JSON.agent status -joutput directly, failing when the command does not return valid JSON.Motivation
The e2e assertions were compensating for log lines mixed into
agent status -joutput 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?
Describe your test plan
make lint-e2eChecklist
bug,enhancement,refactoring,documentation,tooling, and/ordependenciesqa/skip-qalabel