Skip to content

Commit 2ccc359

Browse files
Merge pull request #11 from comandeo-mongo/3392-bump-lmc-version
RUBY-3392 Bump version to 1.11.0
2 parents 335bbad + 7f5f023 commit 2ccc359

File tree

415 files changed

+38786
-41053
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

415 files changed

+38786
-41053
lines changed

README.maint.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,9 @@ derived from `libmongocrypt` version as described below.
1313
<https://github.com/mongodb/libmongocrypt/releases/>, and unpack it to
1414
`ext/libmongocrypt/libmongocrypt`.
1515
4. Update the SBOM lite file by running `etc/update-sbom.sh`
16-
5. Commit the changes including the new shared library.
17-
6. Create a PR for the changes. Once approved and merged, run the "Release" action on GitHub to create and publish the new gem.
16+
5. Test the changes by running `gem build *.gemspec && gem install libmongocrypt-helper-VERSION.gem`.
17+
6. Commit the changes.
18+
7. Create a PR for the changes. Once approved and merged, run the "Release" action on GitHub to create and publish the new gem.
1819

1920
## Helper Version Scheme
2021

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
#!/usr/bin/env bash
2+
3+
. "$(dirname "${BASH_SOURCE[0]}")/init.sh"
4+
5+
if test "$OS_NAME" != "linux"; then
6+
log "Warning: Script is expected only to run on distro: rhel90-dbx-perf-large"
7+
log "More changes may be needed to run on other distros.";
8+
fi
9+
10+
MONGOCRYPT_INSTALL_PREFIX=$LIBMONGOCRYPT_DIR/.install
11+
12+
# Install libmongocrypt.
13+
build_dir="$LIBMONGOCRYPT_DIR/cmake-build"
14+
run_cmake \
15+
-DCMAKE_INSTALL_PREFIX="$MONGOCRYPT_INSTALL_PREFIX" \
16+
-DCMAKE_BUILD_TYPE="RelWithDebInfo" \
17+
-B"$build_dir"
18+
run_cmake --build "$build_dir" --target install
19+
20+
# Run Java benchmarks. Do not use JDK 8 to avoid hang in gradle observed in MONGOCRYPT-590.
21+
export JAVA_HOME=/opt/java/jdk17
22+
# Include path to installed libmongocrypt.so
23+
export LD_LIBRARY_PATH="$MONGOCRYPT_INSTALL_PREFIX/lib64"
24+
cd bindings/java/mongocrypt
25+
./gradlew --version
26+
./gradlew clean benchmarks:run --info
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
#!/usr/bin/env bash
2+
3+
. "$(dirname "${BASH_SOURCE[0]}")/init.sh"
4+
5+
if test "$OS_NAME" != "linux"; then
6+
log "Warning: Script is expected only to run on distro: rhel90-dbx-perf-large"
7+
log "More changes may be needed to run on other distros.";
8+
fi
9+
10+
MONGOCRYPT_INSTALL_PREFIX=$LIBMONGOCRYPT_DIR/.install
11+
12+
# Install libmongocrypt.
13+
build_dir="$LIBMONGOCRYPT_DIR/cmake-build"
14+
run_cmake \
15+
-DCMAKE_INSTALL_PREFIX="$MONGOCRYPT_INSTALL_PREFIX" \
16+
-DCMAKE_BUILD_TYPE="RelWithDebInfo" \
17+
-B"$build_dir"
18+
run_cmake --build "$build_dir" --target install
19+
20+
# Run Python benchmarks.
21+
# Include path to installed libmongocrypt.so
22+
export LD_LIBRARY_PATH="$MONGOCRYPT_INSTALL_PREFIX/lib64"
23+
cd bindings/python/
24+
25+
/opt/mongodbtoolchain/v4/bin/python3 -m venv venv
26+
. ./venv/bin/activate
27+
python -m pip install --prefer-binary -r requirements-test.txt
28+
python -m pip install -e .
29+
30+
export OUTPUT_FILE=results.json
31+
32+
python test/performance/perf_test.py -v

0 commit comments

Comments
 (0)