Skip to content

Commit c389d2d

Browse files
committed
test: remove mongosh integration tests
1 parent 1e96e49 commit c389d2d

File tree

4 files changed

+40
-272
lines changed

4 files changed

+40
-272
lines changed

.evergreen/config.in.yml

Lines changed: 0 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -404,44 +404,6 @@ functions:
404404
args:
405405
- "${PROJECT_DIRECTORY}/.evergreen/run-typescript.sh"
406406

407-
###########################################
408-
# mongosh functions
409-
###########################################
410-
"compile mongosh":
411-
- command: subprocess.exec
412-
params:
413-
working_dir: src
414-
env:
415-
PROJECT_DIRECTORY: ${PROJECT_DIRECTORY}
416-
TASK_ID: ${task_id}
417-
binary: bash
418-
args:
419-
- "${PROJECT_DIRECTORY}/.evergreen/run-mongosh-integration-tests.sh"
420-
421-
"run mongosh tests for package":
422-
- command: subprocess.exec
423-
params:
424-
working_dir: src
425-
env:
426-
PROJECT_DIRECTORY: ${PROJECT_DIRECTORY}
427-
TASK_ID: ${task_id}
428-
MONGOSH_RUN_ONLY_IN_PACKAGE: ${mongosh_package}
429-
binary: bash
430-
args:
431-
- "${PROJECT_DIRECTORY}/.evergreen/run-mongosh-integration-tests.sh"
432-
433-
"run mongosh package scope test":
434-
- command: subprocess.exec
435-
params:
436-
working_dir: src
437-
env:
438-
PROJECT_DIRECTORY: ${PROJECT_DIRECTORY}
439-
TASK_ID: ${task_id}
440-
binary: bash
441-
args:
442-
- "${PROJECT_DIRECTORY}/.evergreen/run-mongosh-scope-test.sh"
443-
444-
445407
"reset aws instance profile":
446408
- command: shell.exec
447409
params:

.evergreen/config.yml

Lines changed: 0 additions & 125 deletions
Original file line numberDiff line numberDiff line change
@@ -364,37 +364,6 @@ functions:
364364
binary: bash
365365
args:
366366
- ${PROJECT_DIRECTORY}/.evergreen/run-typescript.sh
367-
compile mongosh:
368-
- command: subprocess.exec
369-
params:
370-
working_dir: src
371-
env:
372-
PROJECT_DIRECTORY: ${PROJECT_DIRECTORY}
373-
TASK_ID: ${task_id}
374-
binary: bash
375-
args:
376-
- ${PROJECT_DIRECTORY}/.evergreen/run-mongosh-integration-tests.sh
377-
run mongosh tests for package:
378-
- command: subprocess.exec
379-
params:
380-
working_dir: src
381-
env:
382-
PROJECT_DIRECTORY: ${PROJECT_DIRECTORY}
383-
TASK_ID: ${task_id}
384-
MONGOSH_RUN_ONLY_IN_PACKAGE: ${mongosh_package}
385-
binary: bash
386-
args:
387-
- ${PROJECT_DIRECTORY}/.evergreen/run-mongosh-integration-tests.sh
388-
run mongosh package scope test:
389-
- command: subprocess.exec
390-
params:
391-
working_dir: src
392-
env:
393-
PROJECT_DIRECTORY: ${PROJECT_DIRECTORY}
394-
TASK_ID: ${task_id}
395-
binary: bash
396-
args:
397-
- ${PROJECT_DIRECTORY}/.evergreen/run-mongosh-scope-test.sh
398367
reset aws instance profile:
399368
- command: shell.exec
400369
params:
@@ -3254,88 +3223,6 @@ tasks:
32543223
- func: run tests
32553224
vars:
32563225
TEST_NPM_SCRIPT: check:csfle
3257-
- name: run-mongosh-browser-runtime-electron
3258-
tags:
3259-
- run-mongosh-integration-tests
3260-
depends_on: compile-mongosh
3261-
commands:
3262-
- func: install dependencies
3263-
vars:
3264-
NODE_LTS_VERSION: 16
3265-
- func: run mongosh tests for package
3266-
vars:
3267-
mongosh_package: browser-runtime-electron
3268-
- name: run-mongosh-cli-repl
3269-
tags:
3270-
- run-mongosh-integration-tests
3271-
depends_on: compile-mongosh
3272-
commands:
3273-
- func: install dependencies
3274-
vars:
3275-
NODE_LTS_VERSION: 16
3276-
- func: run mongosh tests for package
3277-
vars:
3278-
mongosh_package: cli-repl
3279-
- name: run-mongosh-connectivity-tests
3280-
tags:
3281-
- run-mongosh-integration-tests
3282-
depends_on: compile-mongosh
3283-
commands:
3284-
- func: install dependencies
3285-
vars:
3286-
NODE_LTS_VERSION: 16
3287-
- func: run mongosh tests for package
3288-
vars:
3289-
mongosh_package: connectivity-tests
3290-
- name: run-mongosh-mongosh
3291-
tags:
3292-
- run-mongosh-integration-tests
3293-
depends_on: compile-mongosh
3294-
commands:
3295-
- func: install dependencies
3296-
vars:
3297-
NODE_LTS_VERSION: 16
3298-
- func: run mongosh tests for package
3299-
vars:
3300-
mongosh_package: mongosh
3301-
- name: run-mongosh-node-runtime-worker-thread
3302-
tags:
3303-
- run-mongosh-integration-tests
3304-
depends_on: compile-mongosh
3305-
commands:
3306-
- func: install dependencies
3307-
vars:
3308-
NODE_LTS_VERSION: 16
3309-
- func: run mongosh tests for package
3310-
vars:
3311-
mongosh_package: node-runtime-worker-thread
3312-
- name: run-mongosh-service-provider-server
3313-
tags:
3314-
- run-mongosh-integration-tests
3315-
depends_on: compile-mongosh
3316-
commands:
3317-
- func: install dependencies
3318-
vars:
3319-
NODE_LTS_VERSION: 16
3320-
- func: run mongosh tests for package
3321-
vars:
3322-
mongosh_package: service-provider-server
3323-
- name: compile-mongosh
3324-
tags:
3325-
- run-mongosh-integration-tests
3326-
commands:
3327-
- func: install dependencies
3328-
vars:
3329-
NODE_LTS_VERSION: 16
3330-
- func: compile mongosh
3331-
- name: verify-mongosh-scopes
3332-
tags:
3333-
- run-mongosh-integration-tests
3334-
commands:
3335-
- func: install dependencies
3336-
vars:
3337-
NODE_LTS_VERSION: 16
3338-
- func: run mongosh package scope test
33393226
task_groups:
33403227
- name: serverless_task_group
33413228
setup_group_can_fail_task: true
@@ -3911,18 +3798,6 @@ buildvariants:
39113798
run_on: rhel80-large
39123799
tasks:
39133800
- download-and-merge-coverage
3914-
- name: mongosh_integration_tests
3915-
display_name: mongosh integration tests
3916-
run_on: ubuntu1804-large
3917-
tasks:
3918-
- run-mongosh-browser-runtime-electron
3919-
- run-mongosh-cli-repl
3920-
- run-mongosh-connectivity-tests
3921-
- run-mongosh-mongosh
3922-
- run-mongosh-node-runtime-worker-thread
3923-
- run-mongosh-service-provider-server
3924-
- compile-mongosh
3925-
- verify-mongosh-scopes
39263801
- name: ubuntu1804-test-mongodb-aws
39273802
display_name: MONGODB-AWS Auth test
39283803
run_on: ubuntu1804-large

