Skip to content

Commit

Permalink
use alpha.3
Browse files Browse the repository at this point in the history
  • Loading branch information
baileympearson committed Dec 6, 2024
1 parent 4842cd8 commit 2eb9288
Show file tree
Hide file tree
Showing 7 changed files with 178 additions and 79 deletions.
33 changes: 19 additions & 14 deletions .evergreen/config.in.yml
Original file line number Diff line number Diff line change
Expand Up @@ -316,11 +316,12 @@ functions:
SKIP_DEPS=${SKIP_DEPS|1} \
bash ${PROJECT_DIRECTORY}/.evergreen/run-tests.sh
"install package":
install package:
- command: shell.exec
params:
working_dir: src
script: |
source ${DRIVERS_TOOLS}/.evergreen/init-node-and-npm-env.sh
npm install --force ${PACKAGE}
"run lint checks":
Expand Down Expand Up @@ -772,8 +773,8 @@ functions:
${PREPARE_SHELL}
${PROJECT_DIRECTORY}/.evergreen/run-mongodb-aws-test.sh
"run aws auth test with aws credentials and session token as environment variables":
- command: shell.exec
? "run aws auth test with aws credentials and session token as environment variables"
: - command: shell.exec
type: test
params:
working_dir: "src"
Expand Down Expand Up @@ -829,8 +830,8 @@ functions:
${PREPARE_SHELL}
${PROJECT_DIRECTORY}/.evergreen/run-mongodb-aws-test.sh
"run aws auth test AssumeRoleWithWebIdentity with AWS_ROLE_SESSION_NAME unset":
- command: shell.exec
? "run aws auth test AssumeRoleWithWebIdentity with AWS_ROLE_SESSION_NAME unset"
: - command: shell.exec
type: test
params:
working_dir: "src"
Expand Down Expand Up @@ -1143,12 +1144,12 @@ functions:
- ${PROJECT_DIRECTORY}/.evergreen/install-mongodb-client-encryption.sh

tasks:
- name: 'test-atlas-data-lake'
- name: "test-atlas-data-lake"
tags: ["datalake", "mongohouse"]
commands:
- func: 'install dependencies'
- func: 'bootstrap mongohoused'
- func: 'run data lake tests'
- func: "install dependencies"
- func: "bootstrap mongohoused"
- func: "run data lake tests"

- name: "test-serverless"
tags: ["serverless"]
Expand Down Expand Up @@ -1333,7 +1334,8 @@ tasks:
ENVIRONMENT: k8s
K8S_VARIANT: eks
SCRIPT: run-oidc-prose-tests.sh
include_expansions_in_env: ["AWS_ACCESS_KEY_ID", "AWS_SECRET_ACCESS_KEY", "AWS_SESSION_TOKEN"]
include_expansions_in_env:
["AWS_ACCESS_KEY_ID", "AWS_SECRET_ACCESS_KEY", "AWS_SESSION_TOKEN"]
args:
- .evergreen/run-oidc-tests-k8s.sh

Expand All @@ -1351,7 +1353,8 @@ tasks:
ENVIRONMENT: k8s
K8S_VARIANT: gke
SCRIPT: run-oidc-prose-tests.sh
include_expansions_in_env: ["AWS_ACCESS_KEY_ID", "AWS_SECRET_ACCESS_KEY", "AWS_SESSION_TOKEN"]
include_expansions_in_env:
["AWS_ACCESS_KEY_ID", "AWS_SECRET_ACCESS_KEY", "AWS_SESSION_TOKEN"]
args:
- .evergreen/run-oidc-tests-k8s.sh

Expand All @@ -1369,7 +1372,8 @@ tasks:
ENVIRONMENT: k8s
K8S_VARIANT: aks
SCRIPT: run-oidc-prose-tests.sh
include_expansions_in_env: ["AWS_ACCESS_KEY_ID", "AWS_SECRET_ACCESS_KEY", "AWS_SESSION_TOKEN"]
include_expansions_in_env:
["AWS_ACCESS_KEY_ID", "AWS_SECRET_ACCESS_KEY", "AWS_SESSION_TOKEN"]
args:
- .evergreen/run-oidc-tests-k8s.sh

