Skip to content

test: add check-hotfix e2e coverage - #10177

Merged
Cameron Meissner (cameronmeissner) merged 2 commits into
devfrom
lily/add-check-hotfix-e2e-coverage
Nov 25, 2026
Merged

Cameron Meissner (cameronmeissner) merged 2 commits into
devfrom
lily/add-check-hotfix-e2e-coverage

Conversation

@lilypan26

Copy link
Copy Markdown
Contributor

What this PR does / why we need it:

Which issue(s) this PR fixes:

Fixes #

@lilypan26
lilypan26 requested review from a team as code owners November 24, 2026 19:26
Copilot AI balanced review requested due to automatic review settings November 24, 2026 19:26
@github-actions

github-actions Bot commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

Windows Unit Test Results

  3 files   21 suites   1m 19s ⏱️
812 tests 812 ✅ 0 💤 0 ❌
839 runs  839 ✅ 0 💤 0 ❌

Results for commit 67864d8.

♻️ 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 scenario assertions can pass despite a connection timeout or invalid response because they match fail-open messages instead of requiring the expected noHotfixAvailable outcome.

1 open issue
What changed in this PR

This PR extends the existing ANC hotfix end-to-end scenarios to run check-hotfix before the deterministic download and provisioning flow.

Changes:

  • Runs check-hotfix after preparing the test binary, before seeding the hotfix pointer and replacing bootstrap inputs.
  • Adds log checks for invocation, completion, and absence of panics.
  • Updates the fixture unit test to verify command ordering.
File Description
e2e/​scenario/​vmss.go Invokes check-hotfix before writing fixture inputs.
e2e/​scenario/​scenario_anc_hotfix.go Adds log assertions and clarifies live-service coverage.
e2e/​scenario/​scenario_anc_hotfix_test.go Verifies binary preparation and fixture command ordering.

Review effort: Balanced

Comment thread e2e/scenario/scenario_anc_hotfix.go Resolved
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Copilot AI balanced review requested due to automatic review settings November 24, 2026 23:13

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 active review issues were identified for the changes extending ANC hotfix coverage to exercise check-hotfix.

No open issues 🎉

1 resolved since last review

Review effort: Balanced

@github-actions

Copy link
Copy Markdown
Contributor

Code Coverage

Package Line Rate Health
test 0% ❌
windows 27% ❌
parts_windows Package 1 74% ➖
staging_cse_windows Package 1 72% ➖
debug 0% ❌
provisioningscripts 2% ❌
Summary 40% (2073 / 7280) ❌

@github-actions

Copy link
Copy Markdown
Contributor

Code Coverage

Package Line Rate Health
shellspec spec 30% ❌
Summary 30% (5106 / 16908) ❌

@github-actions

Copy link
Copy Markdown
Contributor

Code Coverage

Package Line Rate Health
github.com/Azure/agentbaker/aks-live-patching/pkg/status 100% ✔
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 79% ➖
github.com/Azure/agentbaker/pkg/agent/datamodel 77% ➖
github.com/Azure/agentbaker/pkg/agent/toggles 0% ❌
github.com/Azure/agentbaker/pkg/vhdbuilder/datamodel 87% ✔
github.com/Azure/agentbaker/aks-node-controller 74% ➖
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 91% ✔
github.com/Azure/agentbaker/aks-node-controller/utils 0% ❌
Summary 84% (6281 / 8260) ✔

@Devinwong Devinwong left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

LGTM

@cameronmeissner
Cameron Meissner (cameronmeissner) merged commit b70dcb7 into dev Nov 25, 2026
25 of 28 checks passed
@cameronmeissner
Cameron Meissner (cameronmeissner) deleted the lily/add-check-hotfix-e2e-coverage branch November 25, 2026 16:33
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.

5 participants