Skip to content

fix: minor fixes to make the code clear, no functionality change - #9847

Merged
Nishchay (awesomenix) merged 1 commit into
mainfrom
nishp/fix/aksnc
Oct 21, 2026
Merged

Nishchay (awesomenix) merged 1 commit into
mainfrom
nishp/fix/aksnc

Conversation

@awesomenix

Copy link
Copy Markdown
Contributor

as the title says, not functionality change, only moving things around to make the code clear

@awesomenix
Nishchay (awesomenix) requested review from a team as code owners October 21, 2026 16:25
Copilot AI balanced review requested due to automatic review settings October 21, 2026 16:25
@github-actions

github-actions Bot commented Oct 21, 2026 •

Copy link
Copy Markdown
Contributor

Windows Unit Test Results

  3 files   18 suites   1m 14s ⏱️
563 tests 563 ✅ 0 💤 0 ❌
585 runs  585 ✅ 0 💤 0 ❌

Results for commit a540535.

♻️ 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.

🟡 Changes recommended

The refactor changes panic handling and bypasses failure reporting when provisioning flags are missing.

2 open issues
What changed in this PR

Refactors aks-node-controller provisioning flow for clarity, with no intended functionality change.

Changes:

  • Combines provisioning command selection into an if/else if.
  • Moves validation and panic recovery out of the inner function.
File Description
aks-node-controller/​app.go Reorganizes command selection, validation, and recovery flow.

Review effort: Balanced

Comment thread aks-node-controller/app.go
Comment thread aks-node-controller/app.go Outdated

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

The refactor preserves existing behavior, adds focused regression coverage, and has no identified substantive issues.

No open issues 🎉

2 resolved since last review

Review effort: Balanced

Copilot AI balanced review requested due to automatic review settings October 21, 2026 17:19

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

The focused refactor preserves existing behavior, with added regression coverage and no substantive issues identified; tests were not executed.

No open issues 🎉

Review effort: Balanced

Copilot AI balanced review requested due to automatic review settings October 21, 2026 18:33
@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) ❌

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 substantive regressions were identified in the focused refactor or added tests; tests were not executed.

No open issues 🎉

Review effort: Balanced

@github-actions

Copy link
Copy Markdown
Contributor

Code Coverage

Package Line Rate Health
github.com/Azure/agentbaker/aks-node-controller 72% ➖
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 0% ❌
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 74% (5838 / 7824) ➖

@github-actions

Copy link
Copy Markdown
Contributor

Code Coverage

Package Line Rate Health
shellspec spec 28% ❌
Summary 28% (4556 / 15971) ❌

@awesomenix
Nishchay (awesomenix) merged commit 7f1327d into main Oct 21, 2026
39 of 42 checks passed
@awesomenix
Nishchay (awesomenix) deleted the nishp/fix/aksnc branch October 21, 2026 21:17
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