fix: azure-cli falls back to pip on unknown Ubuntu codenames#1668
Merged
Conversation
…upport - Add 'resolute' (Ubuntu 26.04) to AZCLI_ARCHIVE_VERSION_CODENAMES - Add else branch to fall back to pip when codename/arch not in allowlist - Bump feature version to 1.3.0 - Add test scenario for Ubuntu resolute
Copilot
AI
changed the title
[WIP] Fix azure-cli silent no-op on unknown Ubuntu codenames
fix: azure-cli falls back to pip on unknown Ubuntu codenames
May 28, 2026
Contributor
|
@copilot The fallback mechanism is required to be tested. Test for ubuntu plucky (25.04) perhaps? |
Ubuntu plucky's codename is not in the apt archive allowlist, so this scenario exercises the else-branch pip fallback path.
Contributor
Author
Added |
Kaniska244
approved these changes
May 28, 2026
abdurriq
approved these changes
May 28, 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.
The
azure-clifeature silently no-ops (exit 0, prints "Done!") whenVERSION_CODENAMEisn't in the hardcoded allowlist. On Ubuntu 26.04 (resolute), containers appear healthy but have noazbinary.Changes:
resolutetoAZCLI_ARCHIVE_VERSION_CODENAMESfor direct apt support on Ubuntu 26.04elsefallback to pip when codename/architecture is unrecognized — prevents silent failure on future releases:install_in_ubuntu_resolutetest scenario againstmcr.microsoft.com/devcontainers/base:ubuntu