File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2021,6 +2021,19 @@ tasks:
20212021 - func : bootstrap mongo-orchestration
20222022 - func : assume secrets manager role
20232023 - func : build and test alpine FLE
2024+ - name : test-runtime-independence
2025+ tags : []
2026+ commands :
2027+ - command : expansions.update
2028+ type : setup
2029+ params :
2030+ updates :
2031+ - {key: NODE_LTS_VERSION, value: 20.19.0}
2032+ - {key: VERSION, value: '7.0'}
2033+ - {key: TOPOLOGY, value: replica_set}
2034+ - func : install dependencies
2035+ - func : bootstrap mongo-orchestration
2036+ - func : run tests
20242037 - name : test-latest-server-noauth
20252038 tags :
20262039 - latest
Original file line number Diff line number Diff line change @@ -649,6 +649,21 @@ SINGLETON_TASKS.push({
649649 ]
650650} ) ;
651651
652+ SINGLETON_TASKS . push ( {
653+ name : 'test-runtime-independence' ,
654+ tags : [ ] ,
655+ commands : [
656+ updateExpansions ( {
657+ NODE_LTS_VERSION : LOWEST_LTS ,
658+ VERSION : '7.0' ,
659+ TOPOLOGY : 'replica_set'
660+ } ) ,
661+ { func : 'install dependencies' } ,
662+ { func : 'bootstrap mongo-orchestration' } ,
663+ { func : 'run tests' }
664+ ]
665+ } ) ;
666+
652667function addPerformanceTasks ( ) {
653668 const makePerfTask = ( name , MONGODB_CLIENT_OPTIONS ) => ( {
654669 name,
Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+ # set -o xtrace # Write all commands first to stderr
3+ set -o errexit # Exit the script with error if any of the commands fail
4+
5+ # Supported/used environment variables:
6+ # AUTH Set to enable authentication. Defaults to "noauth"
7+ # MONGODB_URI Set the suggested connection MONGODB_URI (including credentials and topology info)
8+ # MARCH Machine Architecture. Defaults to lowercase uname -m
9+ # SKIP_DEPS Skip installing dependencies
10+
11+ AUTH=${AUTH:- noauth}
12+ MONGODB_URI=${MONGODB_URI:- }
13+ SKIP_DEPS=${SKIP_DEPS:- true}
14+
15+ # run tests
16+ echo " Running $AUTH tests, connecting to $MONGODB_URI "
17+
18+ if [[ -z " ${SKIP_DEPS} " ]]; then
19+ source " ${PROJECT_DIRECTORY} /.evergreen/install-dependencies.sh"
20+ else
21+ source $DRIVERS_TOOLS /.evergreen/init-node-and-npm-env.sh
22+ fi
23+
24+ export AUTH=$AUTH
25+ export MONGODB_API_VERSION=${MONGODB_API_VERSION}
26+ export MONGODB_URI=${MONGODB_URI}
27+
28+ npx nyc npm run check:runtime-independence
Original file line number Diff line number Diff line change 157157 "check:csfle" : " nyc mocha --config test/mocha_mongodb.js test/integration/client-side-encryption" ,
158158 "check:snappy" : " nyc mocha test/unit/assorted/snappy.test.js" ,
159159 "check:x509" : " nyc mocha test/manual/x509_auth.test.ts" ,
160+ "check:runtime-independence" : " ts-node test/tools/runner/vm_runner.ts test/integration/change-streams/change_stream.test.ts" ,
160161 "fix:eslint" : " npm run check:eslint -- --fix" ,
161162 "prepare" : " node etc/prepare.js" ,
162163 "preview:docs" : " ts-node etc/docs/preview.ts" ,
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments