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

Test Failure - crypt_shared FLE tests fail on Windows/macos

    • Type: Icon: Build Failure Build Failure
    • Resolution: Fixed
    • Priority: Icon: Unknown Unknown
    • 4.2
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None

      The tests added in PYTHON-3297 are failing on various platforms:

       [2022/06/30 00:31:18.236] ERROR: test_01_command_error (test.test_encryption.TestDecryptProse)
       [2022/06/30 00:31:18.236] ----------------------------------------------------------------------
       [2022/06/30 00:31:18.236] Traceback (most recent call last):
       [2022/06/30 00:31:18.236]   File "C:\data\mci\e157ef0182dd4e4133a88ffc02eef804\src\test\test_encryption.py", line 1813, in test_01_command_error
       [2022/06/30 00:31:18.236]     self.encrypted_client.db.decryption_events.aggregate([])
       [2022/06/30 00:31:18.236]   File "C:\data\mci\e157ef0182dd4e4133a88ffc02eef804\src\pymongo\collection.py", line 2433, in aggregate
       [2022/06/30 00:31:18.236]     with self.__database.client._tmp_session(session, close=False) as s:
       [2022/06/30 00:31:18.236]   File "C:\python\Python310\lib\contextlib.py", line 135, in __enter__
       [2022/06/30 00:31:18.236]     return next(self.gen)
       [2022/06/30 00:31:18.236]   File "C:\data\mci\e157ef0182dd4e4133a88ffc02eef804\src\pymongo\mongo_client.py", line 1714, in _tmp_session
       [2022/06/30 00:31:18.236]     s = self._ensure_session(session)
       [2022/06/30 00:31:18.236]   File "C:\data\mci\e157ef0182dd4e4133a88ffc02eef804\src\pymongo\mongo_client.py", line 1697, in _ensure_session
       [2022/06/30 00:31:18.236]     return self.__start_session(True, causal_consistency=False)
       [2022/06/30 00:31:18.236]   File "C:\data\mci\e157ef0182dd4e4133a88ffc02eef804\src\pymongo\mongo_client.py", line 1642, in __start_session
       [2022/06/30 00:31:18.236]     self._topology._check_implicit_session_support()
       [2022/06/30 00:31:18.236]   File "C:\data\mci\e157ef0182dd4e4133a88ffc02eef804\src\pymongo\topology.py", line 538, in _check_implicit_session_support
       [2022/06/30 00:31:18.236]     self._check_session_support()
       [2022/06/30 00:31:18.236]   File "C:\data\mci\e157ef0182dd4e4133a88ffc02eef804\src\pymongo\topology.py", line 554, in _check_session_support
       [2022/06/30 00:31:18.236]     self._select_servers_loop(
       [2022/06/30 00:31:18.236]   File "C:\data\mci\e157ef0182dd4e4133a88ffc02eef804\src\pymongo\topology.py", line 238, in _select_servers_loop
       [2022/06/30 00:31:18.236]     raise ServerSelectionTimeoutError(
       [2022/06/30 00:31:18.236] pymongo.errors.ServerSelectionTimeoutError: localhost:27017: [WinError 10054] An existing connection was forcibly closed by the remote host, Timeout: 30s, Topology Description: <TopologyDescription id: 62bcee2832f1febcf714e6b1, topology_type: Unknown, servers: [<ServerDescription ('localhost', 27017) server_type: Unknown, rtt: None, error=AutoReconnect('localhost:27017: [WinError 10054] An existing connection was forcibly closed by the remote host')>]>
       [2022/06/30 00:31:18.236] ======================================================================
       [2022/06/30 00:31:18.236] ERROR: test_03_decrypt_error (test.test_encryption.TestDecryptProse)
       [2022/06/30 00:31:18.236] ----------------------------------------------------------------------
       [2022/06/30 00:31:18.236] Traceback (most recent call last):
       [2022/06/30 00:31:18.236]   File "C:\data\mci\e157ef0182dd4e4133a88ffc02eef804\src\test\test_encryption.py", line 1831, in test_03_decrypt_error
       [2022/06/30 00:31:18.236]     self.encrypted_client.db.decryption_events.insert_one(
       [2022/06/30 00:31:18.236]   File "C:\data\mci\e157ef0182dd4e4133a88ffc02eef804\src\pymongo\collection.py", line 626, in insert_one
       [2022/06/30 00:31:18.236]     self._insert_one(
       [2022/06/30 00:31:18.236]   File "C:\data\mci\e157ef0182dd4e4133a88ffc02eef804\src\pymongo\collection.py", line 567, in _insert_one
       [2022/06/30 00:31:18.236]     self.__database.client._retryable_write(acknowledged, _insert_command, session)
       [2022/06/30 00:31:18.236]   File "C:\data\mci\e157ef0182dd4e4133a88ffc02eef804\src\pymongo\mongo_client.py", line 1432, in _retryable_write
       [2022/06/30 00:31:18.236]     with self._tmp_session(session) as s:
       [2022/06/30 00:31:18.236]   File "C:\python\Python310\lib\contextlib.py", line 135, in __enter__
       [2022/06/30 00:31:18.236]     return next(self.gen)
       [2022/06/30 00:31:18.236]   File "C:\data\mci\e157ef0182dd4e4133a88ffc02eef804\src\pymongo\mongo_client.py", line 1714, in _tmp_session
       [2022/06/30 00:31:18.236]     s = self._ensure_session(session)
       [2022/06/30 00:31:18.236]   File "C:\data\mci\e157ef0182dd4e4133a88ffc02eef804\src\pymongo\mongo_client.py", line 1697, in _ensure_session
       [2022/06/30 00:31:18.236]     return self.__start_session(True, causal_consistency=False)
       [2022/06/30 00:31:18.236]   File "C:\data\mci\e157ef0182dd4e4133a88ffc02eef804\src\pymongo\mongo_client.py", line 1642, in __start_session
       [2022/06/30 00:31:18.236]     self._topology._check_implicit_session_support()
       [2022/06/30 00:31:18.236]   File "C:\data\mci\e157ef0182dd4e4133a88ffc02eef804\src\pymongo\topology.py", line 538, in _check_implicit_session_support
       [2022/06/30 00:31:18.236]     self._check_session_support()
       [2022/06/30 00:31:18.236]   File "C:\data\mci\e157ef0182dd4e4133a88ffc02eef804\src\pymongo\topology.py", line 554, in _check_session_support
       [2022/06/30 00:31:18.236]     self._select_servers_loop(
       [2022/06/30 00:31:18.236]   File "C:\data\mci\e157ef0182dd4e4133a88ffc02eef804\src\pymongo\topology.py", line 238, in _select_servers_loop
       [2022/06/30 00:31:18.236]     raise ServerSelectionTimeoutError(
       [2022/06/30 00:31:18.236] pymongo.errors.ServerSelectionTimeoutError: localhost:27017: [WinError 10054] An existing connection was forcibly closed by the remote host, Timeout: 30s, Topology Description: <TopologyDescription id: 62bcee6532f1febcf714e6b7, topology_type: Unknown, servers: [<ServerDescription ('localhost', 27017) server_type: Unknown, rtt: None, error=AutoReconnect('localhost:27017: [WinError 10054] An existing connection was forcibly closed by the remote host')>]>
       [2022/06/30 00:31:18.236] ======================================================================
       [2022/06/30 00:31:18.236] ERROR: test_04_decrypt_success (test.test_encryption.TestDecryptProse)
       [2022/06/30 00:31:18.236] ----------------------------------------------------------------------
       [2022/06/30 00:31:18.236] Traceback (most recent call last):
       [2022/06/30 00:31:18.236]   File "C:\data\mci\e157ef0182dd4e4133a88ffc02eef804\src\test\test_encryption.py", line 1843, in test_04_decrypt_success
       [2022/06/30 00:31:18.236]     self.encrypted_client.db.decryption_events.insert_one({"encrypted": self.cipher_text})
       [2022/06/30 00:31:18.236]   File "C:\data\mci\e157ef0182dd4e4133a88ffc02eef804\src\pymongo\collection.py", line 626, in insert_one
       [2022/06/30 00:31:18.236]     self._insert_one(
       [2022/06/30 00:31:18.236]   File "C:\data\mci\e157ef0182dd4e4133a88ffc02eef804\src\pymongo\collection.py", line 567, in _insert_one
       [2022/06/30 00:31:18.236]     self.__database.client._retryable_write(acknowledged, _insert_command, session)
       [2022/06/30 00:31:18.236]   File "C:\data\mci\e157ef0182dd4e4133a88ffc02eef804\src\pymongo\mongo_client.py", line 1432, in _retryable_write
       [2022/06/30 00:31:18.236]     with self._tmp_session(session) as s:
       [2022/06/30 00:31:18.236]   File "C:\python\Python310\lib\contextlib.py", line 135, in __enter__
       [2022/06/30 00:31:18.236]     return next(self.gen)
       [2022/06/30 00:31:18.236]   File "C:\data\mci\e157ef0182dd4e4133a88ffc02eef804\src\pymongo\mongo_client.py", line 1714, in _tmp_session
       [2022/06/30 00:31:18.236]     s = self._ensure_session(session)
       [2022/06/30 00:31:18.236]   File "C:\data\mci\e157ef0182dd4e4133a88ffc02eef804\src\pymongo\mongo_client.py", line 1697, in _ensure_session
       [2022/06/30 00:31:18.236]     return self.__start_session(True, causal_consistency=False)
       [2022/06/30 00:31:18.236]   File "C:\data\mci\e157ef0182dd4e4133a88ffc02eef804\src\pymongo\mongo_client.py", line 1642, in __start_session
       [2022/06/30 00:31:18.236]     self._topology._check_implicit_session_support()
       [2022/06/30 00:31:18.236]   File "C:\data\mci\e157ef0182dd4e4133a88ffc02eef804\src\pymongo\topology.py", line 538, in _check_implicit_session_support
       [2022/06/30 00:31:18.236]     self._check_session_support()
       [2022/06/30 00:31:18.236]   File "C:\data\mci\e157ef0182dd4e4133a88ffc02eef804\src\pymongo\topology.py", line 554, in _check_session_support
       [2022/06/30 00:31:18.236]     self._select_servers_loop(
       [2022/06/30 00:31:18.236]   File "C:\data\mci\e157ef0182dd4e4133a88ffc02eef804\src\pymongo\topology.py", line 238, in _select_servers_loop
       [2022/06/30 00:31:18.236]     raise ServerSelectionTimeoutError(
       [2022/06/30 00:31:18.236] pymongo.errors.ServerSelectionTimeoutError: localhost:27017: [WinError 10054] An existing connection was forcibly closed by the remote host, Timeout: 30s, Topology Description: <TopologyDescription id: 62bcee8332f1febcf714e6bb, topology_type: Unknown, servers: [<ServerDescription ('localhost', 27017) server_type: Unknown, rtt: None, error=AutoReconnect('localhost:27017: [WinError 10054] An existing connection was forcibly closed by the remote host')>]>
       [2022/06/30 00:31:18.236] ======================================================================
       [2022/06/30 00:31:18.236] FAIL: test_02_network_error (test.test_encryption.TestDecryptProse)
       [2022/06/30 00:31:18.236] ----------------------------------------------------------------------
       [2022/06/30 00:31:18.236] Traceback (most recent call last):
       [2022/06/30 00:31:18.236]   File "C:\data\mci\e157ef0182dd4e4133a88ffc02eef804\src\test\test_encryption.py", line 1827, in test_02_network_error
       [2022/06/30 00:31:18.236]     self.assertEqual(len(self.listener.results["failed"]), 1)
       [2022/06/30 00:31:18.236] AssertionError: 0 != 1
      

      https://evergreen.mongodb.com/task/mongo_python_driver_tests_windows_encryption__platform~windows_64_vsMulti_small_auth_ssl~auth_ssl_python_version_windows~3.10_encryption~encryption_crypt_shared_test_6.0_replica_set_06310391185cad2af5310fa75e68d17b1f46522a_22_06_29_21_08_38

            Assignee:
            julius.park@mongodb.com Julius Park (Inactive)
            Reporter:
            shane.harvey@mongodb.com Shane Harvey
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: