[CDRIVER-4495] Test crypt_shared with older server versions Created: 10/Oct/22  Updated: 28/Oct/23  Resolved: 20/Dec/22

Status: Closed
Project: C Driver
Component/s: Client Side Encryption
Affects Version/s: None
Fix Version/s: 1.24.0

Type: Task Priority: Unknown
Reporter: PM Bot Assignee: Kevin Albertson
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Issue split
split from DRIVERS-2465 Test crypt_shared with older server v... Closed
Related
is related to PHPLIB-1008 Test crypt_shared with older server v... Closed
Quarter: FY24Q2
Upstream Changes Summary:

DRIVERS-2465:
See https://github.com/mongodb/specifications/commit/d90583f467cb406928c1e86eee7a258ae50b235e for updated test requirements for CSFLE. The following is a summary of the changes:

  • Drivers MUST run all tests with mongocryptd on at least one platform for all
    tested server versions (4.2+).
  • Drivers MUST run all tests with crypt_shared_ on at least one platform for all
    tested server versions (4.2+). For server versions < 6.0, drivers MUST test with the
    latest major release of crypt_shared_ (currently 6.0). Using the latest major release of
    crypt_shared_ is supported with older server versions.

As of https://github.com/mongodb-labs/drivers-evergreen-tools/commit/1d7119eeb531e7fab60423e803a94f4a2f61ec0f, download-mongodb.sh downloads the latest major version of crypt_shared if the server version is less than 6.0.

There may be no required driver changes if these requirements are already tested. The Go driver did not require changes. The Go driver tests with mongocryptd on separate variants. The other variants test with crypt_shared and include tests back to server versions 4.2.

Drivers may manually verify the version of crypt_shared that is downloaded from the output of run-orchestration.sh where the URL is printed.


 Description   

This ticket was split from DRIVERS-2465, please see that ticket for a detailed description.



 Comments   
Comment by Githook User [ 20/Dec/22 ]

Author:

{'name': 'Kevin Albertson', 'email': 'kevin.albertson@mongodb.com', 'username': 'kevinAlbs'}

Message: CDRIVER-4495 Test crypt_shared with older server versions (#1169)

  • remove unused USE_CRYPT_SHARED expansion
  • add SKIP_CRYPT_SHARED_LIB expansion
  • rename asan-ubuntu-without-csfle to asan-ubuntu-with-mongocryptd
  • sync download-mongodb.sh to 1d7119eeb531e7fab60423e803a94f4a2f61ec0f
  • remove GENERIC_LINUX_URL check

It does not provide much value. Calling get_mongodb_download_url_for now errors if a download is unavailable.
Alternatively, this check can be limited to server versions < 4.2.
Branch: master
https://github.com/mongodb/mongo-c-driver/commit/6604ae3e42873d26868c2281f4dea84e8801a24b

Generated at Wed Feb 07 21:21:05 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.