[Build Failure] test_create_entities.TestCreateEntities

XMLWordPrintableJSON

    • Type: Build Failure
    • Resolution: Done
    • Priority: Unknown
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • Python Drivers
    • Not Needed
    • None
    • None
    • None
    • None
    • None
    • None

      Name of Failure:

      test.asynchronous.test_create_entities.TestCreateEntities.test_store_all_others_as_entities
      test.asynchronous.test_create_entities.TestCreateEntities.test_store_events_as_entities

      Link to task:

      https://spruce.mongodb.com/task/mongo_python_driver_storage_mmapv1_rhel8_python3.9_test_4.0_standalone_noauth_nossl_sync_async_ff2f95987f945fed483dcf802082ac3a173eb905_24_12_04_00_16_47/tests?execution=0&sortBy=STATUS&sortDir=ASC

      Context of when and why the failure occurred:

      SDAM refactor

      Stack trace:

       [2024/12/03 18:41:12.001] FAILURE: AttributeError: 'UnifiedSpecTestMixinV1' object has no attribute 'TEST_PATH' ()
       [2024/12/03 18:41:12.001] self = <test.asynchronous.test_create_entities.TestCreateEntities testMethod=test_store_events_as_entities>
       [2024/12/03 18:41:12.001]     async def test_store_events_as_entities(self):
       [2024/12/03 18:41:12.001]         self.scenario_runner = UnifiedSpecTestMixinV1()
       [2024/12/03 18:41:12.001]         spec = {
       [2024/12/03 18:41:12.001]             "description": "blank",
       [2024/12/03 18:41:12.001]             "schemaVersion": "1.2",
       [2024/12/03 18:41:12.001]             "createEntities": [
       [2024/12/03 18:41:12.001]                 {
       [2024/12/03 18:41:12.001]                     "client": {
       [2024/12/03 18:41:12.001]                         "id": "client0",
       [2024/12/03 18:41:12.001]                         "storeEventsAsEntities": [
       [2024/12/03 18:41:12.001]                             {
       [2024/12/03 18:41:12.001]                                 "id": "events1",
       [2024/12/03 18:41:12.001]                                 "events": [
       [2024/12/03 18:41:12.001]                                     "PoolCreatedEvent",
       [2024/12/03 18:41:12.001]                                 ],
       [2024/12/03 18:41:12.001]                             }
       [2024/12/03 18:41:12.001]                         ],
       [2024/12/03 18:41:12.001]                     }
       [2024/12/03 18:41:12.001]                 },
       [2024/12/03 18:41:12.001]             ],
       [2024/12/03 18:41:12.001]             "tests": [{"description": "foo", "operations": []}],
       [2024/12/03 18:41:12.001]         }
       [2024/12/03 18:41:12.001]         self.scenario_runner.TEST_SPEC = spec
       [2024/12/03 18:41:12.001] >       await self.scenario_runner.asyncSetUp()
       [2024/12/03 18:41:12.001] test/asynchronous/test_create_entities.py:51: 
       [2024/12/03 18:41:12.001] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
       [2024/12/03 18:41:12.001] self = <test.asynchronous.unified_format.UnifiedSpecTestMixinV1 testMethod=runTest>
       [2024/12/03 18:41:12.001]     async def asyncSetUp(self):
       [2024/12/03 18:41:12.001]         # super call creates internal client cls.client
       [2024/12/03 18:41:12.001]         await super().asyncSetUp()
       [2024/12/03 18:41:12.001]         # process file-level runOnRequirements
       [2024/12/03 18:41:12.001]         run_on_spec = self.TEST_SPEC.get("runOnRequirements", [])
       [2024/12/03 18:41:12.001]         if not await self.should_run_on(run_on_spec):
       [2024/12/03 18:41:12.001]             raise unittest.SkipTest(f"{self.__class__.__name__} runOnRequirements not satisfied")
       [2024/12/03 18:41:12.001]     
       [2024/12/03 18:41:12.001]         # add any special-casing for skipping tests here
       [2024/12/03 18:41:12.001]         if async_client_context.storage_engine == "mmapv1":
       [2024/12/03 18:41:12.001]             if "retryable-writes" in self.TEST_SPEC["description"] or "retryable_writes" in str(
       [2024/12/03 18:41:12.001] >               self.TEST_PATH
       [2024/12/03 18:41:12.001]             ):
       [2024/12/03 18:41:12.001] E           AttributeError: 'UnifiedSpecTestMixinV1' object has no attribute 'TEST_PATH'
       [2024/12/03 18:41:12.001] test/asynchronous/unified_format.py:507: AttributeError
      

            Assignee:
            Steve Silvester
            Reporter:
            Steve Silvester
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: