Skip to content

Commit

Permalink
chore(NODE-5777): track aws credential as a devDep in addition to pee…
Browse files Browse the repository at this point in the history
…rDep (#3943)
  • Loading branch information
nbbeeken committed Dec 7, 2023
1 parent 5047328 commit d9f5d9f
Show file tree
Hide file tree
Showing 9 changed files with 2,010 additions and 1,998 deletions.
27 changes: 24 additions & 3 deletions .evergreen/config.in.yml
Original file line number Diff line number Diff line change
Expand Up @@ -474,7 +474,7 @@ functions:
args:
- .evergreen/install-dependencies.sh

"install aws-credential-providers":
"remove aws-credential-providers":
- command: shell.exec
type: setup
params:
Expand All @@ -483,7 +483,7 @@ functions:
script: |
${PREPARE_SHELL}
source "${PROJECT_DIRECTORY}/.evergreen/init-node-and-npm-env.sh"
npm install @aws-sdk/credential-providers
rm -rf ./node_modules/@aws-sdk/credential-providers
"run atlas tests":
- command: shell.exec
Expand Down Expand Up @@ -674,6 +674,8 @@ functions:
- command: shell.exec
type: test
params:
env:
MONGODB_AWS_SDK: ${MONGODB_AWS_SDK}
working_dir: "src"
script: |
${PREPARE_SHELL}
Expand Down Expand Up @@ -711,6 +713,8 @@ functions:
- command: shell.exec
type: test
params:
env:
MONGODB_AWS_SDK: ${MONGODB_AWS_SDK}
working_dir: "src"
script: |
${PREPARE_SHELL}
Expand All @@ -734,6 +738,8 @@ functions:
- command: shell.exec
type: test
params:
env:
MONGODB_AWS_SDK: ${MONGODB_AWS_SDK}
working_dir: "src"
script: |
${PREPARE_SHELL}
Expand Down Expand Up @@ -761,6 +767,8 @@ functions:
- command: shell.exec
type: test
params:
env:
MONGODB_AWS_SDK: ${MONGODB_AWS_SDK}
working_dir: "src"
script: |
${PREPARE_SHELL}
Expand Down Expand Up @@ -788,6 +796,7 @@ functions:
- command: shell.exec
type: test
params:
add_expansions_to_env: true
working_dir: "src"
script: |
${PREPARE_SHELL}
Expand Down Expand Up @@ -815,6 +824,8 @@ functions:
- command: shell.exec
type: test
params:
env:
MONGODB_AWS_SDK: ${MONGODB_AWS_SDK}
working_dir: "src"
script: |
${PREPARE_SHELL}
Expand All @@ -841,6 +852,8 @@ functions:
- command: shell.exec
type: test
params:
env:
MONGODB_AWS_SDK: ${MONGODB_AWS_SDK}
working_dir: "src"
script: |
${PREPARE_SHELL}
Expand All @@ -851,6 +864,8 @@ functions:
type: test
params:
working_dir: src
env:
MONGODB_AWS_SDK: ${MONGODB_AWS_SDK}
shell: bash
script: |
${PREPARE_SHELL}
Expand All @@ -859,10 +874,16 @@ functions:
# pack up project directory to ssh it to the container
mkdir -p $ECS_SRC_DIR/.evergreen
set -ex
echo "export MONGODB_AWS_SDK=$MONGODB_AWS_SDK" >> $PROJECT_DIRECTORY/.evergreen/run-mongodb-aws-ecs-test.sh
echo "if [ $MONGODB_AWS_SDK = 'false' ]; then rm -rf ./node_modules/@aws-sdk/credential-providers; fi" >> $PROJECT_DIRECTORY/.evergreen/run-mongodb-aws-ecs-test.sh
echo "npm run check:aws" >> $PROJECT_DIRECTORY/.evergreen/run-mongodb-aws-ecs-test.sh
cp $PROJECT_DIRECTORY/.evergreen/run-mongodb-aws-ecs-test.sh $ECS_SRC_DIR/.evergreen
tar -czf $ECS_SRC_DIR/src.tgz -C $PROJECT_DIRECTORY .
set -ex
cd ${DRIVERS_TOOLS}/.evergreen/auth_aws
. ./activate-authawsvenv.sh
export MONGODB_BINARIES="${MONGODB_BINARIES}";
Expand Down

0 comments on commit d9f5d9f

Please sign in to comment.