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

Test Failure - test_encryption.TestClientSimple.test_fork

    • Type: Icon: Build Failure Build Failure
    • Resolution: Unresolved
    • Priority: Icon: Unknown Unknown
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • Python Drivers

      Starting with PYTHON-4673, test.test_encryption.TestClientSimple.test_fork is has been failing:

       [2024/09/02 11:31:59.618] FAILURE: AssertionError: child timed out after 60s (see traceback in logs): deadlock? ()
       [2024/09/02 11:31:59.618] self = <test.test_encryption.TestClientSimple testMethod=test_fork>
       [2024/09/02 11:31:59.618]     @unittest.skipIf(
       [2024/09/02 11:31:59.618]         not hasattr(os, "register_at_fork"),
       [2024/09/02 11:31:59.618]         "register_at_fork not available in this version of Python",
       [2024/09/02 11:31:59.618]     )
       [2024/09/02 11:31:59.618]     @unittest.skipIf(
       [2024/09/02 11:31:59.618]         is_greenthread_patched(),
       [2024/09/02 11:31:59.618]         "gevent and eventlet do not support POSIX-style forking.",
       [2024/09/02 11:31:59.618]     )
       [2024/09/02 11:31:59.618]     def test_fork(self):
       [2024/09/02 11:31:59.618]         opts = AutoEncryptionOpts(KMS_PROVIDERS, "keyvault.datakeys")
       [2024/09/02 11:31:59.618]         client = rs_or_single_client(auto_encryption_opts=opts)
       [2024/09/02 11:31:59.618]         self.addCleanup(client.close)
       [2024/09/02 11:31:59.618]     
       [2024/09/02 11:31:59.618]         def target():
       [2024/09/02 11:31:59.618]             with warnings.catch_warnings():
       [2024/09/02 11:31:59.618]                 warnings.simplefilter("ignore")
       [2024/09/02 11:31:59.618]                 client.admin.command("ping")
       [2024/09/02 11:31:59.618]     
       [2024/09/02 11:31:59.618]         with self.fork(target):
       [2024/09/02 11:31:59.618] >           target()
       [2024/09/02 11:31:59.618] test/test_encryption.py:372: 
       [2024/09/02 11:31:59.618] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
       [2024/09/02 11:31:59.618] /opt/python/pypy3.9/lib/pypy3.9/contextlib.py:126: in __exit__
       [2024/09/02 11:31:59.618]     next(self.gen)
       [2024/09/02 11:31:59.618] test/__init__.py:927: in fork
       [2024/09/02 11:31:59.618]     self.fail(f"child timed out after {timeout}s (see traceback in logs): deadlock?")
       [2024/09/02 11:31:59.618] E   AssertionError: child timed out after 60s (see traceback in logs): deadlock?
      

      https://spruce.mongodb.com/task/mongo_python_driver_tests_python_version_rhel8_test_encryption__platform~rhel8_auth_ssl~noauth_nossl_python_version~pypy3.9_encryption~encryption_crypt_shared_test_8.0_replica_set_e6b95f65953e01e435004af069a6976473eaf841_24_08_29_14_02_47/tests?execution=0&sortBy=STATUS&sortDir=ASC

      See the full test logs for more info.

            Assignee:
            noah.stapp@mongodb.com Noah Stapp
            Reporter:
            shane.harvey@mongodb.com Shane Harvey
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: