From e69849fee6a97e847b2e393ee890331b4ab4e4a3 Mon Sep 17 00:00:00 2001 From: Yuchao Yan Date: Wed, 18 Mar 2026 06:06:44 +0000 Subject: [PATCH 1/2] Skip client structure tests pending TCGC 0.67.0 upgrade Skip 8 failing test cases that will be reopened after upgrading `@azure-tools/typespec-client-generator-core` to 0.67.0: - test_structure_renamed_operation (sync + async) - test_structure_two_operation_group (sync + async) - test_first_client_operations (sync + async) - test_second_client_operations (sync + async) --- .../mock_api_tests/asynctests/test_client_structure_async.py | 2 ++ .../test_client_structure_clientoperationgroup_async.py | 2 ++ .../test/azure/mock_api_tests/test_client_structure.py | 3 +++ .../test_client_structure_clientoperationgroup.py | 3 +++ 4 files changed, 10 insertions(+) diff --git a/packages/http-client-python/generator/test/azure/mock_api_tests/asynctests/test_client_structure_async.py b/packages/http-client-python/generator/test/azure/mock_api_tests/asynctests/test_client_structure_async.py index 0dd3cf01cf0..fa58bd0f758 100644 --- a/packages/http-client-python/generator/test/azure/mock_api_tests/asynctests/test_client_structure_async.py +++ b/packages/http-client-python/generator/test/azure/mock_api_tests/asynctests/test_client_structure_async.py @@ -38,6 +38,7 @@ async def test_structure_multiclient(): await client_b.renamed_six() +@pytest.mark.skip(reason="will reopen the cases after upgrade `@azure-tools/typespec-client-generator-core` to 0.67.0") @pytest.mark.asyncio async def test_structure_renamed_operation(): client = RenamedOperationClient(endpoint="http://localhost:3000", client=ClientType.RENAMED_OPERATION) @@ -50,6 +51,7 @@ async def test_structure_renamed_operation(): await client.renamed_six() +@pytest.mark.skip(reason="will reopen the cases after upgrade `@azure-tools/typespec-client-generator-core` to 0.67.0") @pytest.mark.asyncio async def test_structure_two_operation_group(): client = TwoOperationGroupClient(endpoint="http://localhost:3000", client=ClientType.TWO_OPERATION_GROUP) diff --git a/packages/http-client-python/generator/test/azure/mock_api_tests/asynctests/test_client_structure_clientoperationgroup_async.py b/packages/http-client-python/generator/test/azure/mock_api_tests/asynctests/test_client_structure_clientoperationgroup_async.py index 5e3edcfa808..0b3ba88d302 100644 --- a/packages/http-client-python/generator/test/azure/mock_api_tests/asynctests/test_client_structure_clientoperationgroup_async.py +++ b/packages/http-client-python/generator/test/azure/mock_api_tests/asynctests/test_client_structure_clientoperationgroup_async.py @@ -8,6 +8,7 @@ from client.structure.clientoperationgroup.aio import FirstClient, SecondClient +@pytest.mark.skip(reason="will reopen the cases after upgrade `@azure-tools/typespec-client-generator-core` to 0.67.0") @pytest.mark.asyncio async def test_first_client_operations(): client = FirstClient(endpoint="http://localhost:3000", client=ClientType.CLIENT_OPERATION_GROUP) @@ -20,6 +21,7 @@ async def test_first_client_operations(): await client.four() +@pytest.mark.skip(reason="will reopen the cases after upgrade `@azure-tools/typespec-client-generator-core` to 0.67.0") @pytest.mark.asyncio async def test_second_client_operations(): client = SecondClient(endpoint="http://localhost:3000", client=ClientType.CLIENT_OPERATION_GROUP) diff --git a/packages/http-client-python/generator/test/azure/mock_api_tests/test_client_structure.py b/packages/http-client-python/generator/test/azure/mock_api_tests/test_client_structure.py index b3328454a26..e83d1ce6d6b 100644 --- a/packages/http-client-python/generator/test/azure/mock_api_tests/test_client_structure.py +++ b/packages/http-client-python/generator/test/azure/mock_api_tests/test_client_structure.py @@ -3,6 +3,7 @@ # Licensed under the MIT License. See License.txt in the project root for # license information. # -------------------------------------------------------------------------- +import pytest from client.structure.service.models import ClientType from client.structure.service import ServiceClient from client.structure.multiclient import ClientAClient, ClientBClient @@ -35,6 +36,7 @@ def test_structure_multiclient(): client_b.renamed_six() +@pytest.mark.skip(reason="will reopen the cases after upgrade `@azure-tools/typespec-client-generator-core` to 0.67.0") def test_structure_renamed_operation(): client = RenamedOperationClient(endpoint="http://localhost:3000", client=ClientType.RENAMED_OPERATION) client.renamed_one() @@ -46,6 +48,7 @@ def test_structure_renamed_operation(): client.renamed_six() +@pytest.mark.skip(reason="will reopen the cases after upgrade `@azure-tools/typespec-client-generator-core` to 0.67.0") def test_structure_two_operation_group(): client = TwoOperationGroupClient(endpoint="http://localhost:3000", client=ClientType.TWO_OPERATION_GROUP) client.one() diff --git a/packages/http-client-python/generator/test/azure/mock_api_tests/test_client_structure_clientoperationgroup.py b/packages/http-client-python/generator/test/azure/mock_api_tests/test_client_structure_clientoperationgroup.py index 9cad78e78b3..aa6d3c8a90d 100644 --- a/packages/http-client-python/generator/test/azure/mock_api_tests/test_client_structure_clientoperationgroup.py +++ b/packages/http-client-python/generator/test/azure/mock_api_tests/test_client_structure_clientoperationgroup.py @@ -3,10 +3,12 @@ # Licensed under the MIT License. See License.txt in the project root for # license information. # -------------------------------------------------------------------------- +import pytest from client.structure.clientoperationgroup.models import ClientType from client.structure.clientoperationgroup import FirstClient, SecondClient +@pytest.mark.skip(reason="will reopen the cases after upgrade `@azure-tools/typespec-client-generator-core` to 0.67.0") def test_first_client_operations(): client = FirstClient(endpoint="http://localhost:3000", client=ClientType.CLIENT_OPERATION_GROUP) @@ -18,6 +20,7 @@ def test_first_client_operations(): client.four() +@pytest.mark.skip(reason="will reopen the cases after upgrade `@azure-tools/typespec-client-generator-core` to 0.67.0") def test_second_client_operations(): client = SecondClient(endpoint="http://localhost:3000", client=ClientType.CLIENT_OPERATION_GROUP) From a6383c4402855ecda8dfe89cf08be8043de78230 Mon Sep 17 00:00:00 2001 From: Yuchao Yan Date: Wed, 18 Mar 2026 06:20:10 +0000 Subject: [PATCH 2/2] Add changelog entry for skipped client structure tests --- ...lient-structure-tests-pending-tcgc-upgrade-2026-3-18.md | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 .chronus/changes/skip-client-structure-tests-pending-tcgc-upgrade-2026-3-18.md diff --git a/.chronus/changes/skip-client-structure-tests-pending-tcgc-upgrade-2026-3-18.md b/.chronus/changes/skip-client-structure-tests-pending-tcgc-upgrade-2026-3-18.md new file mode 100644 index 00000000000..936ea2cf78f --- /dev/null +++ b/.chronus/changes/skip-client-structure-tests-pending-tcgc-upgrade-2026-3-18.md @@ -0,0 +1,7 @@ +--- +changeKind: internal +packages: + - "@typespec/http-client-python" +--- + +Skip 8 failing client structure test cases pending `@azure-tools/typespec-client-generator-core` upgrade to 0.67.0