Skip to content

[Connectedk8s] Fix Azure/azure-cli-extensions#10011: az connectedk8s connect: Fix missing rpds native-module dependency path#10012

Draft
Copilot wants to merge 2 commits into
mainfrom
copilot/connectedk8s-fix-module-notfounderror
Draft

[Connectedk8s] Fix Azure/azure-cli-extensions#10011: az connectedk8s connect: Fix missing rpds native-module dependency path#10012
Copilot wants to merge 2 commits into
mainfrom
copilot/connectedk8s-fix-module-notfounderror

Conversation

Copilot AI commented Jun 22, 2026

Copy link
Copy Markdown
Contributor

This checklist is used to make sure that common guidelines for a pull request are followed.

Related command

az connectedk8s connect

  • Issue summary
    • connectedk8s could fail at runtime with ModuleNotFoundError: No module named 'rpds.rpds' due to dependency resolution pulling a chain that expects a native rpds module not present in the extension bundle.
  • Change set
    • Dependency constraint
      • Pin jsonschema to <4.18.0 in src/connectedk8s/setup.py to avoid resolving the referencing/rpds path requiring native rpds.
    • History update
      • Add a release note in src/connectedk8s/HISTORY.rst documenting the pin and failure mode addressed.
    • Regression guard
      • Add test_setup_dependencies.py to assert DEPENDENCIES keeps jsonschema constrained below 4.18.
  • Snippet
    DEPENDENCIES = [
        "kubernetes==24.2.0",
        "jsonschema<4.18.0",
        "pycryptodome==3.20.0",
        "azure-mgmt-hybridcompute==7.0.0",
        "oras==0.2.25",
    ]

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? (azdev required; see .azure-pipelines/templates/azdev_setup.yml for the install command until azdev==0.2.11b1 is on PyPI)
  • My extension version conforms to the Extension version schema

For new extensions:

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.

@azure-client-tools-bot-prd

azure-client-tools-bot-prd Bot commented Jun 22, 2026

Copy link
Copy Markdown
️✔️Azure CLI Extensions Breaking Change Test
️✔️Non Breaking Changes

@azure-client-tools-bot-prd

Copy link
Copy Markdown

Hi @copilot,
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 setup.py as well.

Copilot AI changed the title [WIP] Fix ModuleNotFoundError in connectedk8s extension [Connectedk8s] Fix Azure/azure-cli-extensions#10011: az connectedk8s connect: Fix missing rpds native-module dependency path Jun 22, 2026
Copilot AI requested a review from a0x1ab June 22, 2026 19:22
@yonzhan

yonzhan commented Jun 23, 2026

Copy link
Copy Markdown
Collaborator

Connectedk8s

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants