Skip to content

fix(tests): cherry-pick #311 to main to unblock Release#312

Merged
placerda merged 1 commit into
mainfrom
chore/cherry-pick-test-fix-to-main
Jun 15, 2026
Merged

fix(tests): cherry-pick #311 to main to unblock Release#312
placerda merged 1 commit into
mainfrom
chore/cherry-pick-test-fix-to-main

Conversation

@placerda

Copy link
Copy Markdown
Contributor

Cherry-pick of #311 to main so that re-tagging v0.4.1 (and any future
re-trigger of Release) finds the unblocked build job.

This is the same single-commit fix already merged to develop via #311.

#311)

The unit test `test_list_role_definition_ids_extracts_guid_suffix`
patches `azure.mgmt.authorization.AuthorizationManagementClient` via
`unittest.mock.patch` (string form), which requires the package to be
importable in the test environment. The `Release` workflow's reusable
`_build.yml` and `ci.yml` both run `uv sync --group dev`, but
`azure-mgmt-authorization` was only declared under the `agent`
optional-dependencies extra, not under the `dev` group. CI therefore
hit `AttributeError: module 'azure' has no attribute 'mgmt'` (release
build, where `azure.mgmt` namespace is partially populated by other
`azure-mgmt-*` deps) or `ModuleNotFoundError: No module named
'azure.mgmt'` (PR CI, where no `azure-mgmt-*` is installed at all),
breaking the `Release` workflow for v0.4.0 and v0.4.1.

Adding `azure-mgmt-authorization` to the `dev` group makes the
package available wherever the test suite runs, mirroring the
`agent` extra where it is already a runtime dependency. No change to
`src/` runtime code.

`uv lock` also picks up develop's already-merged dependabot bumps
(`azure-mgmt-cognitiveservices<15`, `azure-monitor-query<3`,
`pandas<4`).

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@placerda placerda merged commit 2e791ea into main Jun 15, 2026
1 check passed
@placerda placerda deleted the chore/cherry-pick-test-fix-to-main branch June 15, 2026 19:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant