Skip to content

test: add minification verification test - #9945

Merged
Nishchay (awesomenix) merged 2 commits into
mainfrom
nishp/cse-minification-diffs
Oct 29, 2026
Merged

Nishchay (awesomenix) merged 2 commits into
mainfrom
nishp/cse-minification-diffs

Conversation

@awesomenix

Copy link
Copy Markdown
Contributor

add minification verfification test

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

github-actions Bot commented Oct 28, 2026 •

Copy link
Copy Markdown
Contributor

Windows Unit Test Results

  3 files   18 suites   1m 17s ⏱️
662 tests 662 ✅ 0 💤 0 ❌
685 runs  685 ✅ 0 💤 0 ❌

Results for commit 2b3b9f3.

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

No active review issues were identified for the minification review-artifact and Bash syntax-check changes.

No open issues 🎉

What changed in this PR

Adds reviewable artifacts and Bash syntax checks for AgentBaker’s provisioning-script minification, without changing production behavior.

Changes:

  • Adds an opt-in Go test exporting rendered scripts, minified payloads, and diffs across six OS variants and public/custom cloud fixtures.
  • Enables artifact generation in the Go unit-test workflow and uploads results with five-day retention.
  • Documents local generation and clarifies that syntax checks do not prove semantic equivalence.
File Description
vhdbuilder/​packer/​README.md Documents artifact generation, fixture coverage, and verification limits.
pkg/​agent/​script_minification_artifacts_test.go Exports before/after scripts and diffs, and checks Bash syntax.
.github/​workflows/​go-test.yml Enables artifact generation and uploads minification diffs.

Review effort: Balanced

@awesomenix
Nishchay (awesomenix) enabled auto-merge (squash) October 28, 2026 21:47
Copilot AI balanced review requested due to automatic review settings October 28, 2026 23:13
@github-actions

Copy link
Copy Markdown
Contributor

Code Coverage

Package Line Rate Health
test 0% ❌
windows 27% ❌
staging_cse_windows Package 1 68% ➖
debug 0% ❌
provisioningscripts 2% ❌
parts_windows Package 1 73% ➖
Summary 39% (1819 / 7001) ❌

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 shell-script minification verification changes have no active review issues.

No open issues 🎉

Review effort: Balanced

@github-actions

Copy link
Copy Markdown
Contributor

Code Coverage

Package Line Rate Health
shellspec spec 29% ❌
Summary 29% (4702 / 16369) ❌

@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% (6032 / 8001) ➖

@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

@awesomenix
Nishchay (awesomenix) merged commit 8e80e5d into main Oct 29, 2026
31 checks passed
@awesomenix
Nishchay (awesomenix) deleted the nishp/cse-minification-diffs branch October 29, 2026 03:47
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