{"name": "test_hub_e2e_cainiao[params2]", "status": "broken", "statusDetails": {"message": "sqlalchemy.orm.exc.DetachedInstanceError: Instance <BigBagTemplate at 0x7f00ed7893d0> is not bound to a Session; attribute refresh operation cannot proceed (Background on this error at: https://sqlalche.me/e/20/bhk3)", "trace": "self = <tests.hub.test_e2e.test_cainiao.TestHubE2ECainiao object at 0x7f00ef8ede90>\nparams = {'asn_parcel_price': 8028, 'destination_code': <CountryCode.Uzbekistan: 'UZ'>, 'package_template_id': '53675707-c20b-4005-b1d9-aa59966196fb', 'registration_type': <PackageExternalRegistrationType.SimpleRegistered: 'SimpleRegistered'>, ...}\nhub_1_with_auth = {'headers': {'Authorization': 'Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJodWJfYmFyY29kZSI6Ijk5OTk5OTEiLCJodWJfdXN...ger;Operator', features_list='ZoneInbound;ZoneSorting;ZonePacking;ZoneCustoms;ZoneOsl;ZoneDispatch', is_deleted=False)}\nhub_templates_big_bag = {'CELPostal': <src.framework.hub.db.schemas.configuration.BigBagTemplate object at 0x7f00ed789850>, 'Cainiao': <src.fr...7f00ed789310>, 'Cainiao_UZ': <src.framework.hub.db.schemas.configuration.BigBagTemplate object at 0x7f00ed3415d0>, ...}\n\n    @pytest.mark.parametrize(\n        \"params\",\n        [\n            {\n                \"destination_code\": CountryCode.Uzbekistan,\n                \"registration_type\": PackageExternalRegistrationType.NO_TYPE,\n                \"package_template_id\": \"cbe90881-a1a3-47d1-8efa-587785c446cc\",\n                \"asn_parcel_price\": randint(100, 9999),\n                \"sort_plan_id\": 46,\n            },\n            {\n                \"destination_code\": CountryCode.Uzbekistan,\n                \"registration_type\": PackageExternalRegistrationType.Registered,\n                \"package_template_id\": \"53675707-c20b-4005-b1d9-aa59966196fb\",\n                \"asn_parcel_price\": randint(100, 9999),\n                \"sort_plan_id\": 17,\n            },\n            {\n                \"destination_code\": CountryCode.Uzbekistan,\n                \"registration_type\": PackageExternalRegistrationType.SimpleRegistered,\n                \"package_template_id\": \"53675707-c20b-4005-b1d9-aa59966196fb\",\n                \"asn_parcel_price\": randint(100, 9999),\n                \"sort_plan_id\": 6,\n            },\n            {\n                \"destination_code\": CountryCode.Kyrgyzstan,\n                \"registration_type\": PackageExternalRegistrationType.Registered,\n                \"package_template_id\": \"53675707-c20b-4005-b1d9-aa59966196fb\",\n                \"asn_parcel_price\": randint(100, 9999),\n                \"sort_plan_id\": 39,\n            },\n        ],\n    )\n    def test_hub_e2e_cainiao(self, params, hub_1_with_auth, hub_templates_big_bag):\n        hub_e2e = V1HubE2EBuilder(\n            hub_flow=HubE2EFlow.Cainiao,\n            headers=hub_1_with_auth[\"headers\"],\n            hub=hub_1_with_auth[\"hub\"],\n            user=hub_1_with_auth[\"user\"],\n            destination_code=params[\"destination_code\"],\n            registration_type=params[\"registration_type\"],\n            danger_type=PackageExternalPackageDangerType.General,\n            asn_parcel_price=params[\"asn_parcel_price\"],\n            package_template_id=params[\"package_template_id\"],\n>           big_bag_template_id=hub_templates_big_bag[\"Cainiao\"].big_bag_template_id,\n                                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n            sort_plan_id=params[\"sort_plan_id\"],\n            declaration_channel_type=HubChannelType.Postal,\n            declaration_document_type=HubDocumentType.PostalDispatch,\n        )\n\ntests/hub/test_e2e/test_cainiao.py:68: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n/usr/local/lib/python3.11/site-packages/sqlalchemy/orm/attributes.py:569: in __get__\n    return self.impl.get(state, dict_)  # type: ignore[no-any-return]\n           ^^^^^^^^^^^^^^^^^^^^^^^^^^^\n/usr/local/lib/python3.11/site-packages/sqlalchemy/orm/attributes.py:1096: in get\n    value = self._fire_loader_callables(state, key, passive)\n            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n/usr/local/lib/python3.11/site-packages/sqlalchemy/orm/attributes.py:1126: in _fire_loader_callables\n    return state._load_expired(state, passive)\n           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n/usr/local/lib/python3.11/site-packages/sqlalchemy/orm/state.py:828: in _load_expired\n    self.manager.expired_attribute_loader(self, toload, passive)\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nmapper = <Mapper at 0x7f00f2fbbc10; BigBagTemplate>\nstate = <sqlalchemy.orm.state.InstanceState object at 0x7f00ed35bfb0>\nattribute_names = {'big_bag_template_id', 'big_bag_type', 'cargo_prefix', 'check_weight', 'created_at', 'hub_id', ...}\npassive = symbol('PASSIVE_OFF')\n\n    def load_scalar_attributes(mapper, state, attribute_names, passive):\n        \"\"\"initiate a column-based attribute refresh operation.\"\"\"\n    \n        # assert mapper is _state_mapper(state)\n        session = state.session\n        if not session:\n>           raise orm_exc.DetachedInstanceError(\n                \"Instance %s is not bound to a Session; \"\n                \"attribute refresh operation cannot proceed\" % (state_str(state))\n            )\nE           sqlalchemy.orm.exc.DetachedInstanceError: Instance <BigBagTemplate at 0x7f00ed7893d0> is not bound to a Session; attribute refresh operation cannot proceed (Background on this error at: https://sqlalche.me/e/20/bhk3)\n\n/usr/local/lib/python3.11/site-packages/sqlalchemy/orm/loading.py:1607: DetachedInstanceError"}, "attachments": [{"name": "log", "source": "4abac8ce-de69-4ef2-b1c1-7ede41aa9b52-attachment.txt", "type": "text/plain"}], "parameters": [{"name": "params", "value": "{'destination_code': <CountryCode.Uzbekistan: 'UZ'>, 'registration_type': <PackageExternalRegistrationType.SimpleRegistered: 'SimpleRegistered'>, 'package_template_id': '53675707-c20b-4005-b1d9-aa59966196fb', 'asn_parcel_price': 8028, 'sort_plan_id': 6}"}], "start": 1775605495735, "stop": 1775605495735, "uuid": "dcf4aacb-5413-4446-9b85-ae12aa2df34b", "historyId": "d27707f91ea64358cf93f5e00291726a", "testCaseId": "d4f30a34eda2fc5813532616757624ca", "fullName": "tests.hub.test_e2e.test_cainiao.TestHubE2ECainiao#test_hub_e2e_cainiao", "labels": [{"name": "tag", "value": "hub-end-to-end"}, {"name": "tag", "value": "hub-flow-cainiao"}, {"name": "parentSuite", "value": "tests.hub.test_e2e"}, {"name": "suite", "value": "test_cainiao"}, {"name": "subSuite", "value": "TestHubE2ECainiao"}, {"name": "host", "value": "runner-1rdl4o-mi-project-9-concurrent-0-1kg80ota"}, {"name": "thread", "value": "22-MainThread"}, {"name": "framework", "value": "pytest"}, {"name": "language", "value": "cpython3"}, {"name": "package", "value": "tests.hub.test_e2e.test_cainiao"}], "titlePath": ["tests", "hub", "test_e2e", "test_cainiao.py", "TestHubE2ECainiao"]}