Skip to content

fix: omit empty generated hotfix payloads - #9839

Open
Devinwong wants to merge 4 commits into
mainfrom
devinwong-custom-cloud-hotfix-generation
Open

Devinwong wants to merge 4 commits into
mainfrom
devinwong-custom-cloud-hotfix-generation

Conversation

@Devinwong

Copy link
Copy Markdown
Collaborator

What this PR does / why we need it:

Skip rendered hotfix YAML without write_files entries; retain a README when all platforms are empty so go:embed builds. Includes regression coverage. No runtime eligibility changes.

Which issue(s) this PR fixes:

N/A

Render and select AKS custom-cloud payload variants from live provisioning inputs. Avoid reinjecting canonical scriptless entries that already exist.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

Copilot-Session: 9b42051a-f79c-4dbf-8460-a4772d54e01f
Keep the existing renderer loop with explicit cloud targets and consolidate regression cases while retaining runtime eligibility protection.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

Copilot-Session: 9b42051a-f79c-4dbf-8460-a4772d54e01f
Remove runtime cloud selection and duplicate-block changes. Skip rendered YAML without write_files entries, remove stale empty outputs, and retain an embed placeholder when all platforms are empty.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

Copilot-Session: 9b42051a-f79c-4dbf-8460-a4772d54e01f
Copilot AI balanced review requested due to automatic review settings October 20, 2026 23:03
@Devinwong
Devinwong requested review from a team as code owners October 20, 2026 23:03
@github-actions

github-actions Bot commented Oct 20, 2026 •

Copy link
Copy Markdown
Contributor

Windows Unit Test Results

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

Results for commit 244cadb.

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

🟢 Approval recommended

The focused generation-only change has targeted regression coverage and no identified blocking issues.

No open issues 🎉

What changed in this PR

Prevents empty hotfix payloads from being generated while preserving go:embed compatibility and existing runtime eligibility.

Changes:

  • Skips and removes platform YAMLs without write_files entries.
  • Writes a README placeholder when all platforms are empty.
  • Adds regression coverage and documents the behavior.
File Description
hotfix/​render-nodecustomdata/​main.go Filters empty payloads and creates the placeholder.
hotfix/​hotfix_generate_test.py Covers payload filtering, stale-file removal, and embedding.
aks-node-controller/​README.md Documents empty-payload handling.

Review effort: Balanced

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

Copilot-Session: 9b42051a-f79c-4dbf-8460-a4772d54e01f
Copilot AI balanced review requested due to automatic review settings October 20, 2026 23:07
@github-actions

Copy link
Copy Markdown
Contributor

Code Coverage

Package Line Rate Health
parts_windows Package 1 73% ➖
staging_cse_windows Package 1 65% ➖
debug 0% ❌
provisioningscripts 2% ❌
test 0% ❌
windows 27% ❌
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

The focused generation changes have regression coverage and no identified blocking issues.

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 88% ✔
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 77% ➖
github.com/Azure/agentbaker/pkg/agent/datamodel 78% ➖
github.com/Azure/agentbaker/pkg/agent/toggles 0% ❌
github.com/Azure/agentbaker/pkg/vhdbuilder/datamodel 87% ✔
Summary 74% (5660 / 7612) ➖

@github-actions

Copy link
Copy Markdown
Contributor

Code Coverage

Package Line Rate Health
shellspec spec 28% ❌
Summary 28% (4507 / 15936) ❌

This branch has not been deployed

No deployments
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.

2 participants