.evergreen/generate_evergreen_tasks.js

Lines changed: 40 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
const fs = require('fs');
22
const yaml = require('js-yaml');
33
const semver = require('semver');
4-
const { mongoshTasks } = require('./generate_mongosh_tasks');
54

65
const {
76
MONGODB_VERSIONS,
@@ -40,7 +39,13 @@ const OPERATING_SYSTEMS = [
4039
}));
4140

4241
// TODO: NODE-3060: enable skipped tests on windows except oidc (not supported)
43-
const WINDOWS_SKIP_TAGS = new Set(['atlas-connect', 'auth', 'load_balancer', 'socks5-csfle', 'oidc']);
42+
const WINDOWS_SKIP_TAGS = new Set([
43+
'atlas-connect',
44+
'auth',
45+
'load_balancer',
46+
'socks5-csfle',
47+
'oidc'
48+
]);
4449

4550
const TASKS = [];
4651
const SINGLETON_TASKS = [];
@@ -426,7 +431,9 @@ for (const {
426431
});
427432

428433
for (const NODE_LTS_VERSION of testedNodeVersions) {
429-
const nodeLTSCodeName = versions.find(({ versionNumber }) => versionNumber === NODE_LTS_VERSION).codeName;
434+
const nodeLTSCodeName = versions.find(
435+
({ versionNumber }) => versionNumber === NODE_LTS_VERSION
436+
).codeName;
430437
const nodeLtsDisplayName = `Node${NODE_LTS_VERSION}`;
431438
const name = `${osName}-${NODE_LTS_VERSION >= 20 ? nodeLtsDisplayName : nodeLTSCodeName}`;
432439
const display_name = `${osDisplayName} ${nodeLtsDisplayName}`;
@@ -458,33 +465,33 @@ for (const {
458465
}
459466

460467
// Running CSFLE tests with mongocryptd
461-
const MONGOCRYPTD_CSFLE_TASKS = MONGODB_VERSIONS
462-
.filter(mongoVersion => ['latest', 'rapid'].includes(mongoVersion)
463-
|| semver.gte(`${mongoVersion}.0`, '4.2.0'))
464-
.map((mongoVersion) => {
465-
return {
466-
name: `test-${mongoVersion}-csfle-mongocryptd`,
467-
tags: [mongoVersion, 'sharded_cluster'],
468-
commands: [
469-
{ func: 'install dependencies' },
470-
{
471-
func: 'bootstrap mongo-orchestration',
472-
vars: {
473-
VERSION: mongoVersion,
474-
TOPOLOGY: 'sharded_cluster',
475-
AUTH: 'auth'
476-
}
477-
},
478-
{ func: 'bootstrap kms servers' },
479-
{
480-
func: 'run tests',
481-
vars: {
482-
TEST_NPM_SCRIPT: 'check:csfle'
483-
}
468+
const MONGOCRYPTD_CSFLE_TASKS = MONGODB_VERSIONS.filter(
469+
mongoVersion =>
470+
['latest', 'rapid'].includes(mongoVersion) || semver.gte(`${mongoVersion}.0`, '4.2.0')
471+
).map(mongoVersion => {
472+
return {
473+
name: `test-${mongoVersion}-csfle-mongocryptd`,
474+
tags: [mongoVersion, 'sharded_cluster'],
475+
commands: [
476+
{ func: 'install dependencies' },
477+
{
478+
func: 'bootstrap mongo-orchestration',
479+
vars: {
480+
VERSION: mongoVersion,
481+
TOPOLOGY: 'sharded_cluster',
482+
AUTH: 'auth'
484483
}
485-
]
486-
}
487-
});
484+
},
485+
{ func: 'bootstrap kms servers' },
486+
{
487+
func: 'run tests',
488+
vars: {
489+
TEST_NPM_SCRIPT: 'check:csfle'
490+
}
491+
}
492+
]
493+
};
494+
});
488495

489496
for (const nodeVersion of [LOWEST_LTS, LATEST_LTS]) {
490497
const name = `rhel8-node${nodeVersion}-test-csfle-mongocryptd`;
@@ -498,8 +505,7 @@ for (const nodeVersion of [LOWEST_LTS, LATEST_LTS]) {
498505
RUN_WITH_MONGOCRYPTD: true,
499506
NODE_LTS_VERSION: LOWEST_LTS
500507
},
501-
tasks:
502-
MONGOCRYPTD_CSFLE_TASKS.map(task => task.name)
508+
tasks: MONGOCRYPTD_CSFLE_TASKS.map(task => task.name)
503509
});
504510
}
505511

@@ -547,7 +553,6 @@ SINGLETON_TASKS.push(
547553
]
548554
);
549555

