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

[Build Failure] pymongocrypt - test_crypt_shared

    • Type: Icon: Build Failure Build Failure
    • Resolution: Unresolved
    • Priority: Icon: Unknown Unknown
    • None
    • Affects Version/s: None
    • Component/s: pymongocrypt
    • 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?

      Name of Failure:

      TestMongoCryptCallback::test_crypt_shared - AssertionError: unexpectedly None

      Link to task:

      https://spruce.mongodb.com/task/libmongocrypt_macos_test_python_67f10bfb8de69549987cc62a1d4548d7b511a7ef_25_02_20_22_08_34/logs?execution=0

      Context of when and why the failure occurred:

      Started failing on macOS m1 on 20 Feb, but there were no relevant changes to drivers-tools or pymongo that day.

      Stack trace:

      [2025/02/20 16:34:30.389] =================================== FAILURES ===================================
      [2025/02/20 16:34:30.389] ___________________ TestMongoCryptCallback.test_crypt_shared ___________________
      [2025/02/20 16:34:30.389] self = <test.test_mongocrypt.TestMongoCryptCallback testMethod=test_crypt_shared>
      [2025/02/20 16:34:30.389]     @unittest.skipUnless(
      [2025/02/20 16:34:30.389]         os.getenv("TEST_CRYPT_SHARED"), "this test requires TEST_CRYPT_SHARED=1"
      [2025/02/20 16:34:30.389]     )
      [2025/02/20 16:34:30.389]     def test_crypt_shared(self):
      [2025/02/20 16:34:30.389]         kms_providers = {
      [2025/02/20 16:34:30.389]             "aws": {"accessKeyId": "example", "secretAccessKey": "example"},
      [2025/02/20 16:34:30.389]             "local": {"key": b"\x00" * 96},
      [2025/02/20 16:34:30.389]         }
      [2025/02/20 16:34:30.389]         mc = MongoCrypt(MongoCryptOptions(kms_providers), MockCallback())
      [2025/02/20 16:34:30.389]         self.addCleanup(mc.close)
      [2025/02/20 16:34:30.389] >       self.assertIsNotNone(mc.crypt_shared_lib_version)
      [2025/02/20 16:34:30.389] E       AssertionError: unexpectedly None
      [2025/02/20 16:34:30.389] test/test_mongocrypt.py:516: AssertionError
      [2025/02/20 16:34:30.389] ________________ TestAsyncMongoCryptCallback.test_crypt_shared _________________
      [2025/02/20 16:34:30.389] self = <test.test_mongocrypt.TestAsyncMongoCryptCallback testMethod=test_crypt_shared>
      [2025/02/20 16:34:30.389]     @unittest.skipUnless(
      [2025/02/20 16:34:30.389]         os.getenv("TEST_CRYPT_SHARED"), "this test requires TEST_CRYPT_SHARED=1"
      [2025/02/20 16:34:30.389]     )
      [2025/02/20 16:34:30.389]     async def test_crypt_shared(self):
      [2025/02/20 16:34:30.389]         kms_providers = {
      [2025/02/20 16:34:30.389]             "aws": {"accessKeyId": "example", "secretAccessKey": "example"},
      [2025/02/20 16:34:30.389]             "local": {"key": b"\x00" * 96},
      [2025/02/20 16:34:30.389]         }
      [2025/02/20 16:34:30.389]         mc = MongoCrypt(MongoCryptOptions(kms_providers), MockAsyncCallback())
      [2025/02/20 16:34:30.389]         self.addCleanup(mc.close)
      [2025/02/20 16:34:30.389] >       self.assertIsNotNone(mc.crypt_shared_lib_version)
      [2025/02/20 16:34:30.389] E       AssertionError: unexpectedly None
      [2025/02/20 16:34:30.389] test/test_mongocrypt.py:647: AssertionError
      

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

              Created:
              Updated: