{AKS} az aks upgrade: Fix recording test for AKS upgrade with tier switch#31695
{AKS} az aks upgrade: Fix recording test for AKS upgrade with tier switch#31695zhoxing-ms merged 1 commit intoAzure:devfrom
az aks upgrade: Fix recording test for AKS upgrade with tier switch#31695Conversation
️✔️AzureCLI-FullTest
|
|
Hi @wenxuan0923, |
️✔️AzureCLI-BreakingChangeTest
|
|
Thank you for your contribution! We will review the pull request and get back to you soon. |
|
The git hooks are available for azure-cli and azure-cli-extensions repos. They could help you run required checks before creating the PR. Please sync the latest code with latest dev branch (for azure-cli) or main branch (for azure-cli-extensions). pip install azdev --upgrade
azdev setup -c <your azure-cli repo path> -r <your azure-cli-extensions repo path>
|
There was a problem hiding this comment.
Pull Request Overview
This PR refactors version-selection helpers and updates the AKS upgrade test to use the latest non-LTS and closest lower LTS versions, adding existence checks and a minor-version-difference guard.
- Replaced
_get_newer_non_lts_versionwith three focused methods:_get_latest_non_lts_version,_get_lower_lts_version, and_get_minor_version. - Updated
test_aks_upgrade_with_tier_switchto skip when appropriate versions aren’t found or when the minor-version gap exceeds 3.
Comments suppressed due to low confidence (3)
There was a problem hiding this comment.
Queued live test to validate the change, test passed!
- test_aks_upgrade_with_tier_switch
az aks upgrade: Fix recording test for AKS upgrade with tier switchaz aks upgrade: Fix recording test for AKS upgrade with tier switch
Related command
fix recording test
Description
When this test was originally added, we had an LTS version every three minor Kubernetes releases. The test was designed to upgrade a cluster from an LTS version to the next minor (non-LTS) version. However, we recently changed our policy to make every Kubernetes version an LTS version. This change introduced a large minor version gap between the previously non-LTS and LTS versions, causing the test to fail.
Testing Guide
History Notes
[Component Name 1] BREAKING CHANGE:
az command a: Make some customer-facing breaking change[Component Name 2]
az command b: Add some customer-facing featureThis checklist is used to make sure that common guidelines for a pull request are followed.
The PR title and description has followed the guideline in Submitting Pull Requests.
I adhere to the Command Guidelines.
I adhere to the Error Handling Guidelines.