Skip to content

Reduce noise when using Node 20 for container startup#5506

Open
baarde wants to merge 2 commits intomicrosoft:masterfrom
baarde:fix-5464-container-node20-logs
Open

Reduce noise when using Node 20 for container startup#5506
baarde wants to merge 2 commits intomicrosoft:masterfrom
baarde:fix-5464-container-node20-logs

Conversation

@baarde
Copy link
Copy Markdown

@baarde baarde commented Mar 20, 2026

Context

This PR fixes noisy container startup logging introduced with the Node24 / Node20 fallback flow in #5419.

When Node 20 is the expected startup path, the agent currently logs a warning (Using Node 20 for container startup.) even though no fallback occurred.

Related issue: #5464


Description

This change updates logging in ContainerOperationProvider.cs and ContainerOperationProviderEnhanced.cs:

  • Node 24 success logs at Debug
  • Node 20 success logs at Debug when it is the expected path
  • fallback from Node 24 to Node 20 remains a Warning

This keeps warnings for real degraded behavior and removes noise from normal startup.


Risk Assessment (Low / Medium / High)

Low

No changes except for logging.


Unit Tests Added or Updated (Yes / No)

No


Additional Testing Performed

None


Change Behind Feature Flag (Yes / No)

No


Tech Design / Approach

Apply the same log-level adjustment in both implementations so behavior stays consistent.


Documentation Changes Required (Yes/No)

No


Logging Added/Updated (Yes/No)

Yes

Adjusted log levels so expected startup paths use Debug and real fallbacks keep Warning.


Telemetry Added/Updated (Yes/No)

No


Rollback Scenario and Process (Yes/No)

No


Dependency Impact Assessed and Regression Tested (Yes/No)

No

@baarde baarde requested review from a team as code owners March 20, 2026 17:49
@baarde
Copy link
Copy Markdown
Author

baarde commented Mar 20, 2026

@microsoft-github-policy-service agree

@paulmedynski
Copy link
Copy Markdown

@microsoft/azure-pipelines-platform - This seems like a simple change and would eliminate spurious warnings from pipeline runs. Will this be prioritized for an upcoming release?

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