Skip to content

[python] Fix nightly build#10049

Merged
msyyc merged 3 commits intomainfrom
copilot/add-test-case-for-pull-3997
Mar 17, 2026
Merged

[python] Fix nightly build#10049
msyyc merged 3 commits intomainfrom
copilot/add-test-case-for-pull-3997

Conversation

Copy link
Contributor

Copilot AI commented Mar 16, 2026

Tracks Azure/typespec-azure#3997, which deprecated @operationGroup in favor of @client (with flattened operation hierarchy) and deleted the multi-service-older-versions spec.

Package update

  • Bumped @azure-tools/azure-http-specs: 0.1.0-alpha.380.1.0-alpha.39-dev.2

Deleted tests (spec removed upstream)

  • test_azure_resource_manager_multi_service_older_versions.py + async counterpart
  • Removed azure-resource-manager-multi-service-older-versions from requirements.txt

Updated tests (reflect flat client hierarchy)

With @client replacing @operationGroup, sub-groups are no longer generated — operations are promoted directly onto the parent client:

# Before (with @operationGroup)
client.group3.two()
client.group4.four()
client.group5.six()

# After (with @client — flat)
client.two()
client.four()
client.six()
  • test_client_structure_clientoperationgroup + async: removed group3/group4/group5 sub-group access
  • test_client_structure + async: updated renamed_operation (removed client.group.*) and two_operation_group (removed client.group1.*/client.group2.*)
  • test_client_naming + async: Property and Header namespace operations now accessed via client.property.* and client.header.* sub-groups instead of directly on the root client
Original prompt

This section details on the original issue you should resolve

<issue_title>[python] add test case for Azure/typespec-azure#3997
</issue_title>
<issue_description>follow skill https://github.com/microsoft/typespec/blob/main/.github/skills/python-sdk-spector-mock-api-tests/SKILL.md to write test case for Azure/typespec-azure#3997
</issue_description>

Comments on the Issue (you are @copilot in this section)


📱 Kick off Copilot coding agent tasks wherever you are with GitHub Mobile, available on iOS and Android.

…p to @client migration

Co-authored-by: msyyc <70930885+msyyc@users.noreply.github.com>
@microsoft-github-policy-service microsoft-github-policy-service bot added the emitter:client:python Issue for the Python client emitter: @typespec/http-client-python label Mar 16, 2026
Copilot AI changed the title [WIP] [python] Add test case for pull request 3997 [python] Add test cases for Azure/typespec-azure#3997: @operationGroup → @client migration Mar 16, 2026
Copilot AI requested a review from msyyc March 16, 2026 23:04
@msyyc msyyc marked this pull request as ready for review March 17, 2026 06:36
@msyyc msyyc changed the title [python] Add test cases for Azure/typespec-azure#3997: @operationGroup → @client migration [python] Fix nightly build Mar 17, 2026
@azure-sdk
Copy link
Collaborator

You can try these changes here

🛝 Playground 🌐 Website 🛝 VSCode Extension

@pkg-pr-new
Copy link

pkg-pr-new bot commented Mar 17, 2026

Open in StackBlitz

npm i https://pkg.pr.new/@typespec/http-client-python@10049

commit: 073c8fe

@github-actions
Copy link
Contributor

All changed packages have been documented.

  • @typespec/http-client-python
Show changes

@typespec/http-client-python - internal ✏️

Update test cases for Azure/typespec-azure#3997: replace @operationGroup with @client decorator changes. Remove deleted multi-service-older-versions tests and update client structure, naming tests to reflect new flat client hierarchy.

@msyyc msyyc enabled auto-merge March 17, 2026 07:43
@msyyc msyyc added this pull request to the merge queue Mar 17, 2026
Merged via the queue into main with commit a2dac02 Mar 17, 2026
27 checks passed
@msyyc msyyc deleted the copilot/add-test-case-for-pull-3997 branch March 17, 2026 08:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

emitter:client:python Issue for the Python client emitter: @typespec/http-client-python

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[python] add test case for https://github.com/Azure/typespec-azure/pull/3997

4 participants