Skip to content

Conversation

@eramongodb
Copy link
Contributor

Description

Resolves CXX-2656. Verified by this patch.

Resolves current Evergreen task failures when testing against latest replica sets due to the following error:

Encountered a Queryable Encryption insert/update payload type that is no longer supported

Legacy CSE Tests

This PR moves legacy CSE tests into a proper legacy subdirectory for consistency with other unified spec tests with legacy/unified components. Updated CSE test environment variables accordingly.

CXX-2656 Test Files

This PR syncs the legacy test files with mongodb/specifications@64deb28 with the exception of the following files:

  • count.json: see CXX-1940.
  • timeoutMS.json: see CXX-2181.
  • create-and-createIndexes.json: see CXX-2513.
  • create-and-createIndexes.json: see CXX-2513.
  • validatorAndPartialFieldExpression.json: see CXX-2513.

Minimum libmongoc Version

Bumped to mongodb/mongo-c-driver@8aced03 to include dependent changes introduced by mongodb/mongo-c-driver#1228, including use of libmongocrypt 1.8.0-alpha0.

Snapshot Documentation Examples

This PR also introduces a skip condition for snapshot documentation examples. See CXX-2671 for details.

Miscellaneous

Improved quality of error messages on unexpected test operation success (when an error was expected instead) by emitting the result of the successful command.

@eramongodb eramongodb self-assigned this Apr 10, 2023
Copy link
Collaborator

@kevinAlbs kevinAlbs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM with a change to a test skip condition.

// CXX-2656: temporarily workaround "payload type that is no longer supported" errors until the
// QEv2 protocol is properly supported.
if (test_util::newer_than(conn, "7.0")) {
WARN("Skipping - skipping tests that require QEv2 (CXX-2656)");
return;
}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Prose tests that require Queryable Encryption are expected to require server version 7.0 or newer.

Suggest replacing this if block and the one above with:

    if (!test_util::newer_than(conn, "7.0")) {
        WARN("Skipping - MongoDB server 7.0 or newer required");
        return;
    }

@eramongodb
Copy link
Contributor Author

Latest changes verified by this patch.

@eramongodb eramongodb merged commit 0e01f26 into mongodb:master Apr 10, 2023
@eramongodb eramongodb deleted the cxx-2656 branch April 10, 2023 22:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants