ExportXMLWordPrintableJSON

    • Type: Build Failure
    • Resolution: Gone away
    • Priority: Unknown
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • None
    • Python Drivers
    • Hide

      1. What would you like to communicate to the user about this feature?
      2. Would you like the user to see examples of the syntax and/or executable code and its output?
      3. Which versions of the driver/connector does this apply to?

      Show
      1. What would you like to communicate to the user about this feature? 2. Would you like the user to see examples of the syntax and/or executable code and its output? 3. Which versions of the driver/connector does this apply to?
    • None
    • None
    • None
    • None
    • None
    • None

      Name of Failure:

      test.asynchronous.test_concurrency.TestAsyncConcurrency.test_concurrency

      Link to task:

      https://spruce.corp.mongodb.com/task/mongo_python_driver_mongodb_rapid_test_server_version_python3.10_async_auth_ssl_sharded_cluster_min_deps_cov_bb7a81f1e01d00d9534da0c114f9e7b9f9f76b7c_26_06_30_13_42_02/tests?execution=0&sorts=STATUS%3AASC

      Context of when and why the failure occurred:

      Test is extremely dependent on host conditions.

      Stack trace:

      
      
      [2026/06/30 07:03:17.183] FAILURE: AssertionError: 34.673083208924446 not greater than or equal to 50 ()
      [2026/06/30 07:03:17.183] self = <test.asynchronous.test_concurrency.TestAsyncConcurrency testMethod=test_concurrency>
      [2026/06/30 07:03:17.183]     @unittest.skipIf(
      [2026/06/30 07:03:17.183]         sys.platform == "darwin" and "CI" in os.environ,
      [2026/06/30 07:03:17.183]         "PYTHON-5861: $where is too slow on macOS CI",
      [2026/06/30 07:03:17.183]     )
      [2026/06/30 07:03:17.183]     async def test_concurrency(self):
      [2026/06/30 07:03:17.183]         tasks = []
      [2026/06/30 07:03:17.183]         iterations = 5
      [2026/06/30 07:03:17.183]     
      [2026/06/30 07:03:17.183]         client = await self.async_single_client()
      [2026/06/30 07:03:17.183]         await client.db.test.drop()
      [2026/06/30 07:03:17.183]         await client.db.test.insert_one({"x": 1})
      [2026/06/30 07:03:17.183]     
      [2026/06/30 07:03:17.183]         start = time.time()
      [2026/06/30 07:03:17.183]     
      [2026/06/30 07:03:17.183]         for _ in range(iterations):
      [2026/06/30 07:03:17.183]             await self._task(client)
      [2026/06/30 07:03:17.183]     
      [2026/06/30 07:03:17.183]         sequential_time = time.time() - start
      [2026/06/30 07:03:17.183]         start = time.time()
      [2026/06/30 07:03:17.183]     
      [2026/06/30 07:03:17.183]         for i in range(iterations):
      [2026/06/30 07:03:17.183]             tasks.append(self._task(client))
      [2026/06/30 07:03:17.183]     
      [2026/06/30 07:03:17.183]         await asyncio.gather(*tasks)
      [2026/06/30 07:03:17.183]         concurrent_time = time.time() - start
      [2026/06/30 07:03:17.183]     
      [2026/06/30 07:03:17.183]         percent_faster = (sequential_time - concurrent_time) / concurrent_time * 100
      [2026/06/30 07:03:17.183]         # We expect the concurrent tasks to be at least 50% faster on all platforms as a conservative benchmark
      [2026/06/30 07:03:17.183] >       self.assertGreaterEqual(percent_faster, 50)
      [2026/06/30 07:03:17.183] E       AssertionError: 34.673083208924446 not greater than or equal to 50
      [2026/06/30 07:03:17.183] test/asynchronous/test_concurrency.py:63: AssertionError
      

            Assignee:
            Noah Stapp
            Reporter:
            Noah Stapp
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: