{"receipt_id":"agent1-1","seq":1,"branch_id":"agent1","kind":"command","cmd":"git ls-files -z","path":null,"exit_code":0,"stdout_tail":"ts/extended_models/schema.graphql\u0000tests/main/clients/inline_fragments/expected_client/__init__.py\u0000tests/main/clients/inline_fragments/expected_client/async_base_client.py\u0000tests/main/clients/inline_fragments/expected_client/base_model.py\u0000tests/main/clients/inline_fragments/expected_client/client.py\u0000tests/main/clients/inline_fragments/expected_client/enums.py\u0000tests/main/clients/inline_fragments/expected_client/exceptions.py\u0000tests/main/clients/inline_fragments/expected_client/fragments.py\u0000tests/main/clients/inline_fragments/expected_client/input_types.py\u0000tests/main/clients/inline_fragments/expected_client/interface_a.py\u0000tests/main/clients/inline_fragments/expected_client/interface_b.py\u0000tests/main/clients/inline_fragments/expected_client/interface_c.py\u0000tests/main/clients/inline_fragments/expected_client/interface_with_typename.py\u0000tests/main/clients/inline_fragments/expected_client/list_interface.py\u0000tests/main/clients/inline_fragments/expected_client/list_union.py\u0000tests/main/clients/inline_fragments/expected_client/query_with_fragment_on_interface.py\u0000tests/main/clients/inline_fragments/expected_client/query_with_fragment_on_query_with_interface.py\u0000tests/main/clients/inline_fragments/expected_client/query_with_fragment_on_query_with_union.py\u0000tests/main/clients/inline_fragments/expected_client/query_with_fragment_on_union.py\u0000tests/main/clients/inline_fragments/expected_client/scalars.py\u0000tests/main/clients/inline_fragments/expected_client/union_a.py\u0000tests/main/clients/inline_fragments/expected_client/union_b.py\u0000tests/main/clients/inline_fragments/expected_client/union_c.py\u0000tests/main/clients/inline_fragments/expected_client/union_with_typename.py\u0000tests/main/clients/inline_fragments/pyproject.toml\u0000tests/main/clients/inline_fragments/queries.graphql\u0000tests/main/clients/inline_fragments/schema.graphql\u0000tests/main/clients/invalid_pyprojects/no_files.toml\u0000tests/main/clients/invalid_pyprojects/no_section.toml\u0000tests/main/clients/invalid_pyprojects/not_valid_query.graphql\u0000tests/main/clients/invalid_pyprojects/operation_not_valid_for_schema.toml\u0000tests/main/clients/invalid_pyprojects/schema.graphql\u0000tests/main/clients/multiple_fragments/expected_client/__init__.py\u0000tests/main/clients/multiple_fragments/expected_client/async_base_client.py\u0000tests/main/clients/multiple_fragments/expected_client/base_model.py\u0000tests/main/clients/multiple_fragments/expected_client/client.py\u0000tests/main/clients/multiple_fragments/expected_client/enums.py\u0000tests/main/clients/multiple_fragments/expected_client/example_query1.py\u0000tests/main/clients/multiple_fragments/expected_client/example_query2.py\u0000tests/main/clients/multiple_fragments/expected_client/example_query3.py\u0000tests/main/clients/multiple_fragments/expected_client/exceptions.py\u0000tests/main/clients/multiple_fragments/expected_client/fragments.py\u0000tests/main/clients/multiple_fragments/expected_client/input_types.py\u0000tests/main/clients/multiple_fragments/expected_client/scalars.py\u0000tests/main/clients/multiple_fragments/pyproject.toml\u0000tests/main/clients/multiple_fragments/queries.graphql\u0000tests/main/clients/multiple_fragments/schema.graphql\u0000tests/main/clients/remote_schema/expected_client/__init__.py\u0000tests/main/clients/remote_schema/expected_client/async_base_client.py\u0000tests/main/clients/remote_schema/expected_client/base_model.py\u0000tests/main/clients/remote_schema/expected_client/client.py\u0000tests/main/clients/remote_schema/expected_client/enums.py\u0000tests/main/clients/remote_schema/expected_client/exceptions.py\u0000tests/main/clients/remote_schema/expected_client/input_types.py\u0000tests/main/clients/remote_schema/expected_client/scalars.py\u0000tests/main/clients/remote_schema/expected_client/test.py\u0000tests/main/clients/remote_schema/pyproject.toml\u0000tests/main/clients/remote_schema/queries.graphql\u0000tests/main/clients/remote_schema/response.json\u0000tests/main/clients/shorter_results/custom_scalars.py\u0000tests/main/clients/shorter_results/expected_client/__init__.py\u0000tests/main/clients/shorter_results/expected_client/async_base_client.py\u0000tests/main/clients/shorter_results/expected_client/base_model.py\u0000tests/main/clients/shorter_results/expected_client/client.py\u0000tests/main/clients/shorter_results/expected_client/custom_scalars.py\u0000tests/main/clients/shorter_results/expected_client/enums.py\u0000tests/main/clients/shorter_results/expected_client/exceptions.py\u0000tests/main/clients/shorter_results/expected_client/fragments.py\u0000tests/main/clients/shorter_results/expected_client/get_a_scalar.py\u0000tests/main/clients/shorter_results/expected_client/get_animal_by_name.py\u0000tests/main/clients/shorter_results/expected_client/get_animal_fragment.py\u0000tests/main/clients/shorter_results/expected_client/get_animal_fragment_with_extra.py\u0000tests/main/clients/shorter_results/expected_client/get_authenticated_user.py\u0000tests/main/clients/shorter_results/expected_client/input_types.py\u0000tests/main/clients/shorter_results/expected_client/list_strings_1.py\u0000tests/main/clients/shorter_results/expected_client/list_strings_2.py\u0000tests/main/clients/shorter_results/expected_client/list_strings_3.py\u0000tests/main/clients/shorter_results/expected_client/list_strings_4.py\u0000tests/main/clients/shorter_results/expected_client/list_type_a.py\u0000tests/main/clients/shorter_results/expected_client/scalars.py\u0000tests/main/clients/shorter_results/expected_client/subscribe_strings.py\u0000tests/main/clients/shorter_results/pyproject.toml\u0000tests/main/clients/shorter_results/queries.graphql\u0000tests/main/clients/shorter_results/schema.graphql\u0000tests/main/graphql_schemas/all_types/expected_schema.py\u0000tests/main/graphql_schemas/all_types/pyproject.toml\u0000tests/main/graphql_schemas/all_types/schema.graphql\u0000tests/main/graphql_schemas/example/expected_schema.py\u0000tests/main/graphql_schemas/example/pyproject.toml\u0000tests/main/graphql_schemas/example/schema.graphql\u0000tests/main/test_main.py\u0000tests/plugins/__init__.py\u0000tests/plugins/test_explorer.py\u0000tests/plugins/test_manager.py\u0000tests/plugins/test_shorter_results.py\u0000tests/test_config.py\u0000tests/test_schema.py\u0000tests/test_settings.py\u0000tests/test_utils.py\u0000tests/utils.py\u0000","stderr_tail":"","stdout_sha256":"a5a70e031b99f1303aa964066fe42b5fbd9a643f1dcda03f1c187b7fd078cd9b","log_path":"~/dev/nebius-hackathon/pilot/v2-P/mirumee__ariadne-codegen-159/runs/pilot-mirumee__ariadne-codegen-159-93bb7154d4/logs/agent1/agent1-1.log","tree_digest":null,"tree_download_s":null,"started_at":"2026-10-03T18:12:06.713791Z","duration_s":0.003654,"timed_out":false,"image_before":"3cb2ecec-10bb-4c3c-8b09-4ad9e703cdf1","image_after":"5c1cc527-d65a-4383-a778-15122e42274f","junit":null,"diff":null,"patch_sha256":null,"dropped_paths":[],"snapshot_sha":null}
{"receipt_id":"agent1-2","seq":2,"branch_id":"agent1","kind":"write","cmd":"/opt/receipts-5f1e1888699a4e1bbbeef5d3c51929ee/bin/busybox sh -c 'mkdir -p /ariadne-codegen/ariadne_codegen/client_generators && cp /opt/receipts-5f1e1888699a4e1bbbeef5d3c51929ee/incoming/2da41d5c01cfdc390b31f08c019e047d340aeff829ace8a194b48a9f5fc9b56e /ariadne-codegen/ariadne_codegen/client_generators/result_types.py'","path":"ariadne_codegen/client_generators/result_types.py","exit_code":0,"stdout_tail":"","stderr_tail":"","stdout_sha256":"2da41d5c01cfdc390b31f08c019e047d340aeff829ace8a194b48a9f5fc9b56e","log_path":"~/dev/nebius-hackathon/pilot/v2-P/mirumee__ariadne-codegen-159/runs/pilot-mirumee__ariadne-codegen-159-93bb7154d4/logs/agent1/agent1-2.log","tree_digest":null,"tree_download_s":null,"started_at":"2026-10-03T18:12:29.116727Z","duration_s":0.004427,"timed_out":false,"image_before":"5c1cc527-d65a-4383-a778-15122e42274f","image_after":"4d14159c-d73b-4e0f-9649-efae3f005329","junit":null,"diff":null,"patch_sha256":null,"dropped_paths":[],"snapshot_sha":null}
{"receipt_id":"agent1-3","seq":3,"branch_id":"agent1","kind":"command","cmd":"/opt/receipts-3ae9fc04ca164d2ca590883d526e6f3a/bin/busybox mkdir -p /opt/receipts/reports && python -I /opt/receipts-3ae9fc04ca164d2ca590883d526e6f3a/receipts_pytest.py tests/client_generators/result_types_generator/test_get_operation_as_str.py::test_get_operation_as_str_returns_representation_without_mixin_directive -v -o junit_family=xunit1 -p no:cacheprovider -rA --continue-on-collection-errors --junitxml=/opt/receipts/reports/agent1-3.xml","path":null,"exit_code":0,"stdout_tail":"============================= test session starts ==============================\nplatform linux -- Python 3.10.19, pytest-9.0.2, pluggy-1.6.0 -- /usr/local/bin/python\nrootdir: /ariadne-codegen\nconfigfile: pyproject.toml\nplugins: anyio-4.12.1, asyncio-1.3.0, httpx-0.36.0, mock-3.15.1\nasyncio: mode=strict, debug=False, asyncio_default_fixture_loop_scope=None, asyncio_default_test_loop_scope=function\ncollecting ... collected 1 item\n\ntests/client_generators/result_types_generator/test_get_operation_as_str.py::test_get_operation_as_str_returns_representation_without_mixin_directive PASSED [100%]\n\n==================================== PASSES ====================================\n------------ generated xml file: /opt/receipts/reports/agent1-3.xml ------------\n=========================== short test summary info ============================\nPASSED tests/client_generators/result_types_generator/test_get_operation_as_str.py::test_get_operation_as_str_returns_representation_without_mixin_directive\n============================== 1 passed in 0.36s ===============================\n","stderr_tail":"","stdout_sha256":"1620b9d12e964b321be94b3d069da1bd62c0e6187f7138fe7d5ceab775266b20","log_path":"~/dev/nebius-hackathon/pilot/v2-P/mirumee__ariadne-codegen-159/runs/pilot-mirumee__ariadne-codegen-159-93bb7154d4/logs/agent1/agent1-3.log","tree_digest":"8f617d7e178ce09073fd15d9e73bcb4cbd3a99acabe7f58fe4f8ffc55e9620db","tree_download_s":2.508495874935761,"started_at":"2026-10-03T18:12:31.292291Z","duration_s":1.185617,"timed_out":false,"image_before":"4d14159c-d73b-4e0f-9649-efae3f005329","image_after":"9d0f05b0-0db9-437f-ae37-057757247b7f","junit":{"passed":["tests/client_generators/result_types_generator/test_get_operation_as_str.py::test_get_operation_as_str_returns_representation_without_mixin_directive"],"failed":[],"errors":[],"skipped":[],"collection_errors":[],"failure_text":{}},"diff":null,"patch_sha256":null,"dropped_paths":[],"snapshot_sha":null}
{"receipt_id":"agent1-4","seq":4,"branch_id":"agent1","kind":"command","cmd":"/opt/receipts-cb7c7e802dbb4a89846cfe9b707ee5f6/bin/busybox mkdir -p /opt/receipts/reports && python -I /opt/receipts-cb7c7e802dbb4a89846cfe9b707ee5f6/receipts_pytest.py tests/client_generators/result_types_generator/test_get_operation_as_str.py -v -o junit_family=xunit1 -p no:cacheprovider -rA --continue-on-collection-errors --junitxml=/opt/receipts/reports/agent1-4.xml","path":null,"exit_code":1,"stdout_tail":"============================= test session starts ==============================\nplatform linux -- Python 3.10.19, pytest-9.0.2, pluggy-1.6.0 -- /usr/local/bin/python\nrootdir: /ariadne-codegen\nconfigfile: pyproject.toml\nplugins: anyio-4.12.1, asyncio-1.3.0, httpx-0.36.0, mock-3.15.1\nasyncio: mode=strict, debug=False, asyncio_default_fixture_loop_scope=None, asyncio_default_test_loop_scope=function\ncollecting ... collected 4 items\n\ntests/client_generators/result_types_generator/test_get_operation_as_str.py::test_get_operation_as_str_returns_str_with_added_typename FAILED [ 25%]\ntests/client_generators/result_types_generator/test_get_operation_as_str.py::test_get_operation_as_str_returns_str_with_used_fragments PASSED [ 50%]\ntests/client_generators/result_types_generator/test_get_operation_as_str.py::test_get_operation_as_str_returns_str_with_fragment_used_by_another_fragment PASSED [ 75%]\ntests/client_generators/result_types_generator/test_get_operation_as_str.py::test_get_operation_as_str_returns_representation_without_mixin_directive PASSED [100%]\n\n=================================== FAILURES ===================================\n__________ test_get_operation_as_str_returns_str_with_added_typename ___________\n\nself = <ariadne_codegen.client_generators.result_types.ResultTypesGenerator object at 0x7ffff54ffe20>\ntype_name = 'CustomType1', field_name = '__typename'\n\n    def _get_field_from_schema(self, type_name: str, field_name: str) -> GraphQLField:\n        try:\n>           return cast(GraphQLObjectType, self.schema.type_map[type_name]).fields[\n                field_name\n            ]\nE           KeyError: '__typename'\n\nariadne_codegen/client_generators/result_types.py:420: KeyError\n\nDuring handling of the above exception, another exception occurred:\n\n    def test_get_operation_as_str_returns_str_with_added_typename():\n        query_str = format_graphql_str(\n            \"\"\"\n            query CustomQuery {\n                query4 {\n                    ... on CustomType1 {\n                        fielda\n                    }\n                    ... on CustomType2 {\n                        fieldb\n                    }\n                }\n            }\n            \"\"\"\n        )\n        expected_result = format_graphql_str(\n            \"\"\"\n            query CustomQuery {\n                query4 {\n                    __typename\n                    ... on CustomType1 {\n                        fielda\n                    }\n                    ... on CustomType2 {\n                        fieldb\n                    }\n                }\n            }\n            \"\"\"\n        )\n>       generator = ResultTypesGenerator(\n            schema=build_ast_schema(parse(SCHEMA_STR)),\n            operation_definition=cast(\n                OperationDefinitionNode, parse(query_str).definitions[0]\n            ),\n            enums_module_name=\"enums\",\n        )\n\ntests/client_generators/result_types_generator/test_get_operation_as_str.py:47: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \nariadne_codegen/client_generators/result_types.py:109: in __init__\n    self._class_defs = self._parse_type_definition(\nariadne_codegen/client_generators/result_types.py:332: in _parse_type_definition\n    self._parse_field_selection_set_types(\nariadne_codegen/client_generators/result_types.py:510: in _parse_field_selection_set_types\n    self._parse_type_definition(\nariadne_codegen/client_generators/result_types.py:309: in _parse_type_definition\n    field_definition = self._get_field_from_schema(type_name, field.name.value)\nariadne_codegen/client_generators/result_types.py:426: in _get_field_from_schema\n    type_=GraphQLNonNull(type_=GraphQLScalarType(name=\"String\"))\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\ncls = <class 'graphql.type.definition.GraphQLScalarType'>, name = 'String'\n_args = (), _kwargs = {}\n\n    def __new__(cls, name: str, *_args: Any, **_kwargs: Any) -> \"GraphQLNamedType\":\n        if name in cls.reserved_types:\n>           raise TypeError(f\"Redefinition of reserved type {name!r}\")\nE           TypeError: Redefinition of reserved type 'String'\n\n/usr/local/lib/python3.10/site-packages/graphql/type/definition.py:236: TypeError\n==================================== PASSES ====================================\n------------ generated xml file: /opt/receipts/reports/agent1-4.xml ------------\n=========================== short test summary info ============================\nPASSED tests/client_generators/result_types_generator/test_get_operation_as_str.py::test_get_operation_as_str_returns_str_with_used_fragments\nPASSED tests/client_generators/result_types_generator/test_get_operation_as_str.py::test_get_operation_as_str_returns_str_with_fragment_used_by_another_fragment\nPASSED tests/client_generators/result_types_generator/test_get_operation_as_str.py::test_get_operation_as_str_returns_representation_without_mixin_directive\nFAILED tests/client_generators/result_types_generator/test_get_operation_as_str.py::test_get_operation_as_str_returns_str_with_added_typename\n========================= 1 failed, 3 passed in 0.45s ==========================\n","stderr_tail":"","stdout_sha256":"f7d43595ab60708bbfaaf71ebd0e5fec1d47ed005e0585df83c26f678d06b00e","log_path":"~/dev/nebius-hackathon/pilot/v2-P/mirumee__ariadne-codegen-159/runs/pilot-mirumee__ariadne-codegen-159-93bb7154d4/logs/agent1/agent1-4.log","tree_digest":"8f617d7e178ce09073fd15d9e73bcb4cbd3a99acabe7f58fe4f8ffc55e9620db","tree_download_s":2.3923597920220345,"started_at":"2026-10-03T18:12:39.256136Z","duration_s":1.257809,"timed_out":false,"image_before":"9d0f05b0-0db9-437f-ae37-057757247b7f","image_after":"4c4ff367-8cc1-49e8-a2b0-7409fedcaa73","junit":{"passed":["tests/client_generators/result_types_generator/test_get_operation_as_str.py::test_get_operation_as_str_returns_str_with_used_fragments","tests/client_generators/result_types_generator/test_get_operation_as_str.py::test_get_operation_as_str_returns_str_with_fragment_used_by_another_fragment","tests/client_generators/result_types_generator/test_get_operation_as_str.py::test_get_operation_as_str_returns_representation_without_mixin_directive"],"failed":["tests/client_generators/result_types_generator/test_get_operation_as_str.py::test_get_operation_as_str_returns_str_with_added_typename"],"errors":[],"skipped":[],"collection_errors":[],"failure_text":{"tests/client_generators/result_types_generator/test_get_operation_as_str.py::test_get_operation_as_str_returns_str_with_added_typename":"[...]graphql_str(\n            \"\"\"\n            query CustomQuery {\n                query4 {\n                    __typename\n                    ... on CustomType1 {\n                        fielda\n                    }\n                    ... on CustomType2 {\n                        fieldb\n                    }\n                }\n            }\n            \"\"\"\n        )\n>       generator = ResultTypesGenerator(\n            schema=build_ast_schema(parse(SCHEMA_STR)),\n            operation_definition=cast(\n                OperationDefinitionNode, parse(query_str).definitions[0]\n            ),\n            enums_module_name=\"enums\",\n        )\n\ntests/client_generators/result_types_generator/test_get_operation_as_str.py:47: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \nariadne_codegen/client_generators/result_types.py:109: in __init__\n    self._class_defs = self._parse_type_definition(\nariadne_codegen/client_generators/result_types.py:332: in _parse_type_definition\n    self._parse_field_selection_set_types(\nariadne_codegen/client_generators/result_types.py:510: in _parse_field_selection_set_types\n    self._parse_type_definition(\nariadne_codegen/client_generators/result_types.py:309: in _parse_type_definition\n    field_definition = self._get_field_from_schema(type_name, field.name.value)\nariadne_codegen/client_generators/result_types.py:426: in _get_field_from_schema\n    type_=GraphQLNonNull(type_=GraphQLScalarType(name=\"String\"))\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\ncls = <class 'graphql.type.definition.GraphQLScalarType'>, name = 'String'\n_args = (), _kwargs = {}\n\n    def __new__(cls, name: str, *_args: Any, **_kwargs: Any) -> \"GraphQLNamedType\":\n        if name in cls.reserved_types:\n>           raise TypeError(f\"Redefinition of reserved type {name!r}\")\nE           TypeError: Redefinition of reserved type 'String'\n\n/usr/local/lib/python3.10/site-packages/graphql/type/definition.py:236: TypeError"}},"diff":null,"patch_sha256":null,"dropped_paths":[],"snapshot_sha":null}
{"receipt_id":"agent1-5","seq":5,"branch_id":"agent1","kind":"command","cmd":"/opt/receipts-245b9e27e85a4ebe9e46056dffdcac05/bin/busybox mkdir -p /opt/receipts/reports && python -I /opt/receipts-245b9e27e85a4ebe9e46056dffdcac05/receipts_pytest.py tests/client_generators/result_types_generator/test_get_operation_as_str.py tests/main/clients/extended_models/expected_client/client.py --no-header -rA --tb=line --color=no -p no:cacheprovider -W ignore::DeprecationWarning -o junit_family=xunit1 -p no:cacheprovider -rA --continue-on-collection-errors --junitxml=/opt/receipts/reports/agent1-5.xml","path":null,"exit_code":1,"stdout_tail":"============================= test session starts ==============================\ncollected 4 items\n\ntests/client_generators/result_types_generator/test_get_operation_as_str.py F [ 25%]\n...                                                                      [100%]\n\n=================================== FAILURES ===================================\nE   KeyError: '__typename'\n\nDuring handling of the above exception, another exception occurred:\nE   TypeError: Redefinition of reserved type 'String'\n/usr/local/lib/python3.10/site-packages/graphql/type/definition.py:236: TypeError: Redefinition of reserved type 'String'\n==================================== PASSES ====================================\n------------ generated xml file: /opt/receipts/reports/agent1-5.xml ------------\n=========================== short test summary info ============================\nPASSED tests/client_generators/result_types_generator/test_get_operation_as_str.py::test_get_operation_as_str_returns_str_with_used_fragments\nPASSED tests/client_generators/result_types_generator/test_get_operation_as_str.py::test_get_operation_as_str_returns_str_with_fragment_used_by_another_fragment\nPASSED tests/client_generators/result_types_generator/test_get_operation_as_str.py::test_get_operation_as_str_returns_representation_without_mixin_directive\nFAILED tests/client_generators/result_types_generator/test_get_operation_as_str.py::test_get_operation_as_str_returns_str_with_added_typename\n========================= 1 failed, 3 passed in 0.44s ==========================\n","stderr_tail":"","stdout_sha256":"facfb220f1230e98cd4f8ee88df92f7653d7c01f336683933d2d39b057c063c8","log_path":"~/dev/nebius-hackathon/pilot/v2-P/mirumee__ariadne-codegen-159/runs/pilot-mirumee__ariadne-codegen-159-93bb7154d4/logs/agent1/agent1-5.log","tree_digest":"8f617d7e178ce09073fd15d9e73bcb4cbd3a99acabe7f58fe4f8ffc55e9620db","tree_download_s":2.895854457980022,"started_at":"2026-10-03T18:12:46.361289Z","duration_s":1.2342440000000001,"timed_out":false,"image_before":"4c4ff367-8cc1-49e8-a2b0-7409fedcaa73","image_after":"68c5dc01-2d4e-46d9-8bdf-9718dc47b411","junit":{"passed":["tests/client_generators/result_types_generator/test_get_operation_as_str.py::test_get_operation_as_str_returns_str_with_used_fragments","tests/client_generators/result_types_generator/test_get_operation_as_str.py::test_get_operation_as_str_returns_str_with_fragment_used_by_another_fragment","tests/client_generators/result_types_generator/test_get_operation_as_str.py::test_get_operation_as_str_returns_representation_without_mixin_directive"],"failed":["tests/client_generators/result_types_generator/test_get_operation_as_str.py::test_get_operation_as_str_returns_str_with_added_typename"],"errors":[],"skipped":[],"collection_errors":[],"failure_text":{"tests/client_generators/result_types_generator/test_get_operation_as_str.py::test_get_operation_as_str_returns_str_with_added_typename":"TypeError: Redefinition of reserved type 'String'\nE   KeyError: '__typename'\n\nDuring handling of the above exception, another exception occurred:\nE   TypeError: Redefinition of reserved type 'String'"}},"diff":null,"patch_sha256":null,"dropped_paths":[],"snapshot_sha":null}
{"receipt_id":"agent1-6","seq":6,"branch_id":"agent1","kind":"command","cmd":"/opt/receipts-38ee648d99534848bfe4e7af695fb319/bin/busybox mkdir -p /opt/receipts/reports && python -I /opt/receipts-38ee648d99534848bfe4e7af695fb319/receipts_pytest.py tests/client_generators/result_types_generator/test_get_operation_as_str.py::test_get_operation_as_str_returns_representation_without_mixin_directive -v -o junit_family=xunit1 -p no:cacheprovider -rA --continue-on-collection-errors --junitxml=/opt/receipts/reports/agent1-6.xml","path":null,"exit_code":0,"stdout_tail":"============================= test session starts ==============================\nplatform linux -- Python 3.10.19, pytest-9.0.2, pluggy-1.6.0 -- /usr/local/bin/python\nrootdir: /ariadne-codegen\nconfigfile: pyproject.toml\nplugins: anyio-4.12.1, asyncio-1.3.0, httpx-0.36.0, mock-3.15.1\nasyncio: mode=strict, debug=False, asyncio_default_fixture_loop_scope=None, asyncio_default_test_loop_scope=function\ncollecting ... collected 1 item\n\ntests/client_generators/result_types_generator/test_get_operation_as_str.py::test_get_operation_as_str_returns_representation_without_mixin_directive PASSED [100%]\n\n==================================== PASSES ====================================\n------------ generated xml file: /opt/receipts/reports/agent1-6.xml ------------\n=========================== short test summary info ============================\nPASSED tests/client_generators/result_types_generator/test_get_operation_as_str.py::test_get_operation_as_str_returns_representation_without_mixin_directive\n============================== 1 passed in 0.36s ===============================\n","stderr_tail":"","stdout_sha256":"86192f3c08c051e118e2d5a5cd24b556d8c78b5bca204ec551e6f70851aeafa2","log_path":"~/dev/nebius-hackathon/pilot/v2-P/mirumee__ariadne-codegen-159/runs/pilot-mirumee__ariadne-codegen-159-93bb7154d4/logs/agent1/agent1-6.log","tree_digest":"8f617d7e178ce09073fd15d9e73bcb4cbd3a99acabe7f58fe4f8ffc55e9620db","tree_download_s":2.685329291038215,"started_at":"2026-10-03T18:12:56.040550Z","duration_s":1.184154,"timed_out":false,"image_before":"68c5dc01-2d4e-46d9-8bdf-9718dc47b411","image_after":"e8101032-a01f-476e-a1a7-48fda60b6eb1","junit":{"passed":["tests/client_generators/result_types_generator/test_get_operation_as_str.py::test_get_operation_as_str_returns_representation_without_mixin_directive"],"failed":[],"errors":[],"skipped":[],"collection_errors":[],"failure_text":{}},"diff":null,"patch_sha256":null,"dropped_paths":[],"snapshot_sha":null}
{"receipt_id":"agent1-7","seq":7,"branch_id":"agent1","kind":"diff","cmd":"compute patch in executor staging agent1-0c7f6195be33415791a0831662731f17: /opt/homebrew/Cellar/git/2.53.0/bin/git -c core.hooksPath=/dev/null -c core.attributesFile=/dev/null -c diff.external= -c core.quotePath=false add -A && /opt/homebrew/Cellar/git/2.53.0/bin/git -c core.hooksPath=/dev/null -c core.attributesFile=/dev/null -c diff.external= -c core.quotePath=false diff --cached --binary --no-ext-diff --no-textconv --no-renames b09cb8a97b5a96459e2d09d14bc6f5b31fe9f693","path":null,"exit_code":0,"stdout_tail":"diff --git a/ariadne_codegen/client_generators/result_types.py b/ariadne_codegen/client_generators/result_types.py\nindex 1a1e9e1..9e2177e 100644\n--- a/ariadne_codegen/client_generators/result_types.py\n+++ b/ariadne_codegen/client_generators/result_types.py\n@@ -167,7 +167,85 @@ class ResultTypesGenerator:\n         return self._class_defs\n \n     def get_operation_as_str(self) -> str:\n-        operation_str = print_ast(self.operation_definition)\n+        # Create a copy of the operation definition without mixin directives\n+        from graphql import OperationDefinitionNode\n+        \n+        def remove_mixin_directives_from_selections(selections):\n+            result = []\n+            for selection in selections:\n+                if hasattr(selection, 'directives') and selection.directives:\n+                    # Filter out mixin directives\n+                    filtered_directives = [\n+                        d for d in selection.directives \n+                        if not (d.name and d.name.value == MIXIN_NAME)\n+                    ]\n+                    # Create a copy of the selection with filtered directives\n+                    if isinstance(selection, FieldNode):\n+                        new_selection = FieldNode(\n+                            alias=selection.alias,\n+                            name=selection.name,\n+                            arguments=selection.arguments,\n+                            directives=filtered_directives,\n+                            selection_set=selection.selection_set\n+                        )\n+                        # Recursively process nested selections\n+                        if new_selection.selection_set:\n+                            new_selection.selection_set = SelectionSetNode(\n+                                selections=remove_mixin_directives_from_selections(\n+                                    new_selection.selection_set.selections\n+                                )\n+                            )\n+                        result.append(new_selection)\n+                    elif isinstance(selection, InlineFragmentNode):\n+                        new_selection = InlineFragmentNode(\n+                            type_condition=selection.type_condition,\n+                            directives=filtered_directives,\n+                            selection_set=selection.selection_set\n+                        )\n+                        # Recursively process nested selections\n+                        if new_selection.selection_set:\n+                            new_selection.selection_set = SelectionSetNode(\n+                                selections=remove_mixin_directives_from_selections(\n+                                    new_selection.selection_set.selections\n+                                )\n+                            )\n+                        result.append(new_selection)\n+                    elif isinstance(selection, FragmentSpreadNode):\n+                        # Fragment spreads don't typically have directives that matter here,\n+                        # but we copy them anyway\n+                        result.append(selection)\n+                    else:\n+                        result.append(selection)\n+                else:\n+                    result.append(selection)\n+            return result\n+\n+        # Copy the operation definition and remove mixin directives\n+        if hasattr(self.operation_definition, 'directives'):\n+            filtered_directives = [\n+                d for d in self.operation_definition.directives\n+                if not (d.name and d.name.value == MIXIN_NAME)\n+            ]\n+            \n+            if isinstance(self.operation_definition, OperationDefinitionNode):\n+                cleaned_operation = OperationDefinitionNode(\n+                    operation=self.operation_definition.operation,\n+                    name=self.operation_definition.name,\n+                    variable_definitions=self.operation_definition.variable_definitions,\n+                    directives=filtered_directives,\n+                    selection_set=SelectionSetNode(\n+                        selections=remove_mixin_directives_from_selections(\n+                            self.operation_definition.selection_set.selections\n+                        )\n+                    )\n+                )\n+            else:\n+                # For other executable definitions (shouldn't happen in practice for queries)\n+                cleaned_operation = self.operation_definition\n+        else:\n+            cleaned_operation = self.operation_definition\n+            \n+        operation_str = print_ast(cleaned_operation)\n         if self._fragments_used_as_mixins or self._unpacked_fragments:\n             for used_fragment in sorted(self._get_all_related_fragments()):\n                 operation_str += \"\\n\\n\" + print_ast(\n","stderr_tail":"","stdout_sha256":"e0484aa0cc173e988287f002e3e4e5326d7e6069986511d605c49981e230b5b5","log_path":null,"tree_digest":"8f617d7e178ce09073fd15d9e73bcb4cbd3a99acabe7f58fe4f8ffc55e9620db","tree_download_s":2.6793674579821527,"started_at":"2026-10-03T18:13:11.411966Z","duration_s":0.037918708054348826,"timed_out":false,"image_before":"e8101032-a01f-476e-a1a7-48fda60b6eb1","image_after":"e8101032-a01f-476e-a1a7-48fda60b6eb1","junit":null,"diff":{"files":[{"path":"ariadne_codegen/client_generators/result_types.py","added":79,"deleted":1,"category":"source","status":"modified"}],"patch_sha256":"e0484aa0cc173e988287f002e3e4e5326d7e6069986511d605c49981e230b5b5","patch_path":"~/dev/nebius-hackathon/pilot/v2-P/mirumee__ariadne-codegen-159/runs/pilot-mirumee__ariadne-codegen-159-93bb7154d4/artifacts/agent1/agent1-7.patch"},"patch_sha256":"e0484aa0cc173e988287f002e3e4e5326d7e6069986511d605c49981e230b5b5","dropped_paths":[],"snapshot_sha":"b09cb8a97b5a96459e2d09d14bc6f5b31fe9f693"}
