Skip to content

feat: report entire provision output from ANC - #9877

Merged
lilypan26 merged 2 commits into
mainfrom
lily/add-verbose-provision-output
Oct 23, 2026
Merged

lilypan26 merged 2 commits into
mainfrom
lily/add-verbose-provision-output

Conversation

@lilypan26

@lilypan26 lilypan26 commented Oct 22, 2026 •

Copy link
Copy Markdown
Contributor

What this PR does / why we need it:
Return entire error message from cse stdout instead of just the exit code when reporting provisioning status from ANC.

Which issue(s) this PR fixes:

Fixes #

Copilot AI balanced review requested due to automatic review settings October 22, 2026 23:59
@lilypan26
lilypan26 requested review from a team as code owners October 22, 2026 23:59
@github-actions

github-actions Bot commented Oct 23, 2026 •

Copy link
Copy Markdown
Contributor

Windows Unit Test Results

  3 files   18 suites   59s ⏱️
563 tests 563 ✅ 0 💤 0 ❌
585 runs  585 ✅ 0 💤 0 ❌

Results for commit b283933.

♻️ This comment has been updated with latest results.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🔵 Needs a closer look

Compatibility of the expanded JSON descriptions with production WireServer and diagnostic consumers still needs human validation.

No open issues 🎉

What changed in this PR

This PR improves aks-node-controller provisioning failure reports by including structured CSE output rather than only an exit code and error.

Changes:

  • Extracts matching CSE JSON from command output, with captured result fields as a fallback.
  • Limits WireServer descriptions to 4,096 XML-escaped bytes, preserving output tails and marking truncated content.
  • Adds extraction, truncation, and reporting tests, and documents the behavior.
File Description
aks-node-controller/​README.md Documents failure payloads and truncation limits.
aks-node-controller/​provision_status.go Extracts and bounds structured failure descriptions.
aks-node-controller/​provision_status_test.go Tests extraction, fallback, truncation, and reporting integration.
aks-node-controller/​goal_state.go Applies the larger XML-aware WireServer description limit.
aks-node-controller/​goal_state_test.go Tests description limits and Unicode handling.
aks-node-controller/​app.go Integrates structured descriptions into failure reporting.
aks-node-controller/​app_test.go Updates reporting assertions for JSON descriptions.

Review effort: Balanced

Copilot AI balanced review requested due to automatic review settings October 23, 2026 18:58
@github-actions

Copy link
Copy Markdown
Contributor

Code Coverage

Package Line Rate Health
test 0% ❌
windows 27% ❌
staging_cse_windows Package 1 65% ➖
debug 0% ❌
provisioningscripts 2% ❌
parts_windows Package 1 73% ➖
Summary 38% (1652 / 6834) ❌

@github-actions

Copy link
Copy Markdown
Contributor

Code Coverage

Package Line Rate Health
github.com/Azure/agentbaker/aks-node-controller 73% ➖
github.com/Azure/agentbaker/aks-node-controller/common 100% ✔
github.com/Azure/agentbaker/aks-node-controller/helpers 68% ➖
github.com/Azure/agentbaker/aks-node-controller/parser 88% ✔
github.com/Azure/agentbaker/aks-node-controller/pkg/gpu 100% ✔
github.com/Azure/agentbaker/aks-node-controller/pkg/nodeconfigutils 89% ✔
github.com/Azure/agentbaker/aks-node-controller/utils 0% ❌
github.com/Azure/agentbaker/apiserver 24% ❌
github.com/Azure/agentbaker/cmd 0% ❌
github.com/Azure/agentbaker/cmd/starter 0% ❌
github.com/Azure/agentbaker/fuzz/api 0% ❌
github.com/Azure/agentbaker/hotfix/render-nodecustomdata 35% ❌
github.com/Azure/agentbaker/pkg/agent 78% ➖
github.com/Azure/agentbaker/pkg/agent/datamodel 77% ➖
github.com/Azure/agentbaker/pkg/agent/toggles 0% ❌
github.com/Azure/agentbaker/pkg/vhdbuilder/datamodel 87% ✔
Summary 75% (5982 / 7956) ➖

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟢 Approval recommended

No blocking issues were identified, and the added tests cover structured reporting, fallback behavior, and size-safe truncation.

No open issues 🎉

Review effort: Balanced

@github-actions

Copy link
Copy Markdown
Contributor

Code Coverage

Package Line Rate Health
shellspec spec 28% ❌
Summary 28% (4591 / 16082) ❌

@lilypan26
lilypan26 merged commit 378a8b1 into main Oct 23, 2026
35 of 40 checks passed
@lilypan26
lilypan26 deleted the lily/add-verbose-provision-output branch October 23, 2026 20:26
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.

4 participants