Skip to content

RUBY-3392 Bump version to 1.11.0 #11

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
5 changes: 3 additions & 2 deletions README.maint.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,9 @@ derived from `libmongocrypt` version as described below.
<https://github.com/mongodb/libmongocrypt/releases/>, and unpack it to
`ext/libmongocrypt/libmongocrypt`.
4. Update the SBOM lite file by running `etc/update-sbom.sh`
5. Commit the changes including the new shared library.
6. Create a PR for the changes. Once approved and merged, run the "Release" action on GitHub to create and publish the new gem.
5. Test the changes by running `gem build *.gemspec && gem install libmongocrypt-helper-VERSION.gem`.
6. Commit the changes.
7. Create a PR for the changes. Once approved and merged, run the "Release" action on GitHub to create and publish the new gem.

## Helper Version Scheme

Expand Down
26 changes: 26 additions & 0 deletions ext/libmongocrypt/libmongocrypt/.evergreen/benchmark-java.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
#!/usr/bin/env bash

. "$(dirname "${BASH_SOURCE[0]}")/init.sh"

if test "$OS_NAME" != "linux"; then
log "Warning: Script is expected only to run on distro: rhel90-dbx-perf-large"
log "More changes may be needed to run on other distros.";
fi

MONGOCRYPT_INSTALL_PREFIX=$LIBMONGOCRYPT_DIR/.install

# Install libmongocrypt.
build_dir="$LIBMONGOCRYPT_DIR/cmake-build"
run_cmake \
-DCMAKE_INSTALL_PREFIX="$MONGOCRYPT_INSTALL_PREFIX" \
-DCMAKE_BUILD_TYPE="RelWithDebInfo" \
-B"$build_dir"
run_cmake --build "$build_dir" --target install

# Run Java benchmarks. Do not use JDK 8 to avoid hang in gradle observed in MONGOCRYPT-590.
export JAVA_HOME=/opt/java/jdk17
# Include path to installed libmongocrypt.so
export LD_LIBRARY_PATH="$MONGOCRYPT_INSTALL_PREFIX/lib64"
cd bindings/java/mongocrypt
./gradlew --version
./gradlew clean benchmarks:run --info
32 changes: 32 additions & 0 deletions ext/libmongocrypt/libmongocrypt/.evergreen/benchmark-python.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
#!/usr/bin/env bash

. "$(dirname "${BASH_SOURCE[0]}")/init.sh"

if test "$OS_NAME" != "linux"; then
log "Warning: Script is expected only to run on distro: rhel90-dbx-perf-large"
log "More changes may be needed to run on other distros.";
fi

MONGOCRYPT_INSTALL_PREFIX=$LIBMONGOCRYPT_DIR/.install

# Install libmongocrypt.
build_dir="$LIBMONGOCRYPT_DIR/cmake-build"
run_cmake \
-DCMAKE_INSTALL_PREFIX="$MONGOCRYPT_INSTALL_PREFIX" \
-DCMAKE_BUILD_TYPE="RelWithDebInfo" \
-B"$build_dir"
run_cmake --build "$build_dir" --target install

# Run Python benchmarks.
# Include path to installed libmongocrypt.so
export LD_LIBRARY_PATH="$MONGOCRYPT_INSTALL_PREFIX/lib64"
cd bindings/python/

/opt/mongodbtoolchain/v4/bin/python3 -m venv venv
. ./venv/bin/activate
python -m pip install --prefer-binary -r requirements-test.txt
python -m pip install -e .

export OUTPUT_FILE=results.json

python test/performance/perf_test.py -v
Loading