Skip to content
Merged
Show file tree
Hide file tree
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 0 additions & 7 deletions .evergreen/docker/Dockerfile.musl
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,3 @@ git --version
c++ --version
g++ --version
EOF

# clone drivers evergreen tools into the same location that it lives on the host machine
# this ensures any paths configured in variables by drivers-evergreen-tools work
# in the container too.
ARG DRIVERS_TOOLS=drivers-evergreen-tools
WORKDIR ${DRIVERS_TOOLS}
RUN git clone https://github.com/mongodb-labs/drivers-evergreen-tools.git .
2 changes: 1 addition & 1 deletion .evergreen/prepare-mongodb-aws-ecs-auth.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ cat $ECS_SRC_DIR/.evergreen/run-mongodb-aws-ecs-test.sh

# tar the file and drivers tools and do the same
cd ..
tar -czf src.tgz src drivers-tools
tar -czf src.tgz src
mv src.tgz $ECS_SRC_DIR/src.tgz

export MONGODB_BINARIES="${MONGODB_BINARIES}"
Expand Down
15 changes: 7 additions & 8 deletions .evergreen/prepare-shell.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,9 @@

# This script prepares a shell to run the remaining scripts in this folder
# It MUST be kept idempotent! It will overwrite the orchestration config and expansion.yml file upon every run
# and it will only clone drivers-tools if they do not exist one directory above our driver src

PROJECT_DIRECTORY="$(pwd)"
DRIVERS_TOOLS=$(cd .. && echo "$(pwd)/drivers-tools")
DRIVERS_TOOLS="$(pwd)/drivers-evergreen-tools"
MONGO_ORCHESTRATION_HOME="$DRIVERS_TOOLS/.evergreen/orchestration"
MONGODB_BINARIES="$DRIVERS_TOOLS/mongodb/bin"
UPLOAD_BUCKET="${project}"
Expand All @@ -30,12 +29,12 @@ export MONGODB_BINARIES
export TMPDIR="$MONGO_ORCHESTRATION_HOME/db"
export PATH="$MONGODB_BINARIES:$PATH"

if [ ! -d "$DRIVERS_TOOLS" ]; then
# Only clone driver tools if it does not exist
git clone --depth=1 "https://github.com/mongodb-labs/drivers-evergreen-tools.git" "${DRIVERS_TOOLS}"
fi

echo "installed DRIVERS_TOOLS from commit $(git -C "${DRIVERS_TOOLS}" rev-parse HEAD)"
# Note the evergreen option on git.get_project recurse_submodules does not work, so do it here.
# We ignore errors in case we are running in a container where git doesn't trust the tmp directory.
set +e
git submodule init
git submodule update
set -e

cat <<EOT > "$MONGO_ORCHESTRATION_HOME/orchestration.config"
{
Expand Down
5 changes: 5 additions & 0 deletions .evergreen/run-alpine-fle-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,10 @@ set -o xtrace
export npm_config_cache=$(pwd)/.cache
npm install

# Fix to point at the drivers tools pems installed in src.
export CSFLE_TLS_CA_FILE=$(pwd)/drivers-evergreen-tools/.evergreen/x509gen/ca.pem
export CSFLE_TLS_CERT_FILE=$(pwd)/drivers-evergreen-tools/.evergreen/x509gen/server.pem
export CSFLE_TLS_CLIENT_CERT_FILE=$(pwd)/drivers-evergreen-tools/.evergreen/x509gen/client.pem

ALPINE=true \
npm run check:csfle
2 changes: 1 addition & 1 deletion .evergreen/run-deployed-azure-kms-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export AZUREKMS_PUBLICKEYPATH=/tmp/testazurekms_publickey
export AZUREKMS_PRIVATEKEYPATH=/tmp/testazurekms_privatekey

echo "compressing node driver source and tools ... begin"
tar -czf node-driver-source.tgz src drivers-tools
tar -czf node-driver-source.tgz src
echo "compressing node driver source and tools ... end"

export AZUREKMS_SRC=node-driver-source.tgz
Expand Down
2 changes: 1 addition & 1 deletion .evergreen/run-mongodb-aws-ecs-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ set -o errexit # Exit the script with error if any of the commands fail
export MONGODB_URI="$1"

tar -xzf src/src.tgz
# produces src/ and drivers-tools/
# produces src/

cd src

Expand Down
2 changes: 1 addition & 1 deletion .evergreen/run-oidc-tests-azure.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ set -o errexit # Exit the script with error if any of the commands fail

export AZUREOIDC_DRIVERS_TAR_FILE=/tmp/node-mongodb-native.tgz
cd ..
tar -czf $AZUREOIDC_DRIVERS_TAR_FILE src drivers-tools
tar -czf $AZUREOIDC_DRIVERS_TAR_FILE src
cd -
export AZUREOIDC_TEST_CMD="source ./env.sh && cd src && ENVIRONMENT=azure ./.evergreen/${SCRIPT}"
export PROJECT_DIRECTORY=$PROJECT_DIRECTORY
Expand Down
2 changes: 1 addition & 1 deletion .evergreen/run-oidc-tests-gcp.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ set -o errexit # Exit the script with error if any of the commands fail

export GCPOIDC_DRIVERS_TAR_FILE=/tmp/node-mongodb-native.tgz
cd ..
tar -czf $GCPOIDC_DRIVERS_TAR_FILE src drivers-tools
tar -czf $GCPOIDC_DRIVERS_TAR_FILE src
cd -
export GCPOIDC_TEST_CMD="source ./secrets-export.sh drivers/gcpoidc && cd src && ENVIRONMENT=gcp ./.evergreen/${SCRIPT}"
export PROJECT_DIRECTORY=$PROJECT_DIRECTORY
Expand Down
2 changes: 1 addition & 1 deletion .evergreen/run-oidc-tests-k8s.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ set -o errexit # Exit the script with error if any of the commands fail

export K8S_DRIVERS_TAR_FILE=/tmp/node-mongodb-native.tgz
cd ..
tar -czf $K8S_DRIVERS_TAR_FILE src drivers-tools
tar -czf $K8S_DRIVERS_TAR_FILE src
cd -
bash $DRIVERS_TOOLS/.evergreen/auth_oidc/k8s/setup-pod.sh
bash $DRIVERS_TOOLS/.evergreen/auth_oidc/k8s/run-self-test.sh
Expand Down
4 changes: 4 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@

version: 2
updates:
- package-ecosystem: "gitsubmodule" # See documentation for possible values
directory: "/"
schedule:
interval: "daily"
- package-ecosystem: "github-actions" # See documentation for possible values
directory: "/" # Location of package manifests
schedule:
Expand Down
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "drivers-evergreen-tools"]
path = drivers-evergreen-tools
url = https://github.com/mongodb-labs/drivers-evergreen-tools.git
1 change: 1 addition & 0 deletions drivers-evergreen-tools