Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 1 addition & 1 deletion .evergreen/build-static-test-tarball.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ cp ${TEST_FILES}/* test_files

export RUSTFLAGS="-C target-feature=+crt-static"
cargo test ${BUILD_FEATURES} --target x86_64-unknown-linux-gnu get_exe_name
TEST_BINARY=$(cat exe_name.txt)
TEST_BINARY=$(cat driver/exe_name.txt)
TEST_TARBALL="/tmp/mongo-rust-driver.tar.gz"
tar czvf ${TEST_TARBALL} ${TEST_BINARY} ./.evergreen test_files

Expand Down
4 changes: 2 additions & 2 deletions .evergreen/check-rustdoc.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@ source ./.evergreen/env.sh
# build process.

# build with all available features to ensure all optional dependencies are brought in too.
cargo +nightly build --all-features
cargo +nightly build --package mongodb --all-features
cargo clean

chmod -R 555 ${CARGO_HOME}/registry/src

# this invocation mirrors the way docs.rs builds our documentation (see the [package.metadata.docs.rs] section
# in Cargo.toml).
cargo +nightly rustdoc --all-features -- -D warnings --cfg docsrs
cargo +nightly rustdoc --package mongodb --all-features -- -D warnings --cfg docsrs
3 changes: 1 addition & 2 deletions .evergreen/check-rustfmt.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,4 @@
set -o errexit

source ./.evergreen/env.sh
rustfmt +nightly --unstable-features --check src/**/*.rs
rustfmt +nightly --unstable-features --check src/*.rs
cargo +nightly fmt --check -- --unstable-features
6 changes: 3 additions & 3 deletions .evergreen/compile-only.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ if [ "$RUST_VERSION" != "" ]; then

# The MSRV resolver does not properly select an MSRV-compliant version
# for this transient dependency.
cargo add aws-sdk-sts@1.73
cargo add --package mongodb aws-sdk-sts@1.73

CARGO_RESOLVER_INCOMPATIBLE_RUST_VERSIONS=fallback cargo +nightly -Zmsrv-policy generate-lockfile
fi
Expand All @@ -21,7 +21,7 @@ fi
cargo $TOOLCHAIN build

# Test with all features.
cargo $TOOLCHAIN build --all-features
cargo $TOOLCHAIN build --package mongodb --all-features

# Test with no default features.
cargo $TOOLCHAIN build --no-default-features --features compat-3-3-0,bson-3,rustls-tls
cargo $TOOLCHAIN build --package mongodb --no-default-features --features compat-3-3-0,bson-3,rustls-tls
12 changes: 4 additions & 8 deletions .evergreen/release-danger-do-not-run-manually.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,9 @@ if [[ "${DRY_RUN}" == "yes" ]]; then
fi

if [[ "${PACKAGE_ONLY}" == "yes" ]]; then
pushd macros
cargo package --no-verify --allow-dirty
popd
cargo package --no-verify --allow-dirty
cargo package --package mongodb-internal-macros --no-verify --allow-dirty
cargo package --package mongodb --no-verify --allow-dirty
else
pushd macros
cargo publish ${EXTRA}
popd
cargo publish ${EXTRA}
cargo publish --package mongodb-internal-macros ${EXTRA}
cargo publish --package mongodb ${EXTRA}
fi
2 changes: 1 addition & 1 deletion .evergreen/release-sign.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,4 @@ docker run \
-v $(pwd):$(pwd) \
-w $(pwd) \
901841024863.dkr.ecr.us-east-1.amazonaws.com/release-infrastructure/garasign-gpg \
/bin/bash -c "gpgloader && gpg --yes -v --armor -o mongodb-internal-macros-${CRATE_VERSION}.sig --detach-sign macros/target/package/mongodb-internal-macros-${CRATE_VERSION}.crate"
/bin/bash -c "gpgloader && gpg --yes -v --armor -o mongodb-internal-macros-${CRATE_VERSION}.sig --detach-sign target/package/mongodb-internal-macros-${CRATE_VERSION}.crate"
6 changes: 6 additions & 0 deletions .evergreen/run-gssapi-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ set +o errexit
# is similar to but distinct from (KRB5) GSSAPI. Therefore, we only
# run the following steps if we are not on Windows.
if [[ "cygwin" != "$OSTYPE" ]]; then
pushd driver
# Create a krb5 config file with relevant
touch krb5.conf
echo "[realms]
Expand All @@ -45,13 +46,15 @@ if [[ "cygwin" != "$OSTYPE" ]]; then
echo "Authenticating $PRINCIPAL"
echo "$SASL_PASS" | kinit -p $PRINCIPAL
klist
popd
fi

# Run end-to-end auth tests for "$PRINCIPAL" user
TEST_OPTIONS+=("--skip with_service_realm_and_host_options")
cargo_test test::auth::gssapi_skip_local

if [[ "cygwin" != "$OSTYPE" ]]; then
pushd driver
# Unauthenticate
echo "Unauthenticating $PRINCIPAL"
kdestroy
Expand All @@ -60,15 +63,18 @@ if [[ "cygwin" != "$OSTYPE" ]]; then
echo "Authenticating $PRINCIPAL_CROSS"
echo "$SASL_PASS_CROSS" | kinit -p $PRINCIPAL_CROSS
klist
popd
fi

TEST_OPTIONS=()
cargo_test test::auth::gssapi_skip_local::with_service_realm_and_host_options

if [[ "cygwin" != "$OSTYPE" ]]; then
pushd driver
# Unauthenticate
echo "Unauthenticating $PRINCIPAL_CROSS"
kdestroy
popd
fi

# Run remaining tests
Expand Down
2 changes: 1 addition & 1 deletion .semgrepignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
benchmarks/
src/test/
driver/src/test/
etc/
Loading