UID2-7823: add the azure-cli apt repo before installing - #261
Merged
Conversation
The AKS E2E job failed at the Pin Azure CLI step: apt could not find azure-cli 2.87.0 to install. The runner image installs azure-cli and then deletes Microsoft's azure-cli apt source. Until recently that delete missed the source file, so the repo stayed configured and pinning a version worked by accident. The image now deletes it properly, so no configured repo carries azure-cli at all. Add the repo ourselves instead of relying on what the image leaves behind, as Microsoft's install docs and actions/runner-images#12361 both recommend. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Ticket: UID2-7823 Branch: mkc-UID2-7823-azure-cli-apt-source
Delete before merge. Exercises the action by relative path, which shared-run-e2e-tests.yaml cannot do because it references it at @V3. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Verified 2.87.0 installs on ubuntu-latest with bundled Python 3.13. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
cYKatherine
approved these changes
Sep 8, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
pin_azure_clinow adds Microsoft's azure-cli apt repository before installing, and pins the exact deb revision (azure-cli=2.87.0-1~noble) rather than matching on a2.87.0*glob.Why
The AKS E2E job fails at the Pin Azure CLI step with
E: Version '2.87.0*' for 'azure-cli' was not found. That skips cluster setup and the tests, and also leaves thealways()cleanup step ("Stop AKS operator") failing, sinceaz account setthen runs with no prioraz login.The runner image installs azure-cli and then deletes Microsoft's azure-cli apt source. Until recently that delete missed the file — Microsoft's installer writes
azure-cli.sources(deb822) while the cleanup removed onlyazure-cli.list— so the repo stayed configured and pinning a version worked by accident. actions/runner-images#14652 broadened the cleanup toazure-cli.*, so no configured repo carries azure-cli at all.Evidence: the last successful run (2026-08-18) fetched
azure-cli 2.87.0-1~noblefrompackages.microsoft.com/repos/azure-cliand downgraded from 2.89.0. The failing run has onlyubuntu/24.04/prodconfigured, which does not carry the package.Notes
install_az_cliin uid2-operator already configures this repo, which is why its jobs kept passing while this one broke. Folding the two together is a follow-up.v3tag next moves; no caller changes are needed.Ticket: UID2-7823