From fe4f1280c2d949dc7226fd7d445257e3e9b0fcbe Mon Sep 17 00:00:00 2001 From: AutoPrFromHttpClientPython Date: Tue, 3 Feb 2026 04:58:14 +0000 Subject: [PATCH 1/4] Update dependencies --- packages/autorest.python/package.json | 4 ++-- packages/typespec-python/package.json | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/autorest.python/package.json b/packages/autorest.python/package.json index 63e8e4958e..afb7631926 100644 --- a/packages/autorest.python/package.json +++ b/packages/autorest.python/package.json @@ -29,7 +29,7 @@ }, "homepage": "https://github.com/Azure/autorest.python/blob/main/README.md", "dependencies": { - "@typespec/http-client-python": "~0.26.2", + "@typespec/http-client-python": "https://artprodcus3.artifacts.visualstudio.com/A0fb41ef4-5012-48a9-bf39-4ee3de03ee35/29ec6040-b234-4e31-b139-33dc4287b756/_apis/artifact/cGlwZWxpbmVhcnRpZmFjdDovL2F6dXJlLXNkay9wcm9qZWN0SWQvMjllYzYwNDAtYjIzNC00ZTMxLWIxMzktMzNkYzQyODdiNzU2L2J1aWxkSWQvNTgyNTIxNC9hcnRpZmFjdE5hbWUvYnVpbGRfYXJ0aWZhY3RzX3B5dGhvbg2/content?format=file&subPath=%2Fpackages%2Ftypespec-http-client-python-0.26.2.tgz", "@autorest/system-requirements": "~1.0.2", "fs-extra": "~11.2.0", "tsx": "~4.19.1" @@ -47,4 +47,4 @@ "requirements.txt", "generator/" ] -} +} \ No newline at end of file diff --git a/packages/typespec-python/package.json b/packages/typespec-python/package.json index c5cb9862af..5632db81be 100644 --- a/packages/typespec-python/package.json +++ b/packages/typespec-python/package.json @@ -67,7 +67,7 @@ "js-yaml": "~4.1.0", "semver": "~7.6.2", "tsx": "~4.19.1", - "@typespec/http-client-python": "~0.26.2", + "@typespec/http-client-python": "https://artprodcus3.artifacts.visualstudio.com/A0fb41ef4-5012-48a9-bf39-4ee3de03ee35/29ec6040-b234-4e31-b139-33dc4287b756/_apis/artifact/cGlwZWxpbmVhcnRpZmFjdDovL2F6dXJlLXNkay9wcm9qZWN0SWQvMjllYzYwNDAtYjIzNC00ZTMxLWIxMzktMzNkYzQyODdiNzU2L2J1aWxkSWQvNTgyNTIxNC9hcnRpZmFjdE5hbWUvYnVpbGRfYXJ0aWZhY3RzX3B5dGhvbg2/content?format=file&subPath=%2Fpackages%2Ftypespec-http-client-python-0.26.2.tgz", "fs-extra": "~11.2.0" }, "devDependencies": { @@ -103,4 +103,4 @@ "chalk": "5.3.0", "@types/fs-extra": "11.0.4" } -} +} \ No newline at end of file From 27a2591af2de4c258fad539dafe2e0521dd51e24 Mon Sep 17 00:00:00 2001 From: AutoPrFromHttpClientPython Date: Tue, 3 Feb 2026 04:58:16 +0000 Subject: [PATCH 2/4] Add changelog --- ...mple-test-generation-optimization-2026-0-29-6-46-35.md | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 .chronus/changes/python-sample-test-generation-optimization-2026-0-29-6-46-35.md diff --git a/.chronus/changes/python-sample-test-generation-optimization-2026-0-29-6-46-35.md b/.chronus/changes/python-sample-test-generation-optimization-2026-0-29-6-46-35.md new file mode 100644 index 0000000000..181d8740d1 --- /dev/null +++ b/.chronus/changes/python-sample-test-generation-optimization-2026-0-29-6-46-35.md @@ -0,0 +1,8 @@ +--- +changeKind: internal +packages: + - "@autorest/python" + - "@azure-tools/typespec-python" +--- + +Optimize sdk generation performance \ No newline at end of file From a46cbca17df10fac3507e18ecdafe3c1e5d4bbaf Mon Sep 17 00:00:00 2001 From: AutoPrFromHttpClientPython Date: Tue, 3 Feb 2026 05:00:27 +0000 Subject: [PATCH 3/4] Update dependencies (2026-02-03 05:00:27) --- pnpm-lock.yaml | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 4d77b79cf6..1bbe222b49 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -60,8 +60,8 @@ importers: specifier: ~1.0.2 version: 1.0.2 '@typespec/http-client-python': - specifier: ~0.26.2 - version: 0.26.2(pyd672ib3v6bthqtwhqpae7pk4) + specifier: https://artprodcus3.artifacts.visualstudio.com/A0fb41ef4-5012-48a9-bf39-4ee3de03ee35/29ec6040-b234-4e31-b139-33dc4287b756/_apis/artifact/cGlwZWxpbmVhcnRpZmFjdDovL2F6dXJlLXNkay9wcm9qZWN0SWQvMjllYzYwNDAtYjIzNC00ZTMxLWIxMzktMzNkYzQyODdiNzU2L2J1aWxkSWQvNTgyNTIxNC9hcnRpZmFjdE5hbWUvYnVpbGRfYXJ0aWZhY3RzX3B5dGhvbg2/content?format=file&subPath=%2Fpackages%2Ftypespec-http-client-python-0.26.2.tgz + version: https://artprodcus3.artifacts.visualstudio.com/A0fb41ef4-5012-48a9-bf39-4ee3de03ee35/29ec6040-b234-4e31-b139-33dc4287b756/_apis/artifact/cGlwZWxpbmVhcnRpZmFjdDovL2F6dXJlLXNkay9wcm9qZWN0SWQvMjllYzYwNDAtYjIzNC00ZTMxLWIxMzktMzNkYzQyODdiNzU2L2J1aWxkSWQvNTgyNTIxNC9hcnRpZmFjdE5hbWUvYnVpbGRfYXJ0aWZhY3RzX3B5dGhvbg2/content?format=file&subPath=%2Fpackages%2Ftypespec-http-client-python-0.26.2.tgz(pyd672ib3v6bthqtwhqpae7pk4) fs-extra: specifier: ~11.2.0 version: 11.2.0 @@ -82,8 +82,8 @@ importers: packages/typespec-python: dependencies: '@typespec/http-client-python': - specifier: ~0.26.2 - version: 0.26.2(pyd672ib3v6bthqtwhqpae7pk4) + specifier: https://artprodcus3.artifacts.visualstudio.com/A0fb41ef4-5012-48a9-bf39-4ee3de03ee35/29ec6040-b234-4e31-b139-33dc4287b756/_apis/artifact/cGlwZWxpbmVhcnRpZmFjdDovL2F6dXJlLXNkay9wcm9qZWN0SWQvMjllYzYwNDAtYjIzNC00ZTMxLWIxMzktMzNkYzQyODdiNzU2L2J1aWxkSWQvNTgyNTIxNC9hcnRpZmFjdE5hbWUvYnVpbGRfYXJ0aWZhY3RzX3B5dGhvbg2/content?format=file&subPath=%2Fpackages%2Ftypespec-http-client-python-0.26.2.tgz + version: https://artprodcus3.artifacts.visualstudio.com/A0fb41ef4-5012-48a9-bf39-4ee3de03ee35/29ec6040-b234-4e31-b139-33dc4287b756/_apis/artifact/cGlwZWxpbmVhcnRpZmFjdDovL2F6dXJlLXNkay9wcm9qZWN0SWQvMjllYzYwNDAtYjIzNC00ZTMxLWIxMzktMzNkYzQyODdiNzU2L2J1aWxkSWQvNTgyNTIxNC9hcnRpZmFjdE5hbWUvYnVpbGRfYXJ0aWZhY3RzX3B5dGhvbg2/content?format=file&subPath=%2Fpackages%2Ftypespec-http-client-python-0.26.2.tgz(pyd672ib3v6bthqtwhqpae7pk4) fs-extra: specifier: ~11.2.0 version: 11.2.0 @@ -1698,8 +1698,9 @@ packages: peerDependencies: '@typespec/compiler': ^1.8.0 - '@typespec/http-client-python@0.26.2': - resolution: {integrity: sha512-bNpjViWsaZER3Z0O/QYgo4OALTDubPuCwuq0iExb8U5AIig/CB4Qsi9zVRtyRfH0ZZ2KJqjlTYaHazrtX4bqLA==} + '@typespec/http-client-python@https://artprodcus3.artifacts.visualstudio.com/A0fb41ef4-5012-48a9-bf39-4ee3de03ee35/29ec6040-b234-4e31-b139-33dc4287b756/_apis/artifact/cGlwZWxpbmVhcnRpZmFjdDovL2F6dXJlLXNkay9wcm9qZWN0SWQvMjllYzYwNDAtYjIzNC00ZTMxLWIxMzktMzNkYzQyODdiNzU2L2J1aWxkSWQvNTgyNTIxNC9hcnRpZmFjdE5hbWUvYnVpbGRfYXJ0aWZhY3RzX3B5dGhvbg2/content?format=file&subPath=%2Fpackages%2Ftypespec-http-client-python-0.26.2.tgz': + resolution: {tarball: https://artprodcus3.artifacts.visualstudio.com/A0fb41ef4-5012-48a9-bf39-4ee3de03ee35/29ec6040-b234-4e31-b139-33dc4287b756/_apis/artifact/cGlwZWxpbmVhcnRpZmFjdDovL2F6dXJlLXNkay9wcm9qZWN0SWQvMjllYzYwNDAtYjIzNC00ZTMxLWIxMzktMzNkYzQyODdiNzU2L2J1aWxkSWQvNTgyNTIxNC9hcnRpZmFjdE5hbWUvYnVpbGRfYXJ0aWZhY3RzX3B5dGhvbg2/content?format=file&subPath=%2Fpackages%2Ftypespec-http-client-python-0.26.2.tgz} + version: 0.26.2 engines: {node: '>=20.0.0'} peerDependencies: '@azure-tools/typespec-autorest': '>=0.64.1 <1.0.0' @@ -6509,7 +6510,7 @@ snapshots: dependencies: '@typespec/compiler': 1.8.0(@types/node@24.1.0) - '@typespec/http-client-python@0.26.2(pyd672ib3v6bthqtwhqpae7pk4)': + '@typespec/http-client-python@https://artprodcus3.artifacts.visualstudio.com/A0fb41ef4-5012-48a9-bf39-4ee3de03ee35/29ec6040-b234-4e31-b139-33dc4287b756/_apis/artifact/cGlwZWxpbmVhcnRpZmFjdDovL2F6dXJlLXNkay9wcm9qZWN0SWQvMjllYzYwNDAtYjIzNC00ZTMxLWIxMzktMzNkYzQyODdiNzU2L2J1aWxkSWQvNTgyNTIxNC9hcnRpZmFjdE5hbWUvYnVpbGRfYXJ0aWZhY3RzX3B5dGhvbg2/content?format=file&subPath=%2Fpackages%2Ftypespec-http-client-python-0.26.2.tgz(pyd672ib3v6bthqtwhqpae7pk4)': dependencies: '@azure-tools/typespec-autorest': 0.64.1(jzo7kuo6fjo5kkcajadlzhggh4) '@azure-tools/typespec-azure-core': 0.64.0(@typespec/compiler@1.8.0(@types/node@24.1.0))(@typespec/http@1.8.0(@typespec/compiler@1.8.0(@types/node@24.1.0))(@typespec/streams@0.78.0(@typespec/compiler@1.8.0(@types/node@24.1.0))))(@typespec/rest@0.78.0(@typespec/compiler@1.8.0(@types/node@24.1.0))(@typespec/http@1.8.0(@typespec/compiler@1.8.0(@types/node@24.1.0))(@typespec/streams@0.78.0(@typespec/compiler@1.8.0(@types/node@24.1.0))))) From e210a2e91daa5401a98178f833259822f28e00ed Mon Sep 17 00:00:00 2001 From: AutoPrFromHttpClientPython Date: Tue, 3 Feb 2026 05:06:06 +0000 Subject: [PATCH 4/4] Regenerate for typespec-python (2026-02-03 05:06:06) --- ...y_building_animal_operations_operations.py | 21 ++++--------------- ...ding_animal_operations_operations_async.py | 21 ++++--------------- ...rchy_building_dog_operations_operations.py | 11 ++-------- ...uilding_dog_operations_operations_async.py | 11 ++-------- ...rchy_building_pet_operations_operations.py | 21 ++++--------------- ...uilding_pet_operations_operations_async.py | 21 ++++--------------- 6 files changed, 20 insertions(+), 86 deletions(-) diff --git a/packages/typespec-python/test/azure/generated/azure-client-generator-core-hierarchy-building/generated_tests/test_hierarchy_building_animal_operations_operations.py b/packages/typespec-python/test/azure/generated/azure-client-generator-core-hierarchy-building/generated_tests/test_hierarchy_building_animal_operations_operations.py index afe806db43..3973c10935 100644 --- a/packages/typespec-python/test/azure/generated/azure-client-generator-core-hierarchy-building/generated_tests/test_hierarchy_building_animal_operations_operations.py +++ b/packages/typespec-python/test/azure/generated/azure-client-generator-core-hierarchy-building/generated_tests/test_hierarchy_building_animal_operations_operations.py @@ -17,15 +17,9 @@ class TestHierarchyBuildingAnimalOperationsOperations(HierarchyBuildingClientTes def test_animal_operations_update_pet_as_animal(self, hierarchybuilding_endpoint): client = self.create_client(endpoint=hierarchybuilding_endpoint) response = client.animal_operations.update_pet_as_animal( - animal={ - "breed": "str", - "kind": "dog", - "name": "str", - "trained": bool - } -, + animal={"breed": "str", "kind": "dog", "name": "str", "trained": bool}, ) - + # please add some check logic here by yourself # ... @@ -34,15 +28,8 @@ def test_animal_operations_update_pet_as_animal(self, hierarchybuilding_endpoint def test_animal_operations_update_dog_as_animal(self, hierarchybuilding_endpoint): client = self.create_client(endpoint=hierarchybuilding_endpoint) response = client.animal_operations.update_dog_as_animal( - animal={ - "breed": "str", - "kind": "dog", - "name": "str", - "trained": bool - } -, + animal={"breed": "str", "kind": "dog", "name": "str", "trained": bool}, ) - + # please add some check logic here by yourself # ... - diff --git a/packages/typespec-python/test/azure/generated/azure-client-generator-core-hierarchy-building/generated_tests/test_hierarchy_building_animal_operations_operations_async.py b/packages/typespec-python/test/azure/generated/azure-client-generator-core-hierarchy-building/generated_tests/test_hierarchy_building_animal_operations_operations_async.py index f57125c5e9..60b9abadba 100644 --- a/packages/typespec-python/test/azure/generated/azure-client-generator-core-hierarchy-building/generated_tests/test_hierarchy_building_animal_operations_operations_async.py +++ b/packages/typespec-python/test/azure/generated/azure-client-generator-core-hierarchy-building/generated_tests/test_hierarchy_building_animal_operations_operations_async.py @@ -18,15 +18,9 @@ class TestHierarchyBuildingAnimalOperationsOperationsAsync(HierarchyBuildingClie async def test_animal_operations_update_pet_as_animal(self, hierarchybuilding_endpoint): client = self.create_async_client(endpoint=hierarchybuilding_endpoint) response = await client.animal_operations.update_pet_as_animal( - animal={ - "breed": "str", - "kind": "dog", - "name": "str", - "trained": bool - } -, + animal={"breed": "str", "kind": "dog", "name": "str", "trained": bool}, ) - + # please add some check logic here by yourself # ... @@ -35,15 +29,8 @@ async def test_animal_operations_update_pet_as_animal(self, hierarchybuilding_en async def test_animal_operations_update_dog_as_animal(self, hierarchybuilding_endpoint): client = self.create_async_client(endpoint=hierarchybuilding_endpoint) response = await client.animal_operations.update_dog_as_animal( - animal={ - "breed": "str", - "kind": "dog", - "name": "str", - "trained": bool - } -, + animal={"breed": "str", "kind": "dog", "name": "str", "trained": bool}, ) - + # please add some check logic here by yourself # ... - diff --git a/packages/typespec-python/test/azure/generated/azure-client-generator-core-hierarchy-building/generated_tests/test_hierarchy_building_dog_operations_operations.py b/packages/typespec-python/test/azure/generated/azure-client-generator-core-hierarchy-building/generated_tests/test_hierarchy_building_dog_operations_operations.py index 4f978c6b44..1f2764b090 100644 --- a/packages/typespec-python/test/azure/generated/azure-client-generator-core-hierarchy-building/generated_tests/test_hierarchy_building_dog_operations_operations.py +++ b/packages/typespec-python/test/azure/generated/azure-client-generator-core-hierarchy-building/generated_tests/test_hierarchy_building_dog_operations_operations.py @@ -17,15 +17,8 @@ class TestHierarchyBuildingDogOperationsOperations(HierarchyBuildingClientTestBa def test_dog_operations_update_dog_as_dog(self, hierarchybuilding_endpoint): client = self.create_client(endpoint=hierarchybuilding_endpoint) response = client.dog_operations.update_dog_as_dog( - dog={ - "breed": "str", - "kind": "dog", - "name": "str", - "trained": bool - } -, + dog={"breed": "str", "kind": "dog", "name": "str", "trained": bool}, ) - + # please add some check logic here by yourself # ... - diff --git a/packages/typespec-python/test/azure/generated/azure-client-generator-core-hierarchy-building/generated_tests/test_hierarchy_building_dog_operations_operations_async.py b/packages/typespec-python/test/azure/generated/azure-client-generator-core-hierarchy-building/generated_tests/test_hierarchy_building_dog_operations_operations_async.py index fff7a22366..27df21be8a 100644 --- a/packages/typespec-python/test/azure/generated/azure-client-generator-core-hierarchy-building/generated_tests/test_hierarchy_building_dog_operations_operations_async.py +++ b/packages/typespec-python/test/azure/generated/azure-client-generator-core-hierarchy-building/generated_tests/test_hierarchy_building_dog_operations_operations_async.py @@ -18,15 +18,8 @@ class TestHierarchyBuildingDogOperationsOperationsAsync(HierarchyBuildingClientT async def test_dog_operations_update_dog_as_dog(self, hierarchybuilding_endpoint): client = self.create_async_client(endpoint=hierarchybuilding_endpoint) response = await client.dog_operations.update_dog_as_dog( - dog={ - "breed": "str", - "kind": "dog", - "name": "str", - "trained": bool - } -, + dog={"breed": "str", "kind": "dog", "name": "str", "trained": bool}, ) - + # please add some check logic here by yourself # ... - diff --git a/packages/typespec-python/test/azure/generated/azure-client-generator-core-hierarchy-building/generated_tests/test_hierarchy_building_pet_operations_operations.py b/packages/typespec-python/test/azure/generated/azure-client-generator-core-hierarchy-building/generated_tests/test_hierarchy_building_pet_operations_operations.py index dd1262e247..8898bd8532 100644 --- a/packages/typespec-python/test/azure/generated/azure-client-generator-core-hierarchy-building/generated_tests/test_hierarchy_building_pet_operations_operations.py +++ b/packages/typespec-python/test/azure/generated/azure-client-generator-core-hierarchy-building/generated_tests/test_hierarchy_building_pet_operations_operations.py @@ -17,15 +17,9 @@ class TestHierarchyBuildingPetOperationsOperations(HierarchyBuildingClientTestBa def test_pet_operations_update_pet_as_pet(self, hierarchybuilding_endpoint): client = self.create_client(endpoint=hierarchybuilding_endpoint) response = client.pet_operations.update_pet_as_pet( - pet={ - "breed": "str", - "kind": "dog", - "name": "str", - "trained": bool - } -, + pet={"breed": "str", "kind": "dog", "name": "str", "trained": bool}, ) - + # please add some check logic here by yourself # ... @@ -34,15 +28,8 @@ def test_pet_operations_update_pet_as_pet(self, hierarchybuilding_endpoint): def test_pet_operations_update_dog_as_pet(self, hierarchybuilding_endpoint): client = self.create_client(endpoint=hierarchybuilding_endpoint) response = client.pet_operations.update_dog_as_pet( - pet={ - "breed": "str", - "kind": "dog", - "name": "str", - "trained": bool - } -, + pet={"breed": "str", "kind": "dog", "name": "str", "trained": bool}, ) - + # please add some check logic here by yourself # ... - diff --git a/packages/typespec-python/test/azure/generated/azure-client-generator-core-hierarchy-building/generated_tests/test_hierarchy_building_pet_operations_operations_async.py b/packages/typespec-python/test/azure/generated/azure-client-generator-core-hierarchy-building/generated_tests/test_hierarchy_building_pet_operations_operations_async.py index 59d00ce9ed..aa342d9377 100644 --- a/packages/typespec-python/test/azure/generated/azure-client-generator-core-hierarchy-building/generated_tests/test_hierarchy_building_pet_operations_operations_async.py +++ b/packages/typespec-python/test/azure/generated/azure-client-generator-core-hierarchy-building/generated_tests/test_hierarchy_building_pet_operations_operations_async.py @@ -18,15 +18,9 @@ class TestHierarchyBuildingPetOperationsOperationsAsync(HierarchyBuildingClientT async def test_pet_operations_update_pet_as_pet(self, hierarchybuilding_endpoint): client = self.create_async_client(endpoint=hierarchybuilding_endpoint) response = await client.pet_operations.update_pet_as_pet( - pet={ - "breed": "str", - "kind": "dog", - "name": "str", - "trained": bool - } -, + pet={"breed": "str", "kind": "dog", "name": "str", "trained": bool}, ) - + # please add some check logic here by yourself # ... @@ -35,15 +29,8 @@ async def test_pet_operations_update_pet_as_pet(self, hierarchybuilding_endpoint async def test_pet_operations_update_dog_as_pet(self, hierarchybuilding_endpoint): client = self.create_async_client(endpoint=hierarchybuilding_endpoint) response = await client.pet_operations.update_dog_as_pet( - pet={ - "breed": "str", - "kind": "dog", - "name": "str", - "trained": bool - } -, + pet={"breed": "str", "kind": "dog", "name": "str", "trained": bool}, ) - + # please add some check logic here by yourself # ... -