Skip to content

Commit

Permalink
Fix serverless tests
Browse files Browse the repository at this point in the history
  • Loading branch information
comandeo-mongo committed Jul 22, 2024
1 parent 1661ff2 commit 9341828
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 13 deletions.
6 changes: 2 additions & 4 deletions .evergreen/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1877,11 +1877,9 @@ buildvariants:

- matrix_name: "serverless"
matrix_spec:
# https://jira.mongodb.org/browse/RUBY-3217
# ruby: ["ruby-3.2", "ruby-3.1", "ruby-3.0", "ruby-2.7", "jruby-9.4", "jruby-9.3"]
ruby: ["ruby-3.2", "ruby-3.1", "ruby-3.0", "ruby-2.7"]
ruby: "ruby-3.2"
fle: path
os: rhel8
os: ubuntu2204
display_name: "Atlas serverless ${ruby}"
tasks:
- name: serverless_task_group
Expand Down
6 changes: 2 additions & 4 deletions .evergreen/config/standard.yml.erb
Original file line number Diff line number Diff line change
Expand Up @@ -524,11 +524,9 @@ buildvariants:

- matrix_name: "serverless"
matrix_spec:
# https://jira.mongodb.org/browse/RUBY-3217
# ruby: <%= supported_rubies %>
ruby: <%= supported_mri_rubies %>
ruby: <%= latest_ruby %>
fle: path
os: rhel8
os: ubuntu2204
display_name: "Atlas serverless ${ruby}"
tasks:
- name: serverless_task_group
Expand Down
10 changes: 5 additions & 5 deletions .evergreen/run-tests-serverless.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,16 +25,16 @@ else
python3 -u .evergreen/mongodl.py --component crypt_shared -V ${SERVERLESS_MONGODB_VERSION} --out `pwd`/csfle_lib --target `host_distro` || true
if test -f `pwd`/csfle_lib/lib/mongo_crypt_v1.so
then
echo Usinn crypt shared library version ${SERVERLESS_MONGODB_VERSION}
echo Using crypt shared library version ${SERVERLESS_MONGODB_VERSION}
export MONGO_RUBY_DRIVER_CRYPT_SHARED_LIB_PATH=`pwd`/csfle_lib/lib/mongo_crypt_v1.so
else
echo Failed to download crypt shared library
exit -1
fi
fi

if ! ( test -f /etc/os-release & grep -q ^ID.*rhel /etc/os-release & grep -q ^VERSION_ID.*8.0 /etc/os-release ); then
echo Serverless tests assume rhel80
if ! ( test -f /etc/os-release & grep -q ^ID.*ubuntu /etc/os-release & grep -q ^VERSION_ID.*22.04 /etc/os-release ); then
echo Serverless tests assume ubuntu2204
echo If this has changed, update .evergreen/run-tests-serverless.sh as necessary
exit -1
fi
Expand All @@ -43,8 +43,8 @@ mkdir libmongocrypt
cd libmongocrypt
curl --retry 3 -fLo libmongocrypt-all.tar.gz "https://s3.amazonaws.com/mciuploads/libmongocrypt/all/master/latest/libmongocrypt-all.tar.gz"
tar xf libmongocrypt-all.tar.gz
# We assume that serverless tests always use rhel80
export LIBMONGOCRYPT_PATH=`pwd`/rhel-80-64-bit/nocrypto/lib64/libmongocrypt.so
# We assume that serverless tests always use ubuntu2204
export LIBMONGOCRYPT_PATH=`pwd`/ubuntu2204-64/nocrypto/lib/libmongocrypt.so
cd -

cd .evergreen/csfle
Expand Down

0 comments on commit 9341828

Please sign in to comment.