Expand Down Expand Up @@ -1658,11 +1662,12 @@ task_groups:
- command: subprocess.exec
params:
binary: bash
include_expansions_in_env: ["AWS_ACCESS_KEY_ID", "AWS_SECRET_ACCESS_KEY", "AWS_SESSION_TOKEN"]
include_expansions_in_env:
["AWS_ACCESS_KEY_ID", "AWS_SECRET_ACCESS_KEY", "AWS_SESSION_TOKEN"]
env:
MONGODB_VERSION: "8.0"
args:
- ${DRIVERS_TOOLS}/.evergreen/auth_oidc/setup.sh
- ${DRIVERS_TOOLS}/.evergreen/auth_oidc/setup.sh
setup_group_can_fail_task: true
setup_group_timeout_secs: 1800
tasks:
Expand Down
55 changes: 48 additions & 7 deletions .evergreen/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -287,6 +287,7 @@ functions:
params:
working_dir: src
script: |
source ${DRIVERS_TOOLS}/.evergreen/init-node-and-npm-env.sh
npm install --force ${PACKAGE}
run lint checks:
- command: subprocess.exec
Expand Down Expand Up @@ -2105,7 +2106,23 @@ tasks:
- func: install dependencies
- func: bootstrap mongo-orchestration
- func: run socks5 tests
- name: test-zstd-compression
- name: test-snappy-compression
tags:
- latest
- snappy
commands:
- command: expansions.update
type: setup
params:
updates:
- {key: VERSION, value: latest}
- {key: TOPOLOGY, value: replica_set}
- {key: AUTH, value: auth}
- {key: COMPRESSOR, value: snappy}
- func: install dependencies
- func: bootstrap mongo-orchestration
- func: run-compression-tests
- name: test-zstd-1.x-compression
tags:
- latest
- zstd
Expand All @@ -2120,11 +2137,14 @@ tasks:
- {key: COMPRESSOR, value: zstd}
- func: install dependencies
- func: bootstrap mongo-orchestration
- func: install package
vars:
PACKAGE: '@mongodb-js/zstd@1.x'
- func: run-compression-tests
- name: test-snappy-compression
- name: test-zstd-2.x-compression
tags:
- latest
- snappy
- zstd
commands:
- command: expansions.update
type: setup
Expand All @@ -2133,7 +2153,7 @@ tasks:
- {key: VERSION, value: latest}
- {key: TOPOLOGY, value: replica_set}
- {key: AUTH, value: auth}
- {key: COMPRESSOR, value: snappy}
- {key: COMPRESSOR, value: zstd}
- func: install dependencies
- func: bootstrap mongo-orchestration
- func: run-compression-tests
Expand Down Expand Up @@ -4785,6 +4805,9 @@ buildvariants:
- test-socks5
- test-socks5-csfle
- test-socks5-tls
- test-snappy-compression
- test-zstd-1.x-compression
- test-zstd-2.x-compression
- test-tls-support-latest
- test-tls-support-8.0
- test-tls-support-7.0
Expand Down Expand Up @@ -4841,6 +4864,9 @@ buildvariants:
- test-socks5
- test-socks5-csfle
- test-socks5-tls
- test-snappy-compression
- test-zstd-1.x-compression
- test-zstd-2.x-compression
- test-tls-support-latest
- test-tls-support-8.0
- test-tls-support-7.0
Expand Down Expand Up @@ -4897,6 +4923,9 @@ buildvariants:
- test-socks5
- test-socks5-csfle
- test-socks5-tls
- test-snappy-compression
- test-zstd-1.x-compression
- test-zstd-2.x-compression
- test-tls-support-latest
- test-tls-support-8.0
- test-tls-support-7.0
Expand Down Expand Up @@ -4953,8 +4982,9 @@ buildvariants:
- test-socks5
- test-socks5-csfle
- test-socks5-tls
- test-zstd-compression
- test-snappy-compression
- test-zstd-1.x-compression
- test-zstd-2.x-compression
- test-tls-support-latest
- test-tls-support-8.0
- test-tls-support-7.0
Expand Down Expand Up @@ -5009,8 +5039,9 @@ buildvariants:
- test-auth-ldap
- test-socks5-csfle
- test-socks5-tls
- test-zstd-compression
- test-snappy-compression
- test-zstd-1.x-compression
- test-zstd-2.x-compression
- test-tls-support-latest
- test-tls-support-8.0
- test-tls-support-7.0
Expand Down Expand Up @@ -5055,6 +5086,9 @@ buildvariants:
- test-latest-server-v1-api
- test-socks5
- test-socks5-tls
- test-snappy-compression
- test-zstd-1.x-compression
- test-zstd-2.x-compression
- test-tls-support-latest
- test-tls-support-8.0
- test-tls-support-7.0
Expand Down Expand Up @@ -5099,6 +5133,9 @@ buildvariants:
- test-latest-server-v1-api
- test-socks5
- test-socks5-tls
- test-snappy-compression
- test-zstd-1.x-compression
- test-zstd-2.x-compression
- test-tls-support-latest
- test-tls-support-8.0
- test-tls-support-7.0
Expand Down Expand Up @@ -5143,6 +5180,9 @@ buildvariants:
- test-latest-server-v1-api
- test-socks5
- test-socks5-tls
- test-snappy-compression
- test-zstd-1.x-compression
- test-zstd-2.x-compression
- test-tls-support-latest
- test-tls-support-8.0
- test-tls-support-7.0
Expand Down Expand Up @@ -5187,8 +5227,9 @@ buildvariants:
- test-latest-server-v1-api
- test-socks5
- test-socks5-tls
- test-zstd-compression
- test-snappy-compression
- test-zstd-1.x-compression
- test-zstd-2.x-compression
- test-tls-support-latest
- test-tls-support-8.0
- test-tls-support-7.0
Expand Down
80 changes: 54 additions & 26 deletions .evergreen/generate_evergreen_tasks.js
Original file line number Diff line number Diff line change
Expand Up @@ -211,23 +211,60 @@ TASKS.push(
]
);

for (const compressor of ['zstd', 'snappy']) {
TASKS.push({
name: `test-${compressor}-compression`,
tags: ['latest', compressor],
commands: [
updateExpansions({
VERSION: 'latest',
TOPOLOGY: 'replica_set',
AUTH: 'auth',
COMPRESSOR: compressor
}),
{ func: 'install dependencies' },
{ func: 'bootstrap mongo-orchestration' },
{ func: 'run-compression-tests' }
]
});
}
TASKS.push({
name: `test-snappy-compression`,
tags: ['latest', 'snappy'],
commands: [
updateExpansions({
VERSION: 'latest',
TOPOLOGY: 'replica_set',
AUTH: 'auth',
COMPRESSOR: 'snappy'
}),
{ func: 'install dependencies' },
{ func: 'bootstrap mongo-orchestration' },
{ func: 'run-compression-tests' }
]
});

TASKS.push({
name: `test-zstd-1.x-compression`,
tags: ['latest', 'zstd'],
commands: [
updateExpansions({
VERSION: 'latest',
TOPOLOGY: 'replica_set',
AUTH: 'auth',
COMPRESSOR: 'zstd'
}),
{ func: 'install dependencies' },
{ func: 'bootstrap mongo-orchestration' },
{
func: 'install package',
vars: {
PACKAGE: '@mongodb-js/zstd@1.x'
}
},
{ func: 'run-compression-tests' }
]
});

TASKS.push({
name: `test-zstd-2.x-compression`,
tags: ['latest', 'zstd'],
commands: [
updateExpansions({
VERSION: 'latest',
TOPOLOGY: 'replica_set',
AUTH: 'auth',
COMPRESSOR: 'zstd'
}),
{ func: 'install dependencies' },
{ func: 'bootstrap mongo-orchestration' },
// no need to manually install zstd - we specify 2.x as a dev dependency in package.json
{ func: 'run-compression-tests' }
]
});

const AWS_LAMBDA_HANDLER_TASKS = [];
// Add task for testing lambda example without aws auth.
Expand Down Expand Up @@ -766,15 +803,6 @@ BUILD_VARIANTS.push({
tasks: ['.resource-management']
});

// TODO(NODE-4575): unskip zstd and snappy on node 16
for (const variant of BUILD_VARIANTS.filter(
variant => variant.expansions && [16, 18, 20].includes(variant.expansions.NODE_LTS_VERSION)
)) {
variant.tasks = variant.tasks.filter(
name => !['test-zstd-compression', 'test-snappy-compression'].includes(name)
);
}

// TODO(NODE-4897): Debug socks5 tests on node latest
for (const variant of BUILD_VARIANTS.filter(
variant => variant.expansions && ['latest'].includes(variant.expansions.NODE_LTS_VERSION)
Expand Down
Loading

0 comments on commit 2eb9288

Please sign in to comment.