Skip to content

[k8s-extension] ChaosStudio: pass chart version through; bump to 1.9.2 - #10394

Merged
Ethan Yang (necusjz) merged 4 commits into
Azure:mainfrom
brrusino:k8s-extension/chaos-version-passthrough
Sep 30, 2026
Merged

Ethan Yang (necusjz) merged 4 commits into
Azure:mainfrom
brrusino:k8s-extension/chaos-version-passthrough

Conversation

@brrusino

@brrusino Brent Rusinow (brrusino) commented Sep 25, 2026 •

Copy link
Copy Markdown
Contributor

🤖 PR Validation — ️✔️ All clear

Breaking Changes
️✔️ None

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.ChaosStudio

Drops the hard-coded chart 0.1.6 pin from the Microsoft.ChaosStudio handler that shipped in 1.9.0.

  • --version now goes straight to the extension RP like the other partner handlers. The RP's registration decides what's available, and the existing cluster_list_versions check in install stays
  • If you omit --version on 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
  • Update keeps whatever's installed unless you pass --version
  • Resume still rejects a version mismatch. That's there for idempotence, not a pin
  • Bootstrap flow and managed settings are unchanged

This 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

  • Have you run azdev style <YOUR_EXT> locally? (pip install azdev required)
  • Have you run python scripts/ci/test_index.py -q locally? (pip install azdev required)
  • My extension version conforms to the Extension version schema

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.json automatically.
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.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot AI lite review requested due to automatic review settings September 25, 2026 16:10
@azure-client-tools-bot-prd

Copy link
Copy Markdown

Hi Brent Rusinow (@brrusino),
Please write the description of changes which can be perceived by customers into HISTORY.rst.
If you want to release a new extension version, please update the version in pyproject.toml (or setup.py, if the extension has not migrated yet) as well.

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.

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 Low severity

Open (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.

Comment thread src/k8s-extension/HISTORY.rst Resolved
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
…emVer precedence

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
@brrusino

Copy link
Copy Markdown
Contributor Author

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.

@yonzhan

Copy link
Copy Markdown
Collaborator

k8s-extension

…release train

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
@brrusino

Copy link
Copy Markdown
Contributor Author

Julie Zhu (@yanzhudd) Ethan Yang (@necusjz) Yong Zhang (@yonzhan) can one of you take a look please?

@necusjz
Ethan Yang (necusjz) merged commit ba8195d into Azure:main Sep 30, 2026
24 checks passed
@azclibot

Copy link
Copy Markdown
Collaborator

[Release] Update index.json for extension [ k8s-extension-1.9.2 ] : https://dev.azure.com/msazure/One/_build/results?buildId=183471868&view=results

prasannajsns pushed a commit to AzureArcForKubernetes/k8s-extension that referenced this pull request Oct 9, 2026
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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Auto-Assign Auto assign by bot

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants