Uploaded image for project: 'Python Driver'
  1. Python Driver
  2. PYTHON-5005

[Build Failure] test_timeout_nested

    • Type: Icon: Build Failure Build Failure
    • Resolution: Fixed
    • Priority: Icon: Unknown Unknown
    • 4.11
    • Affects Version/s: None
    • Component/s: None
    • None
    • Python Drivers
    • Not Needed
    • 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?

      Name of Failure:

      test.test_csot.TestCSOT.test_timeout_nested

      Link to task:

      https://spruce.mongodb.com/task/mongo_python_driver_test_macos_arm64_python3.13_test_8.0_sharded_cluster_auth_ssl_sync_ff2f95987f945fed483dcf802082ac3a173eb905_24_12_04_00_16_47/tests?execution=0&sortBy=STATUS&sortDir=ASC

      Context of when and why the failure occurred:

      We need to see if this variant or this test is not honoring the CSOT skip flag.

      Stack trace:

       [2024/12/03 19:51:54.657] FAILURE: AssertionError: 67054.725674583 not less than 67054.725674583 ()
       [2024/12/03 19:51:54.657] self = <test.test_csot.TestCSOT testMethod=test_timeout_nested>
       [2024/12/03 19:51:54.657]     def test_timeout_nested(self):
       [2024/12/03 19:51:54.657]         coll = self.db.coll
       [2024/12/03 19:51:54.657]         self.assertEqual(_csot.get_timeout(), None)
       [2024/12/03 19:51:54.657]         self.assertEqual(_csot.get_deadline(), float("inf"))
       [2024/12/03 19:51:54.657]         self.assertEqual(_csot.get_rtt(), 0.0)
       [2024/12/03 19:51:54.657]         with pymongo.timeout(10):
       [2024/12/03 19:51:54.657]             coll.find_one()
       [2024/12/03 19:51:54.657]             self.assertEqual(_csot.get_timeout(), 10)
       [2024/12/03 19:51:54.657]             deadline_10 = _csot.get_deadline()
       [2024/12/03 19:51:54.657]     
       [2024/12/03 19:51:54.657]             # Capped at the original 10 deadline.
       [2024/12/03 19:51:54.657]             with pymongo.timeout(15):
       [2024/12/03 19:51:54.657]                 coll.find_one()
       [2024/12/03 19:51:54.657]                 self.assertEqual(_csot.get_timeout(), 15)
       [2024/12/03 19:51:54.657]                 self.assertEqual(_csot.get_deadline(), deadline_10)
       [2024/12/03 19:51:54.657]     
       [2024/12/03 19:51:54.657]             # Should be reset to previous values
       [2024/12/03 19:51:54.657]             self.assertEqual(_csot.get_timeout(), 10)
       [2024/12/03 19:51:54.657]             self.assertEqual(_csot.get_deadline(), deadline_10)
       [2024/12/03 19:51:54.657]             coll.find_one()
       [2024/12/03 19:51:54.657]     
       [2024/12/03 19:51:54.657]             with pymongo.timeout(5):
       [2024/12/03 19:51:54.657]                 coll.find_one()
       [2024/12/03 19:51:54.657]                 self.assertEqual(_csot.get_timeout(), 5)
       [2024/12/03 19:51:54.657] >               self.assertLess(_csot.get_deadline(), deadline_10)
       [2024/12/03 19:51:54.657] E               AssertionError: 67054.725674583 not less than 67054.725674583
       [2024/12/03 19:51:54.657] test/test_csot.py:65: AssertionError
      

            Assignee:
            steve.silvester@mongodb.com Steve Silvester
            Reporter:
            steve.silvester@mongodb.com Steve Silvester
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: