Update CSOT tests for change in dropIndex behavior in 8.3

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Unresolved
    • Priority: Minor - P4
    • None
    • Component/s: CSOT
    • None
    • Needed
    • Hide

      Summary of necessary driver changes

      •  

      Commits for syncing spec/prose tests
      (and/or refer to an existing language POC if needed)

      •  

      Context for other referenced/linked tickets

      •  
      Show
      Summary of necessary driver changes   Commits for syncing spec/prose tests (and/or refer to an existing language POC if needed)   Context for other referenced/linked tickets  
    • $i18n.getText("admin.common.words.hide")
      Key Status/Resolution FixVersion
      CDRIVER-6081 Blocked
      CXX-3329 Blocked
      CSHARP-5703 Blocked
      GODRIVER-3640 Blocked
      JAVA-5945 Blocked
      NODE-7110 Blocked
      PYTHON-5496 Blocked
      PHPLIB-1705 Blocked
      RUBY-3697 Blocked
      RUST-2260 Blocked
      $i18n.getText("admin.common.words.show")
      #scriptField, #scriptField *{ border: 1px solid black; } #scriptField{ border-collapse: collapse; } #scriptField td { text-align: center; /* Center-align text in table cells */ } #scriptField td.key { text-align: left; /* Left-align text in the Key column */ } #scriptField a { text-decoration: none; /* Remove underlines from links */ border: none; /* Remove border from links */ } /* Add green background color to cells with FixVersion */ #scriptField td.hasFixVersion { background-color: #00FF00; /* Green color code */ } #scriptField td.willNotDo { background-color: #FF0000; /* Red color code */ } /* Center-align the first row headers */ #scriptField th { text-align: center; } Key Status/Resolution FixVersion CDRIVER-6081 Blocked CXX-3329 Blocked CSHARP-5703 Blocked GODRIVER-3640 Blocked JAVA-5945 Blocked NODE-7110 Blocked PYTHON-5496 Blocked PHPLIB-1705 Blocked RUBY-3697 Blocked RUST-2260 Blocked

      Summary

      Update CSOT tests for change in dropIndex behavior in 8.3.

      Context of when and why the failure occurred:

      SERVER-90152 changed the behavior of dropIndex() to return ok:1 instead of an IndexNotFound error when the index does not exist. This causes various CSOT tests to fail because they are expecting the dropIndex to fail, for example:
      https://github.com/mongodb/specifications/blob/e9ae09d/source/client-side-operations-timeout/tests/deprecated-options.yml#L3831-L3840

      Example failing task:

      https://spruce.mongodb.com/task/mongo_python_driver_compression_snappy_rhel8_test_standard_latest_python3.11_async_noauth_ssl_replica_set_patch_bbb6f88fae5593ab14c36b9578b07d2e0f0fce62_68963ecbfb28c800073524cd_25_08_08_18_15_40/tests?execution=0&sorts=STATUS%3AASC

       [2025/08/08 13:27:05.742] FAILURE: AssertionError: Excepted error {'isClientError': False, 'isTimeoutError': False} but "dropIndex" succeeded: None ()
       [2025/08/08 13:27:05.742] self = <test.asynchronous.test_csot.TestCsotDeprecatedOptions testMethod=test_maxTimeMS_is_ignored_if_timeoutMS_is_set_-_dropIndex_on_collection>
       [2025/08/08 13:27:05.742]     async def test_case(self):
       [2025/08/08 13:27:05.742] >       await self.run_scenario(spec)
       [2025/08/08 13:27:05.742] test/asynchronous/unified_format.py:1463: 
       [2025/08/08 13:27:05.742] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
       [2025/08/08 13:27:05.742] test/asynchronous/unified_format.py:1403: in run_scenario
       [2025/08/08 13:27:05.742]     await decorator(self._run_scenario)(spec, uri)
       [2025/08/08 13:27:05.742] test/asynchronous/utils.py:205: in wrapper
       [2025/08/08 13:27:05.742]     raise e
       [2025/08/08 13:27:05.742] test/asynchronous/utils.py:199: in wrapper
       [2025/08/08 13:27:05.742]     result = await target_func(*args, **kwargs)
       [2025/08/08 13:27:05.742]              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
       [2025/08/08 13:27:05.742] test/asynchronous/unified_format.py:1440: in _run_scenario
       [2025/08/08 13:27:05.742]     await self.run_operations(spec["operations"])
       [2025/08/08 13:27:05.742] test/asynchronous/unified_format.py:1248: in run_operations
       [2025/08/08 13:27:05.742]     await self.run_entity_operation(op)
       [2025/08/08 13:27:05.742] test/asynchronous/unified_format.py:998: in run_entity_operation
       [2025/08/08 13:27:05.742]     self.fail(f'Excepted error {expect_error} but "{opname}" succeeded: {result}')
       [2025/08/08 13:27:05.742] E   AssertionError: Excepted error {'isClientError': False, 'isTimeoutError': False} but "dropIndex" succeeded: None
      

              Assignee:
              Preston Vasquez
              Reporter:
              Shane Harvey
              Shane Harvey Shane Harvey
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated: