Skip to content

Commit

Permalink
test(NODE-5739): update data lake test scripts (#3918)
Browse files Browse the repository at this point in the history
  • Loading branch information
durran committed Nov 10, 2023
1 parent eecdb6b commit 6266734
Show file tree
Hide file tree
Showing 4 changed files with 45 additions and 27 deletions.
4 changes: 3 additions & 1 deletion .evergreen/ci_matrix_constants.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ const DEFAULT_OS = 'rhel80-large';
const WINDOWS_OS = 'windows-vsCurrent-large';
const MACOS_OS = 'macos-1100';
const UBUNTU_OS = 'ubuntu1804-large';
const UBUNTU_20_OS = 'ubuntu2004-small'
const UBUNTU_20_OS = 'ubuntu2004-small';
const UBUNTU_22_OS = 'ubuntu2204-large';
const DEBIAN_OS = 'debian11-small';

module.exports = {
Expand All @@ -34,5 +35,6 @@ module.exports = {
MACOS_OS,
UBUNTU_OS,
UBUNTU_20_OS,
UBUNTU_22_OS,
DEBIAN_OS
};
13 changes: 11 additions & 2 deletions .evergreen/config.in.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,13 +85,15 @@ functions:
params:
script: |
${PREPARE_SHELL}
DRIVERS_TOOLS="${DRIVERS_TOOLS}" bash ${DRIVERS_TOOLS}/.evergreen/atlas_data_lake/build-mongohouse-local.sh
DRIVERS_TOOLS="${DRIVERS_TOOLS}" bash ${DRIVERS_TOOLS}/.evergreen/atlas_data_lake/pull-mongohouse-image.sh
- command: shell.exec
params:
background: true
script: |
${PREPARE_SHELL}
DRIVERS_TOOLS="${DRIVERS_TOOLS}" bash ${DRIVERS_TOOLS}/.evergreen/atlas_data_lake/run-mongohouse-local.sh
DRIVERS_TOOLS="${DRIVERS_TOOLS}" bash ${DRIVERS_TOOLS}/.evergreen/atlas_data_lake/run-mongohouse-image.sh
sleep 1
docker ps
"bootstrap kms servers":
- command: subprocess.exec
Expand Down Expand Up @@ -1088,6 +1090,13 @@ functions:
- ${PROJECT_DIRECTORY}/.evergreen/run-benchmarks.sh

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

- name: "test-serverless"
tags: ["serverless"]
commands:
Expand Down
34 changes: 19 additions & 15 deletions .evergreen/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,13 +59,15 @@ functions:
params:
script: |
${PREPARE_SHELL}
DRIVERS_TOOLS="${DRIVERS_TOOLS}" bash ${DRIVERS_TOOLS}/.evergreen/atlas_data_lake/build-mongohouse-local.sh
DRIVERS_TOOLS="${DRIVERS_TOOLS}" bash ${DRIVERS_TOOLS}/.evergreen/atlas_data_lake/pull-mongohouse-image.sh
- command: shell.exec
params:
background: true
script: |
${PREPARE_SHELL}
DRIVERS_TOOLS="${DRIVERS_TOOLS}" bash ${DRIVERS_TOOLS}/.evergreen/atlas_data_lake/run-mongohouse-local.sh
DRIVERS_TOOLS="${DRIVERS_TOOLS}" bash ${DRIVERS_TOOLS}/.evergreen/atlas_data_lake/run-mongohouse-image.sh
sleep 1
docker ps
bootstrap kms servers:
- command: subprocess.exec
params:
Expand Down Expand Up @@ -1031,6 +1033,14 @@ functions:
args:
- ${PROJECT_DIRECTORY}/.evergreen/run-benchmarks.sh
tasks:
- name: test-atlas-data-lake
tags:
- datalake
- mongohouse
commands:
- func: install dependencies
- func: bootstrap mongohoused
- func: run data lake tests
- name: test-serverless
tags:
- serverless
Expand Down Expand Up @@ -1683,11 +1693,6 @@ tasks:
commands:
- func: install dependencies
- func: run atlas tests
- name: test-atlas-data-lake
commands:
- func: install dependencies
- func: bootstrap mongohoused
- func: run data lake tests
- name: test-5.0-load-balanced
tags:
- latest
Expand Down Expand Up @@ -3945,7 +3950,6 @@ buildvariants:
- test-3.6-sharded_cluster
- test-latest-server-v1-api
- test-atlas-connectivity
- test-atlas-data-lake
- test-5.0-load-balanced
- test-6.0-load-balanced
- test-latest-load-balanced
Expand Down Expand Up @@ -3998,7 +4002,6 @@ buildvariants:
- test-3.6-sharded_cluster
- test-latest-server-v1-api
- test-atlas-connectivity
- test-atlas-data-lake
- test-5.0-load-balanced
- test-6.0-load-balanced
- test-latest-load-balanced
Expand Down Expand Up @@ -4049,7 +4052,6 @@ buildvariants:
- test-3.6-sharded_cluster
- test-latest-server-v1-api
- test-atlas-connectivity
- test-atlas-data-lake
- test-5.0-load-balanced
- test-6.0-load-balanced
- test-latest-load-balanced
Expand Down Expand Up @@ -4100,7 +4102,6 @@ buildvariants:
- test-3.6-sharded_cluster
- test-latest-server-v1-api
- test-atlas-connectivity
- test-atlas-data-lake
- test-5.0-load-balanced
- test-6.0-load-balanced
- test-latest-load-balanced
Expand Down Expand Up @@ -4150,7 +4151,6 @@ buildvariants:
- test-3.6-sharded_cluster
- test-latest-server-v1-api
- test-atlas-connectivity
- test-atlas-data-lake
- test-5.0-load-balanced
- test-6.0-load-balanced
- test-latest-load-balanced
Expand Down Expand Up @@ -4199,7 +4199,6 @@ buildvariants:
- test-3.6-replica_set
- test-3.6-sharded_cluster
- test-latest-server-v1-api
- test-atlas-data-lake
- test-socks5
- test-socks5-tls
- test-tls-support-latest
Expand Down Expand Up @@ -4242,7 +4241,6 @@ buildvariants:
- test-3.6-replica_set
- test-3.6-sharded_cluster
- test-latest-server-v1-api
- test-atlas-data-lake
- test-socks5
- test-socks5-tls
- test-tls-support-latest
Expand Down Expand Up @@ -4285,7 +4283,6 @@ buildvariants:
- test-3.6-replica_set
- test-3.6-sharded_cluster
- test-latest-server-v1-api
- test-atlas-data-lake
- test-socks5
- test-socks5-tls
- test-tls-support-latest
Expand Down Expand Up @@ -4427,6 +4424,13 @@ buildvariants:
aws-4.4-auth-test-run-aws-auth-test-AssumeRoleWithWebIdentity-with-AWS_ROLE_SESSION_NAME-unset-no-peer-dependencies
- >-
aws-4.4-auth-test-run-aws-auth-test-AssumeRoleWithWebIdentity-with-AWS_ROLE_SESSION_NAME-set-no-peer-dependencies
- name: ubuntu2204-test-atlas-data-lake
display_name: Atlas Data Lake Tests
run_on: ubuntu2204-large
expansions:
NODE_LTS_VERSION: 20
tasks:
- test-atlas-data-lake
- name: rhel8-custom-dependency-tests
display_name: Custom Dependency Version Test
run_on: rhel80-large
Expand Down
21 changes: 12 additions & 9 deletions .evergreen/generate_evergreen_tasks.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ const {
MACOS_OS,
UBUNTU_OS,
UBUNTU_20_OS,
DEBIAN_OS
DEBIAN_OS,
UBUNTU_22_OS
} = require('./ci_matrix_constants');

const OPERATING_SYSTEMS = [
Expand Down Expand Up @@ -125,14 +126,6 @@ TASKS.push(
tags: ['atlas-connect'],
commands: [{ func: 'install dependencies' }, { func: 'run atlas tests' }]
},
{
name: 'test-atlas-data-lake',
commands: [
{ func: 'install dependencies' },
{ func: 'bootstrap mongohoused' },
{ func: 'run data lake tests' }
]
},
{
name: 'test-5.0-load-balanced',
tags: ['latest', 'sharded_cluster', 'load_balancer'],
Expand Down Expand Up @@ -608,6 +601,16 @@ BUILD_VARIANTS.push({
tasks: AWS_AUTH_TASKS
});

BUILD_VARIANTS.push({
name: 'ubuntu2204-test-atlas-data-lake',
display_name: 'Atlas Data Lake Tests',
run_on: UBUNTU_22_OS,
expansions: {
NODE_LTS_VERSION: LATEST_LTS
},
tasks: ['test-atlas-data-lake']
});

const oneOffFuncAsTasks = [];

for (const version of ['5.0', 'rapid', 'latest']) {
Expand Down

0 comments on commit 6266734

Please sign in to comment.