550-
551556
function* makeTypescriptTasks() {
552557
for (const TS_VERSION of ['next', 'current', '4.1.6']) {
553558
// 4.1.6 can consume the public API but not compile the driver
@@ -624,13 +629,6 @@ BUILD_VARIANTS.push({
624629
tasks: ['download-and-merge-coverage']
625630
});
626631

627-
BUILD_VARIANTS.push({
628-
name: 'mongosh_integration_tests',
629-
display_name: 'mongosh integration tests',
630-
run_on: UBUNTU_OS,
631-
tasks: mongoshTasks.map(({ name }) => name)
632-
});
633-
634632
// special case for MONGODB-AWS authentication
635633
BUILD_VARIANTS.push({
636634
name: 'ubuntu1804-test-mongodb-aws',
@@ -765,9 +763,7 @@ BUILD_VARIANTS.push({
765763

766764
// TODO(NODE-4575): unskip zstd and snappy on node 16
767765
for (const variant of BUILD_VARIANTS.filter(
768-
variant =>
769-
variant.expansions &&
770-
[16, 18, 20].includes(variant.expansions.NODE_LTS_VERSION)
766+
variant => variant.expansions && [16, 18, 20].includes(variant.expansions.NODE_LTS_VERSION)
771767
)) {
772768
variant.tasks = variant.tasks.filter(
773769
name => !['test-zstd-compression', 'test-snappy-compression'].includes(name)
@@ -784,7 +780,7 @@ for (const variant of BUILD_VARIANTS.filter(
784780
// TODO(NODE-5283): fix socks5 fle tests on node 20+
785781
for (const variant of BUILD_VARIANTS.filter(
786782
variant => variant.expansions && [20].includes(variant.expansions.NODE_LTS_VERSION)
787-
) ) {
783+
)) {
788784
variant.tasks = variant.tasks.filter(name => !['test-socks5-csfle'].includes(name));
789785
}
790786

@@ -795,8 +791,7 @@ fileData.tasks = (fileData.tasks || [])
795791
.concat(SINGLETON_TASKS)
796792
.concat(AUTH_DISABLED_TASKS)
797793
.concat(AWS_LAMBDA_HANDLER_TASKS)
798-
.concat(MONGOCRYPTD_CSFLE_TASKS)
799-
.concat(mongoshTasks);
794+
.concat(MONGOCRYPTD_CSFLE_TASKS);
800795

801796
fileData.buildvariants = (fileData.buildvariants || []).concat(BUILD_VARIANTS);
802797

0 commit comments

Comments
 (0)