Skip to content

Commit 045a48e

Browse files
committed
revert to 542505e
1 parent 3cbe31d commit 045a48e

File tree

499 files changed

+10863
-190524
lines changed

Some content is hidden

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

499 files changed

+10863
-190524
lines changed

.evergreen/activate-kms-venv.sh

Lines changed: 0 additions & 11 deletions
This file was deleted.

.evergreen/ci_matrix_constants.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ const DEFAULT_OS = 'rhel80-large';
1717
const WINDOWS_OS = 'windows-vsCurrent-large';
1818
const MACOS_OS = 'macos-1100';
1919
const UBUNTU_OS = 'ubuntu1804-large';
20-
const UBUNTU_20_OS = 'ubuntu2004-small'
2120
const DEBIAN_OS = 'debian11-small';
2221

2322
module.exports = {
@@ -33,6 +32,5 @@ module.exports = {
3332
WINDOWS_OS,
3433
MACOS_OS,
3534
UBUNTU_OS,
36-
UBUNTU_20_OS,
3735
DEBIAN_OS
3836
};

.evergreen/config.in.yml

Lines changed: 32 additions & 114 deletions
Original file line numberDiff line numberDiff line change
@@ -94,28 +94,11 @@ functions:
9494
DRIVERS_TOOLS="${DRIVERS_TOOLS}" bash ${DRIVERS_TOOLS}/.evergreen/atlas_data_lake/run-mongohouse-local.sh
9595
9696
"bootstrap kms servers":
97-
- command: subprocess.exec
98-
params:
99-
binary: bash
100-
working_dir: src
101-
args:
102-
- .evergreen/activate-kms-venv.sh
103-
env:
104-
DRIVERS_TOOLS: ${DRIVERS_TOOLS}
10597
- command: subprocess.exec
10698
params:
10799
background: true
108-
binary: bash
109100
working_dir: src
110-
args:
111-
- .evergreen/run-kmip-server.sh
112-
env:
113-
DRIVERS_TOOLS: ${DRIVERS_TOOLS}
114-
- command: subprocess.exec
115-
params:
116-
background: true
117101
binary: bash
118-
working_dir: src
119102
args:
120103
- .evergreen/run-kms-servers.sh
121104
env:
@@ -182,6 +165,31 @@ functions:
182165
PROJECT_DIRECTORY="${PROJECT_DIRECTORY}" \
183166
bash ${PROJECT_DIRECTORY}/.evergreen/run-oidc-tests.sh
184167
168+
"run deployed aws lambda tests":
169+
- command: ec2.assume_role
170+
params:
171+
role_arn: ${LAMBDA_AWS_ROLE_ARN}
172+
duration_seconds: 3600
173+
- command: subprocess.exec
174+
params:
175+
working_dir: src
176+
binary: bash
177+
args:
178+
- .evergreen/run-deployed-lambda-aws-tests.sh
179+
env:
180+
TEST_LAMBDA_DIRECTORY: ${PROJECT_DIRECTORY}/test/lambda
181+
DRIVERS_TOOLS: ${DRIVERS_TOOLS}
182+
DRIVERS_ATLAS_PUBLIC_API_KEY: ${DRIVERS_ATLAS_PUBLIC_API_KEY}
183+
DRIVERS_ATLAS_PRIVATE_API_KEY: ${DRIVERS_ATLAS_PRIVATE_API_KEY}
184+
DRIVERS_ATLAS_LAMBDA_USER: ${DRIVERS_ATLAS_LAMBDA_USER}
185+
DRIVERS_ATLAS_LAMBDA_PASSWORD: ${DRIVERS_ATLAS_LAMBDA_PASSWORD}
186+
DRIVERS_ATLAS_GROUP_ID: ${DRIVERS_ATLAS_GROUP_ID}
187+
LAMBDA_STACK_NAME: dbx-node-lambda
188+
AWS_REGION: us-east-1
189+
AWS_ACCESS_KEY_ID: ${AWS_ACCESS_KEY_ID}
190+
AWS_SECRET_ACCESS_KEY: ${AWS_SECRET_ACCESS_KEY}
191+
AWS_SESSION_TOKEN: ${AWS_SESSION_TOKEN}
192+
185193
"run tests":
186194
- command: shell.exec
187195
type: test
@@ -1017,19 +1025,15 @@ functions:
10171025
- command: shell.exec
10181026
type: test
10191027
params:
1020-
working_dir: src
1028+
working_dir: "src"
10211029
silent: true
1022-
shell: bash
10231030
script: |
1024-
set -ex
10251031
cd ${DRIVERS_TOOLS}/.evergreen/auth_aws
1026-
. ./activate-authawsvenv.sh
1027-
python aws_tester.py regular
1032+
${MONGODB_BINARIES}/mongo --verbose aws_e2e_regular_aws.js
10281033
cd -
10291034
cat <<EOF > "${PROJECT_DIRECTORY}/prepare_mongodb_aws.sh"
10301035
export AWS_ACCESS_KEY_ID=${iam_auth_ecs_account}
10311036
export AWS_SECRET_ACCESS_KEY=${iam_auth_ecs_secret_access_key}
1032-
export MONGODB_URI="mongodb://localhost:27017/aws?authMechanism=MONGODB-AWS"
10331037
EOF
10341038
- command: shell.exec
10351039
type: test
@@ -1130,18 +1134,18 @@ tasks:
11301134
- func: bootstrap kms servers
11311135
- func: "run serverless tests"
11321136

1133-
- name: run-spec-benchmark-tests-node-18-server-6.0
1137+
- name: run-spec-benchmark-tests
11341138
tags:
11351139
- run-spec-benchmark-tests
11361140
- performance
11371141
exec_timeout_secs: 3600
11381142
commands:
11391143
- func: install dependencies
11401144
vars:
1141-
NODE_LTS_VERSION: v18.16.0
1145+
NODE_LTS_VERSION: 18
11421146
- func: bootstrap mongo-orchestration
11431147
vars:
1144-
VERSION: v6.0-perf
1148+
VERSION: rapid
11451149
TOPOLOGY: server
11461150
AUTH: noauth
11471151
- func: run spec driver benchmarks
@@ -1240,38 +1244,6 @@ tasks:
12401244
args:
12411245
- src/.evergreen/run-azure-kms-tests.sh
12421246

1243-
- name: "oidc-auth-test-azure-latest"
1244-
commands:
1245-
- func: "install dependencies"
1246-
- command: subprocess.exec
1247-
params:
1248-
working_dir: src
1249-
binary: bash
1250-
env:
1251-
DRIVERS_TOOLS: ${DRIVERS_TOOLS}
1252-
PROJECT_DIRECTORY: ${PROJECT_DIRECTORY}
1253-
AZUREOIDC_CLIENTID: ${testazureoidc_clientid}
1254-
PROVIDER_NAME: azure
1255-
args:
1256-
- .evergreen/run-oidc-tests-azure.sh
1257-
1258-
- name: "test-aws-lambda-deployed"
1259-
commands:
1260-
- func: "install dependencies"
1261-
- command: ec2.assume_role
1262-
params:
1263-
role_arn: ${LAMBDA_AWS_ROLE_ARN}
1264-
duration_seconds: 3600
1265-
- command: subprocess.exec
1266-
params:
1267-
working_dir: src
1268-
binary: bash
1269-
add_expansions_to_env: true
1270-
args:
1271-
- ${DRIVERS_TOOLS}/.evergreen/aws_lambda/run-deployed-lambda-aws-tests.sh
1272-
env:
1273-
TEST_LAMBDA_DIRECTORY: ${PROJECT_DIRECTORY}/test/lambda
1274-
AWS_REGION: us-east-1
12751247

12761248
task_groups:
12771249
- name: serverless_task_group
@@ -1376,60 +1348,6 @@ task_groups:
13761348
tasks:
13771349
- test-azurekms-task
13781350

1379-
- name: testazureoidc_task_group
1380-
setup_group:
1381-
- func: fetch source
1382-
- command: shell.exec
1383-
params:
1384-
shell: bash
1385-
script: |-
1386-
set -o errexit
1387-
${PREPARE_SHELL}
1388-
export AZUREOIDC_CLIENTID="${testazureoidc_clientid}"
1389-
export AZUREOIDC_TENANTID="${testazureoic_tenantid}"
1390-
export AZUREOIDC_SECRET="${testazureoidc_secret}"
1391-
export AZUREOIDC_KEYVAULT=${testazureoidc_keyvault}
1392-
export AZUREOIDC_DRIVERS_TOOLS="$DRIVERS_TOOLS"
1393-
export AZUREOIDC_VMNAME_PREFIX="NODE_DRIVER"
1394-
$DRIVERS_TOOLS/.evergreen/auth_oidc/azure/create-and-setup-vm.sh
1395-
teardown_group:
1396-
- command: shell.exec
1397-
params:
1398-
shell: bash
1399-
script: |-
1400-
${PREPARE_SHELL}
1401-
$DRIVERS_TOOLS/.evergreen/auth_oidc/azure/delete-vm.sh
1402-
setup_group_can_fail_task: true
1403-
setup_group_timeout_secs: 1800
1404-
tasks:
1405-
- oidc-auth-test-azure-latest
1406-
1407-
- name: test_atlas_task_group
1408-
setup_group:
1409-
- func: fetch source
1410-
- command: subprocess.exec
1411-
params:
1412-
working_dir: src
1413-
binary: bash
1414-
add_expansions_to_env: true
1415-
args:
1416-
- ${DRIVERS_TOOLS}/.evergreen/atlas/setup-atlas-cluster.sh
1417-
- command: expansions.update
1418-
params:
1419-
file: src/atlas-expansion.yml
1420-
teardown_group:
1421-
- command: subprocess.exec
1422-
params:
1423-
working_dir: src
1424-
binary: bash
1425-
add_expansions_to_env: true
1426-
args:
1427-
- ${DRIVERS_TOOLS}/.evergreen/atlas/teardown-atlas-cluster.sh
1428-
setup_group_can_fail_task: true
1429-
setup_group_timeout_secs: 1800
1430-
tasks:
1431-
- test-aws-lambda-deployed
1432-
14331351
pre:
14341352
- func: "fetch source"
14351353
- func: "windows fix"
@@ -1447,6 +1365,6 @@ ignore:
14471365
buildvariants:
14481366
- name: performance-tests
14491367
display_name: Performance Test
1450-
run_on: rhel90-dbx-perf-large
1368+
run_on: rhel80-large
14511369
tasks:
1452-
- run-spec-benchmark-tests-node-18-server-6.0
1370+
- run-spec-benchmark-tests

0 commit comments

Comments
 (0)