Skip to content

fix: configure packages endpoints when repo depot is set (#9828) - #9838

Merged
Nishchay (awesomenix) merged 3 commits into
official/v20261016from
nishp/cherry-pick/akscloud
Oct 20, 2026
Merged

Nishchay (awesomenix) merged 3 commits into
official/v20261016from
nishp/cherry-pick/akscloud

Conversation

@awesomenix

Copy link
Copy Markdown
Contributor

cherry-pick repo depot fix for delos

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

Copy link
Copy Markdown
Contributor

Windows Unit Test Results

  3 files   18 suites   1m 5s ⏱️
556 tests 556 ✅ 0 💤 0 ❌
559 runs  559 ✅ 0 💤 0 ❌

Results for commit 0fae8c0.

@github-actions

Copy link
Copy Markdown
Contributor

Code Coverage

Package Line Rate Health
parts_windows Package 1 74% ➖
staging_cse_windows Package 1 65% ➖
debug 0% ❌
provisioningscripts 2% ❌
test 0% ❌
windows 27% ❌
Summary 38% (1649 / 6831) ❌

@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 76% ➖
github.com/Azure/agentbaker/pkg/agent/datamodel 76% ➖
github.com/Azure/agentbaker/pkg/agent/toggles 0% ❌
github.com/Azure/agentbaker/pkg/vhdbuilder/datamodel 87% ✔
Summary 74% (5623 / 7572) ➖

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

Repository failures can prevent certificate-refresh scheduling, and APT retries can accept incomplete metadata downloads as success.

2 open issues
What changed in this PR

This cherry-pick fixes RepoDepot initialization for Delos by separating package repository setup from certificate-refresh eligibility.

Changes:

  • Moves repository initialization before the certificate scheduling guard and removes the cloud-init wait.
  • Updates package-cache retries and adds ShellSpec coverage.
  • Adds hotfix metadata and generated cloud-config artifacts.
File Description
spec/​parts/​linux/​cloud-init/​artifacts/​init_aks_cloud_spec.sh Tests repository dispatch and cache retries.
parts/​linux/​cloud-init/​nodecustomdata.yml Adds the custom-cloud script hotfix entry.
parts/​linux/​cloud-init/​artifacts/​init-aks-cloud.sh Separates repository initialization and updates retries.
parts/​linux/​cloud-init/​artifacts/​aks-node-controller-hotfix.json Sets the scripts hotfix version.
aks-node-controller/​generated/​rendered_nodecustomdata_ubuntu.yml Adds an empty Ubuntu cloud-config skeleton.
aks-node-controller/​generated/​rendered_nodecustomdata_mariner.yml Adds an empty Mariner cloud-config skeleton.
aks-node-controller/​generated/​README Removes the generated-directory placeholder.

Review effort: Balanced

Comment on lines +429 to +432
if apt-get update; then
echo "apt-get update complete!"
return 0
fi
ubuntuRel=$(lsb_release --release | awk '{print $2}')
ubuntuDist=$(lsb_release -c | awk '{print $2}')
init_ubuntu_main_repo_depot ${rootRepoDepotEndpoint}
init_ubuntu_pmc_repo_depot ${rootRepoDepotEndpoint}
@github-actions

Copy link
Copy Markdown
Contributor

Code Coverage

Package Line Rate Health
shellspec spec 25% ❌
Summary 25% (3856 / 15536) ❌

@@ -0,0 +1,4 @@
#cloud-config
write_files:

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.

sad

Copilot AI balanced review requested due to automatic review settings October 20, 2026 22:42
@awesomenix
Nishchay (awesomenix) merged commit 47300f8 into official/v20261016 Oct 20, 2026
11 of 14 checks passed
@awesomenix
Nishchay (awesomenix) deleted the nishp/cherry-pick/akscloud branch October 20, 2026 22:42

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.

🔵 Needs a closer look

Removing the only generated-directory file leaves the Go embed directive unmatched, blocking ANC compilation.

2 open issues

Review effort: Balanced

This branch had an error being deployed

1 failed deployment
test — 9e64596a Deployed Oct 20, 2026 by awesomenix via hotfix-generate #995
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