Skip to content

Commit 1d046f7

Browse files
committed
Merge branch 'main' into test/main
2 parents aa60622 + 64b3ee9 commit 1d046f7

File tree

339 files changed

+503816
-1710
lines changed

Some content is hidden

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

339 files changed

+503816
-1710
lines changed

.evergreen/config.in.yml

Lines changed: 78 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -619,6 +619,9 @@ functions:
619619
working_dir: "src"
620620
script: |
621621
${PREPARE_SHELL}
622+
# Write an empty prepare_mongodb_aws so no auth environment variables
623+
# are set.
624+
echo "" > "${PROJECT_DIRECTORY}/prepare_mongodb_aws.sh"
622625
cd ${DRIVERS_TOOLS}/.evergreen/auth_aws
623626
. ./activate_venv.sh
624627
${MONGODB_BINARIES}/mongo aws_e2e_ec2.js
@@ -817,6 +820,40 @@ functions:
817820
args:
818821
- "${PROJECT_DIRECTORY}/.evergreen/run-snappy-version-test.sh"
819822

823+
"run lambda handler example tests":
824+
- command: subprocess.exec
825+
params:
826+
working_dir: "src"
827+
timeout_secs: 60
828+
env:
829+
MONGODB_URI: ${MONGODB_URI}
830+
PROJECT_DIRECTORY: ${PROJECT_DIRECTORY}
831+
binary: bash
832+
args:
833+
- "${PROJECT_DIRECTORY}/.evergreen/run-lambda-tests.sh"
834+
835+
"run lambda handler example tests with aws auth":
836+
- command: shell.exec
837+
type: test
838+
params:
839+
working_dir: "src"
840+
silent: true
841+
script: |
842+
cd ${DRIVERS_TOOLS}/.evergreen/auth_aws
843+
${MONGODB_BINARIES}/mongo --verbose aws_e2e_regular_aws.js
844+
cd -
845+
cat <<EOF > "${PROJECT_DIRECTORY}/prepare_mongodb_aws.sh"
846+
export AWS_ACCESS_KEY_ID=${iam_auth_ecs_account}
847+
export AWS_SECRET_ACCESS_KEY=${iam_auth_ecs_secret_access_key}
848+
EOF
849+
- command: shell.exec
850+
type: test
851+
params:
852+
working_dir: "src"
853+
script: |
854+
${PREPARE_SHELL}
855+
${PROJECT_DIRECTORY}/.evergreen/run-lambda-aws-tests.sh
856+
820857
"run bson-ext test":
821858
- command: subprocess.exec
822859
type: test
@@ -879,11 +916,42 @@ functions:
879916
880917
aws s3 cp output/lcov-report s3://mciuploads/mongo-node-driver/${revision}/${version_id}//lcov-report/
881918
919+
"run spec driver benchmarks":
920+
- command: subprocess.exec
921+
type: test
922+
params:
923+
working_dir: "src"
924+
env:
925+
PROJECT_DIRECTORY: ${PROJECT_DIRECTORY}
926+
MONGODB_URI: ${MONGODB_URI}
927+
binary: bash
928+
args:
929+
- ${PROJECT_DIRECTORY}/.evergreen/run-benchmarks.sh
930+
882931
tasks:
883-
- name: "test-serverless"
884-
tags: ["serverless"]
885-
commands:
886-
- func: "run serverless tests"
932+
- name: "test-serverless"
933+
tags: ["serverless"]
934+
commands:
935+
- func: "run serverless tests"
936+
937+
- name: run-spec-benchmark-tests
938+
tags:
939+
- run-spec-benchmark-tests
940+
- performance
941+
exec_timeout_secs: 3600
942+
commands:
943+
- func: install dependencies
944+
vars:
945+
NODE_LTS_NAME: gallium
946+
- func: bootstrap mongo-orchestration
947+
vars:
948+
VERSION: rapid
949+
TOPOLOGY: server
950+
AUTH: noauth
951+
- func: run spec driver benchmarks
952+
- command: perf.send
953+
params:
954+
file: src/results.json
887955

888956
task_groups:
889957
- name: serverless_task_group
@@ -935,3 +1003,9 @@ post:
9351003

9361004
ignore:
9371005
- '*.md'
1006+
buildvariants:
1007+
- name: performance-tests
1008+
display_name: Performance Test
1009+
run_on: ubuntu1804-large
1010+
tasks:
1011+
- run-spec-benchmark-tests

0 commit comments

Comments
 (0)