[DRIVERS-2459] Add script to download mongocryptd and crypt_shared for Serverless tests Created: 05/Oct/22  Updated: 22/Nov/22

Status: Implementing
Project: Drivers
Component/s: Evergreen Tools
Fix Version/s: None

Type: Improvement Priority: Unknown
Reporter: Andreas Braun Assignee: Andreas Braun
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Issue split
split to RUBY-3183 Do not use mongodl.py to download cry... Backlog
Driver Changes: Needed
Downstream Changes Summary:

The changes required depends on whether drivers have implemented DRIVERS-2400:

  • For drivers that have not yet implemented DRIVERS-2400, no changes are necessary. When implementing DRIVERS-2400, drivers can rely on mongocryptd and crypt_shared being installed after starting a Serverless instance.
  • Drivers that have already implemented DRIVERS-2400 will have added logic to install mongocryptd and crypt_shared to run FLE tests on Serverless. Any logic to download binaries can be removed and drivers can rely on mongocryptd and crypt_shared being installed after starting a Serverless instance.
Driver Compliance:
Key Status/Resolution FixVersion
RUBY-3183 Backlog

 Description   

As part of the changes required for DRIVERS-2400, drivers need to download mongocryptd and crypt_shared, which is usually done when calling run-orchestration.sh. However, when running tests against a Serverless instance, this script isn't called by the drivers. At the moment, this means that drivers have to do this manually in their evergreen files, leading to code duplication and potential errors. As an example, consider the go implementation: https://github.com/mongodb/mongo-go-driver/pull/1069/files#diff-2bc841e86ce96b7b422ae203fd8315d0b2a461956cecbe0e096420656fc3fb12R2183

This ticket proposes to add a separate script that downloads an appropriate version of mongocryptd and crypt_shared. This script should also be used to download mongodb in run-orchestration.sh.



 Comments   
Comment by Githook User [ 11/Nov/22 ]

Author:

{'name': 'Andreas Braun', 'email': 'alcaeus@users.noreply.github.com', 'username': 'alcaeus'}

Message: DRIVERS-2459: Add script to download mongocryptd and crypt_shared (#242)

  • DRIVERS-2459: Add script to download mongocryptd and crypt_shared
  • Exit when version could not be detected
  • Update default value for SERVERLESS_SKIP_CRYPT
Comment by Bailey Pearson [ 11/Oct/22 ]

Node currently maintains a crypt_shared download script for reference.  This may be easier to port in the meantime than the Go implementation.

https://github.com/mongodb/node-mongodb-native/blob/main/.evergreen/prepare-crypt-shared-lib.sh

 

Generated at Thu Feb 08 08:25:38 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.