Skip to content

fix(acl): fetch AgentBaker source without git in VHD content test - #10044

Merged
Nishchay (awesomenix) merged 1 commit into
mainfrom
user/vinceaperri/acl-linkedin-footprint
Nov 10, 2026
Merged

Nishchay (awesomenix) merged 1 commit into
mainfrom
user/vinceaperri/acl-linkedin-footprint

Conversation

@vinceaperri

Copy link
Copy Markdown
Contributor

What this PR does / why we need it:

Azure Container Linux (ACL) is dropping git from its base image in microsoft/azure-container-linux#131. linux-vhd-content-test.sh still assumes ACL ships git like Flatcar does. On an image without it, git clone fails and the test exits.

This moves AzureContainerLinux onto the SKIP_GIT_CLONE=true path that AzureLinuxOSGuard already uses. The test VM downloads ${AGENTBAKER_REPOSITORY_URL%.git}/archive/${GIT_COMMIT_HASH}.tar.gz with curl and unpacks it with tar. Flatcar is unchanged. ACL images that still have git take the tarball path too, which is fine since curl and tar aren't on the removal list.

I ran the same logic as a patch in our internal AKS image build. The VHD content test passed for the ACL AMD64, ARM64 and CVM images built from that ACL PR, none of which have git.

Could a maintainer push the commit to a branch here so CI runs?

Which issue(s) this PR fixes:

None filed.

**What this PR does / why we need it**:

Azure Container Linux (ACL) is dropping git from its base image in microsoft/azure-container-linux#131. `linux-vhd-content-test.sh` still assumes ACL ships git like Flatcar does. On an image without it, `git clone` fails and the test exits.

This moves `AzureContainerLinux` onto the `SKIP_GIT_CLONE=true` path that `AzureLinuxOSGuard` already uses. The test VM downloads `${AGENTBAKER_REPOSITORY_URL%.git}/archive/${GIT_COMMIT_HASH}.tar.gz` with curl and unpacks it with tar. Flatcar is unchanged. ACL images that still have git take the tarball path too, which is fine since curl and tar aren't on the removal list.

I ran the same logic as a patch in our internal AKS image build. The VHD content test passed for the ACL AMD64, ARM64 and CVM images built from that ACL PR, none of which have git.

Could a maintainer push the commit to a branch here so CI runs?

**Which issue(s) this PR fixes**:

None filed.
Copilot AI balanced review requested due to automatic review settings November 10, 2026 19:52
@github-actions

Copy link
Copy Markdown
Contributor

Windows Unit Test Results

  3 files   21 suites   1m 7s ⏱️
789 tests 789 ✅ 0 💤 0 ❌
815 runs  815 ✅ 0 💤 0 ❌

Results for commit 12b2324.

@github-actions

Copy link
Copy Markdown
Contributor

Code Coverage

Package Line Rate Health
test 0% ❌
windows 27% ❌
staging_cse_windows Package 1 71% ➖
debug 0% ❌
provisioningscripts 2% ❌
parts_windows Package 1 73% ➖
Summary 39% (1983 / 7220) ❌

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 are reported for the Azure Container Linux source-download change.

No open issues 🎉

What changed in this PR

Updates the VHD content test to fetch AgentBaker source without git on Azure Container Linux, accommodating its removal from the base image.

Changes:

  • Routes Azure Container Linux through the existing curl-and-tar download path used by AzureLinuxOSGuard.
  • Keeps Flatcar’s git-based behavior unchanged and narrows the accompanying comment to Flatcar.
File Description
vhdbuilder/​packer/​test/​linux-vhd-content-test.sh Enables SKIP_GIT_CLONE for Azure Container Linux.

Review effort: Balanced

@github-actions

Copy link
Copy Markdown
Contributor

Code Coverage

Package Line Rate Health
shellspec spec 30% ❌
Summary 30% (4912 / 16591) ❌

@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 92% ✔
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 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% ✔
Summary 76% (6094 / 8040) ➖

@awesomenix
Nishchay (awesomenix) merged commit cae0275 into main Nov 10, 2026
38 of 40 checks passed
@awesomenix
Nishchay (awesomenix) deleted the user/vinceaperri/acl-linkedin-footprint branch November 10, 2026 21:28
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