Skip to content
This repository was archived by the owner on May 22, 2026. It is now read-only.

Commit cbffaae

Browse files
authored
[python] Fix nightly build caused by breaking of TCGC (#3388)
* Update dependencies * Sync shared files from typespec repo (2026-03-19 00:53:20) * Add changelog * Update dependencies (2026-03-19 00:54:33) * Update dependencies * Sync shared files from typespec repo (2026-03-19 02:04:12) * Add changelog * Update dependencies (2026-03-19 02:05:14) * Regenerate for typespec-python (2026-03-19 02:10:43) --------- Co-authored-by: AutoPrFromHttpClientPython <AutoPrFromHttpClientPython>
1 parent ab63dd4 commit cbffaae

40 files changed

Lines changed: 1217 additions & 50 deletions
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
changeKind: internal
3+
packages:
4+
- "@autorest/python"
5+
- "@azure-tools/typespec-python"
6+
---
7+
8+
Add mock API test case for the `AlternateInitialVerb` POST pagination scenario where the initial request uses POST with a filter body and subsequent next link requests use GET.
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
changeKind: internal
3+
packages:
4+
- "@autorest/python"
5+
- "@azure-tools/typespec-python"
6+
---
7+
8+
Skip 8 failing client structure test cases pending `@azure-tools/typespec-client-generator-core` upgrade to 0.67.0

packages/autorest.python/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
},
3030
"homepage": "https://github.com/Azure/autorest.python/blob/main/README.md",
3131
"dependencies": {
32-
"@typespec/http-client-python": "https://artprodcus3.artifacts.visualstudio.com/A0fb41ef4-5012-48a9-bf39-4ee3de03ee35/29ec6040-b234-4e31-b139-33dc4287b756/_apis/artifact/cGlwZWxpbmVhcnRpZmFjdDovL2F6dXJlLXNkay9wcm9qZWN0SWQvMjllYzYwNDAtYjIzNC00ZTMxLWIxMzktMzNkYzQyODdiNzU2L2J1aWxkSWQvNjAyMDkyMi9hcnRpZmFjdE5hbWUvYnVpbGRfYXJ0aWZhY3RzX3B5dGhvbg2/content?format=file&subPath=%2Fpackages%2Ftypespec-http-client-python-0.28.0.tgz",
32+
"@typespec/http-client-python": "https://artprodcus3.artifacts.visualstudio.com/A0fb41ef4-5012-48a9-bf39-4ee3de03ee35/29ec6040-b234-4e31-b139-33dc4287b756/_apis/artifact/cGlwZWxpbmVhcnRpZmFjdDovL2F6dXJlLXNkay9wcm9qZWN0SWQvMjllYzYwNDAtYjIzNC00ZTMxLWIxMzktMzNkYzQyODdiNzU2L2J1aWxkSWQvNjAzMjIxMi9hcnRpZmFjdE5hbWUvYnVpbGRfYXJ0aWZhY3RzX3B5dGhvbg2/content?format=file&subPath=%2Fpackages%2Ftypespec-http-client-python-0.28.0.tgz",
3333
"@autorest/system-requirements": "~1.0.2",
3434
"fs-extra": "~11.2.0",
3535
"tsx": "^4.21.0"

packages/typespec-python/package.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -60,14 +60,14 @@
6060
"@azure-tools/typespec-azure-core": ">=0.66.0 <1.0.0",
6161
"@azure-tools/typespec-azure-resource-manager": ">=0.66.0 <1.0.0",
6262
"@azure-tools/typespec-autorest": ">=0.66.0 <1.0.0",
63-
"@azure-tools/typespec-azure-rulesets": ">=0.65.1 <1.0.0",
64-
"@azure-tools/typespec-client-generator-core": ">=0.66.1 <1.0.0"
63+
"@azure-tools/typespec-azure-rulesets": ">=0.66.0 <1.0.0",
64+
"@azure-tools/typespec-client-generator-core": ">=0.66.2 <1.0.0"
6565
},
6666
"dependencies": {
6767
"js-yaml": "~4.1.0",
6868
"semver": "~7.6.2",
6969
"tsx": "^4.21.0",
70-
"@typespec/http-client-python": "https://artprodcus3.artifacts.visualstudio.com/A0fb41ef4-5012-48a9-bf39-4ee3de03ee35/29ec6040-b234-4e31-b139-33dc4287b756/_apis/artifact/cGlwZWxpbmVhcnRpZmFjdDovL2F6dXJlLXNkay9wcm9qZWN0SWQvMjllYzYwNDAtYjIzNC00ZTMxLWIxMzktMzNkYzQyODdiNzU2L2J1aWxkSWQvNjAyMDkyMi9hcnRpZmFjdE5hbWUvYnVpbGRfYXJ0aWZhY3RzX3B5dGhvbg2/content?format=file&subPath=%2Fpackages%2Ftypespec-http-client-python-0.28.0.tgz",
70+
"@typespec/http-client-python": "https://artprodcus3.artifacts.visualstudio.com/A0fb41ef4-5012-48a9-bf39-4ee3de03ee35/29ec6040-b234-4e31-b139-33dc4287b756/_apis/artifact/cGlwZWxpbmVhcnRpZmFjdDovL2F6dXJlLXNkay9wcm9qZWN0SWQvMjllYzYwNDAtYjIzNC00ZTMxLWIxMzktMzNkYzQyODdiNzU2L2J1aWxkSWQvNjAzMjIxMi9hcnRpZmFjdE5hbWUvYnVpbGRfYXJ0aWZhY3RzX3B5dGhvbg2/content?format=file&subPath=%2Fpackages%2Ftypespec-http-client-python-0.28.0.tgz",
7171
"fs-extra": "~11.2.0"
7272
},
7373
"devDependencies": {
@@ -83,11 +83,11 @@
8383
"@typespec/xml": "~0.80.0",
8484
"@azure-tools/typespec-azure-resource-manager": "~0.66.0",
8585
"@azure-tools/typespec-azure-core": "~0.66.0",
86-
"@azure-tools/typespec-azure-rulesets": "~0.65.1",
86+
"@azure-tools/typespec-azure-rulesets": "~0.66.0",
8787
"@azure-tools/typespec-autorest": "~0.66.0",
88-
"@azure-tools/typespec-client-generator-core": "~0.66.1",
89-
"@azure-tools/azure-http-specs": "0.1.0-alpha.39-dev.3",
90-
"@typespec/http-specs": "0.1.0-alpha.35-dev.1",
88+
"@azure-tools/typespec-client-generator-core": "~0.66.2",
89+
"@azure-tools/azure-http-specs": "0.1.0-alpha.39-dev.4",
90+
"@typespec/http-specs": "0.1.0-alpha.35-dev.4",
9191
"@typespec/spector": "0.1.0-alpha.24",
9292
"@typespec/spec-api": "0.1.0-alpha.14-dev.1",
9393
"@types/js-yaml": "~4.0.5",

packages/typespec-python/test/azure/generated/payload-pageable/apiview-properties.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"CrossLanguagePackageId": "Payload.Pageable",
33
"CrossLanguageDefinitionId": {
4+
"payload.pageable.serverdrivenpagination.alternateinitialverb.models.Filter": "Payload.Pageable.ServerDrivenPagination.AlternateInitialVerb.Filter",
45
"payload.pageable.serverdrivenpagination.models.NestedLinkResponseNestedItems": "Payload.Pageable.ServerDrivenPagination.nestedLink.Response.nestedItems.anonymous",
56
"payload.pageable.serverdrivenpagination.models.NestedLinkResponseNestedNext": "Payload.Pageable.ServerDrivenPagination.nestedLink.Response.nestedNext.anonymous",
67
"payload.pageable.models.Pet": "Payload.Pageable.Pet",

packages/typespec-python/test/azure/generated/payload-pageable/generated_tests/test_pageable_server_driven_pagination_operations.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,17 @@ def test_server_driven_pagination_nested_link(self, pageable_endpoint):
3939
# please add some check logic here by yourself
4040
# ...
4141

42+
@PageablePreparer()
43+
@recorded_by_proxy
44+
def test_server_driven_pagination_alternate_initial_verb_post(self, pageable_endpoint):
45+
client = self.create_client(endpoint=pageable_endpoint)
46+
response = client.server_driven_pagination.alternate_initial_verb.post(
47+
body={"filter": "str"},
48+
)
49+
result = [r for r in response]
50+
# please add some check logic here by yourself
51+
# ...
52+
4253
@PageablePreparer()
4354
@recorded_by_proxy
4455
def test_server_driven_pagination_continuation_token_request_query_response_body(self, pageable_endpoint):

packages/typespec-python/test/azure/generated/payload-pageable/generated_tests/test_pageable_server_driven_pagination_operations_async.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,17 @@ async def test_server_driven_pagination_nested_link(self, pageable_endpoint):
4040
# please add some check logic here by yourself
4141
# ...
4242

43+
@PageablePreparer()
44+
@recorded_by_proxy_async
45+
async def test_server_driven_pagination_alternate_initial_verb_post(self, pageable_endpoint):
46+
client = self.create_async_client(endpoint=pageable_endpoint)
47+
response = client.server_driven_pagination.alternate_initial_verb.post(
48+
body={"filter": "str"},
49+
)
50+
result = [r async for r in response]
51+
# please add some check logic here by yourself
52+
# ...
53+
4354
@PageablePreparer()
4455
@recorded_by_proxy_async
4556
async def test_server_driven_pagination_continuation_token_request_query_response_body(self, pageable_endpoint):

packages/typespec-python/test/azure/generated/payload-pageable/payload/pageable/serverdrivenpagination/aio/operations/_operations.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
from ...._utils.model_base import _deserialize
2727
from ...._utils.serialization import Deserializer, Serializer
2828
from ....aio._configuration import PageableClientConfiguration
29+
from ...alternateinitialverb.aio.operations._operations import ServerDrivenPaginationAlternateInitialVerbOperations
2930
from ...continuationtoken.aio.operations._operations import ServerDrivenPaginationContinuationTokenOperations
3031
from ...operations._operations import (
3132
build_server_driven_pagination_link_request,
@@ -54,6 +55,9 @@ def __init__(self, *args, **kwargs) -> None:
5455
self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer")
5556
self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer")
5657

58+
self.alternate_initial_verb = ServerDrivenPaginationAlternateInitialVerbOperations(
59+
self._client, self._config, self._serialize, self._deserialize
60+
)
5761
self.continuation_token = ServerDrivenPaginationContinuationTokenOperations(
5862
self._client, self._config, self._serialize, self._deserialize
5963
)
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
__path__ = __import__("pkgutil").extend_path(__path__, __name__) # type: ignore
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
__path__ = __import__("pkgutil").extend_path(__path__, __name__) # type: ignore

0 commit comments

Comments
 (0)