Skip to content

Debug-log and collect Agent logs on failure in domain-controller upgrade test - #54726

Draft
clarkb7 wants to merge 2 commits into
mainfrom
branden.clark/dc-oom
Draft

Debug-log and collect Agent logs on failure in domain-controller upgrade test#54726
clarkb7 wants to merge 2 commits into
mainfrom
branden.clark/dc-oom

Conversation

@clarkb7

@clarkb7 clarkb7 commented Aug 11, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Set the Agent's log_level to debug at runtime after each install step in testUpgradeSuite.TestGivenDomainUserCanUpgradeAgent.
  • Add an AfterTest hook that downloads the Agent log folder from the remote host into the session output dir when the test fails.

Motivation

https://datadoghq.atlassian.net/browse/WINA-3019

Test plan

  • Run TestInstallsOnDomainController/testUpgradeSuite in CI and check the fakeintake dashboard for this run's stack to confirm memory usage stays under ~500MB across the install/upgrade flow.
  • On a failing run, confirm the Agent logs are collected as job artifacts under the suite's session output dir.

…n-controller upgrade test

Reduces fakeintake memory buildup across the multi-step
install/upgrade flow to avoid OOM.
@github-actions

Copy link
Copy Markdown
Contributor

@codex review

@dd-octo-sts dd-octo-sts Bot added the internal Identify a non-fork PR label Aug 11, 2026
@github-actions github-actions Bot added the short review PR is simple enough to be reviewed quickly label Aug 11, 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: 3114f40e41

ℹ️ 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".

Comment thread test/new-e2e/tests/windows/domain-test/domain_test.go Outdated
@dd-octo-sts

dd-octo-sts Bot commented Aug 11, 2026

Copy link
Copy Markdown
Contributor

Files inventory check summary

File checks results against ancestor a055712c:

Results for datadog-agent_7.84.0~devel.git.89.3b38619.pipeline.130254493-1_amd64.deb:

No change detected

Results for datadog-iot-agent_7.84.0~devel.git.89.3b38619.pipeline.130254493-1_amd64.deb:

No change detected

@clarkb7 clarkb7 added changelog/no-changelog No changelog entry needed qa/no-code-change No code change in Agent code requiring validation labels Aug 11, 2026
…ain-controller upgrade test

Replaces the fakeintake flush with agent-side debug logging plus a
log collection AfterTest hook, to get better diagnostics on failures
like the fakeintake connectivity timeout in WINA-3019.
@clarkb7 clarkb7 changed the title Flush fakeintake between install steps in domain-controller upgrade test Debug-log and collect Agent logs on failure in domain-controller upgrade test Aug 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

changelog/no-changelog No changelog entry needed internal Identify a non-fork PR qa/no-code-change No code change in Agent code requiring validation short review PR is simple enough to be reviewed quickly team/windows-products

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant