Repository navigation
[k8s-extension] ChaosStudio: pass chart version through; bump to 1.9.2 - #10394
Ethan Yang (necusjz) merged 4 commits into
Conversation
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
|
Hi Brent Rusinow (@brrusino), |
There was a problem hiding this comment.
Copilot review overview
🟡 Changes recommended
Address the SemVer-compatible version handling and update the stale Chaos Studio README guidance.
Get a fresh assessment by requesting another Copilot review.
Review effort: Lite
Findings: 1
What changed in this PR
Updates Chaos Studio version handling to use RP-registered chart versions instead of pinning 0.1.6, and bumps the extension to 1.9.2.
Changes:
- Resolves omitted versions from the latest registered version.
- Passes explicit versions through create/update operations.
- Adds lifecycle and version-selection tests.
| File | Summary |
|---|---|
src/k8s-extension/setup.py |
Bumps the extension version to 1.9.2. |
src/k8s-extension/HISTORY.rst |
Documents the version-handling change; the related README still needs updating (nit, 2 votes). |
src/k8s-extension/azext_k8s_extension/tests/latest/test_chaos_studio.py |
Adds coverage for version resolution and lifecycle behavior. |
src/k8s-extension/azext_k8s_extension/partner_extensions/ChaosStudio.py |
Removes the hard-coded pin and forwards/resolves versions; SemVer-compatible registered versions may currently be rejected (moderate, 1 vote). |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
…emVer precedence Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
|
Also picked up the SemVer note from the Copilot review summary. Latest-registered resolution was going through Python's packaging parser, which dropped valid SemVer prereleases like 1.0.0-foo or 1.0.0-0.3.7 and let build metadata affect ordering. It now uses SemVer 2.0 precedence (leading v ok, build metadata ignored, release beats its prereleases), and tests cover both sides. An explicit --version is still passed through as-is. |
|
k8s-extension |
…release train Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
|
Julie Zhu (@yanzhudd) Ethan Yang (@necusjz) Yong Zhang (@yonzhan) can one of you take a look please? |
outdated.
|
[Release] Update index.json for extension [ k8s-extension-1.9.2 ] : https://dev.azure.com/msazure/One/_build/results?buildId=183471868&view=results |
Conflicts in src/k8s-extension (HISTORY.rst, setup.py, ChaosStudio.py, test_chaos_studio.py) resolved to upstream; upstream 1.9.2 (Azure#10394) supersedes the fork's 1.9.1 commit. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

🤖 PR Validation — ️✔️ All clear
This checklist is used to make sure that common guidelines for a pull request are followed.
Related command
az k8s-extension create/update/delete --extension-type Microsoft.ChaosStudioDrops the hard-coded chart 0.1.6 pin from the Microsoft.ChaosStudio handler that shipped in 1.9.0.
--versionnow goes straight to the extension RP like the other partner handlers. The RP's registration decides what's available, and the existingcluster_list_versionscheck in install stays--versionon create, it resolves to the latest version registered for the cluster/release train. auto-upgrade is still forced off, so we have to send a concrete version--versionThis was reviewed and merged in the AzureArcForKubernetes/k8s-extension fork first (AzureArcForKubernetes#25 synced the fork, AzureArcForKubernetes#26 is this change). Upstream already has a 1.9.1 (Fleet support, #10342), so this goes out as 1.9.2.
General Guidelines
azdev style <YOUR_EXT>locally? (pip install azdevrequired)python scripts/ci/test_index.py -qlocally? (pip install azdevrequired)I couldn't install azdev on my machine (can't reach PyPI right now), so I'm leaning on CI for style/lint. The k8s-extension unit tests pass locally, including the 4 new/updated Chaos Studio tests.
About Extension Publish
There is a pipeline to automatically build, upload and publish extension wheels.
Once your pull request is merged into main branch, a new pull request will be created to update
src/index.jsonautomatically.You only need to update the version information in file setup.py and historical information in file HISTORY.rst in your PR but do not modify
src/index.json.