From ce35b5506e3e840a2b5e83933cb63bc9b8fcb104 Mon Sep 17 00:00:00 2001 From: Durran Jordan Date: Tue, 7 Jan 2025 20:12:59 +0100 Subject: [PATCH] chore(NODE-6637): remove drivers tools env setting --- .evergreen/config.yml | 54 -------------------------- .evergreen/generate_evergreen_tasks.js | 2 +- .evergreen/install-dependencies.sh | 14 +------ .evergreen/prepare-shell.sh | 2 +- 4 files changed, 4 insertions(+), 68 deletions(-) diff --git a/.evergreen/config.yml b/.evergreen/config.yml index a3dbad1e7a..828e804f6f 100644 --- a/.evergreen/config.yml +++ b/.evergreen/config.yml @@ -1383,7 +1383,6 @@ tasks: type: setup params: updates: - - {key: NPM_VERSION, value: '9'} - {key: VERSION, value: latest} - {key: TOPOLOGY, value: server} - {key: AUTH, value: auth} @@ -1400,7 +1399,6 @@ tasks: type: setup params: updates: - - {key: NPM_VERSION, value: '9'} - {key: VERSION, value: latest} - {key: TOPOLOGY, value: replica_set} - {key: AUTH, value: auth} @@ -1417,7 +1415,6 @@ tasks: type: setup params: updates: - - {key: NPM_VERSION, value: '9'} - {key: VERSION, value: latest} - {key: TOPOLOGY, value: sharded_cluster} - {key: AUTH, value: auth} @@ -1434,7 +1431,6 @@ tasks: type: setup params: updates: - - {key: NPM_VERSION, value: '9'} - {key: VERSION, value: rapid} - {key: TOPOLOGY, value: server} - {key: AUTH, value: auth} @@ -1451,7 +1447,6 @@ tasks: type: setup params: updates: - - {key: NPM_VERSION, value: '9'} - {key: VERSION, value: rapid} - {key: TOPOLOGY, value: replica_set} - {key: AUTH, value: auth} @@ -1468,7 +1463,6 @@ tasks: type: setup params: updates: - - {key: NPM_VERSION, value: '9'} - {key: VERSION, value: rapid} - {key: TOPOLOGY, value: sharded_cluster} - {key: AUTH, value: auth} @@ -1485,7 +1479,6 @@ tasks: type: setup params: updates: - - {key: NPM_VERSION, value: '9'} - {key: VERSION, value: '8.0'} - {key: TOPOLOGY, value: server} - {key: AUTH, value: auth} @@ -1502,7 +1495,6 @@ tasks: type: setup params: updates: - - {key: NPM_VERSION, value: '9'} - {key: VERSION, value: '8.0'} - {key: TOPOLOGY, value: replica_set} - {key: AUTH, value: auth} @@ -1519,7 +1511,6 @@ tasks: type: setup params: updates: - - {key: NPM_VERSION, value: '9'} - {key: VERSION, value: '8.0'} - {key: TOPOLOGY, value: sharded_cluster} - {key: AUTH, value: auth} @@ -1536,7 +1527,6 @@ tasks: type: setup params: updates: - - {key: NPM_VERSION, value: '9'} - {key: VERSION, value: '7.0'} - {key: TOPOLOGY, value: server} - {key: AUTH, value: auth} @@ -1553,7 +1543,6 @@ tasks: type: setup params: updates: - - {key: NPM_VERSION, value: '9'} - {key: VERSION, value: '7.0'} - {key: TOPOLOGY, value: replica_set} - {key: AUTH, value: auth} @@ -1570,7 +1559,6 @@ tasks: type: setup params: updates: - - {key: NPM_VERSION, value: '9'} - {key: VERSION, value: '7.0'} - {key: TOPOLOGY, value: sharded_cluster} - {key: AUTH, value: auth} @@ -1587,7 +1575,6 @@ tasks: type: setup params: updates: - - {key: NPM_VERSION, value: '9'} - {key: VERSION, value: '6.0'} - {key: TOPOLOGY, value: server} - {key: AUTH, value: auth} @@ -1604,7 +1591,6 @@ tasks: type: setup params: updates: - - {key: NPM_VERSION, value: '9'} - {key: VERSION, value: '6.0'} - {key: TOPOLOGY, value: replica_set} - {key: AUTH, value: auth} @@ -1621,7 +1607,6 @@ tasks: type: setup params: updates: - - {key: NPM_VERSION, value: '9'} - {key: VERSION, value: '6.0'} - {key: TOPOLOGY, value: sharded_cluster} - {key: AUTH, value: auth} @@ -1638,7 +1623,6 @@ tasks: type: setup params: updates: - - {key: NPM_VERSION, value: '9'} - {key: VERSION, value: '5.0'} - {key: TOPOLOGY, value: server} - {key: AUTH, value: auth} @@ -1655,7 +1639,6 @@ tasks: type: setup params: updates: - - {key: NPM_VERSION, value: '9'} - {key: VERSION, value: '5.0'} - {key: TOPOLOGY, value: replica_set} - {key: AUTH, value: auth} @@ -1672,7 +1655,6 @@ tasks: type: setup params: updates: - - {key: NPM_VERSION, value: '9'} - {key: VERSION, value: '5.0'} - {key: TOPOLOGY, value: sharded_cluster} - {key: AUTH, value: auth} @@ -1689,7 +1671,6 @@ tasks: type: setup params: updates: - - {key: NPM_VERSION, value: '9'} - {key: VERSION, value: '4.4'} - {key: TOPOLOGY, value: server} - {key: AUTH, value: auth} @@ -1706,7 +1687,6 @@ tasks: type: setup params: updates: - - {key: NPM_VERSION, value: '9'} - {key: VERSION, value: '4.4'} - {key: TOPOLOGY, value: replica_set} - {key: AUTH, value: auth} @@ -1723,7 +1703,6 @@ tasks: type: setup params: updates: - - {key: NPM_VERSION, value: '9'} - {key: VERSION, value: '4.4'} - {key: TOPOLOGY, value: sharded_cluster} - {key: AUTH, value: auth} @@ -1740,7 +1719,6 @@ tasks: type: setup params: updates: - - {key: NPM_VERSION, value: '9'} - {key: VERSION, value: '4.2'} - {key: TOPOLOGY, value: server} - {key: AUTH, value: auth} @@ -1757,7 +1735,6 @@ tasks: type: setup params: updates: - - {key: NPM_VERSION, value: '9'} - {key: VERSION, value: '4.2'} - {key: TOPOLOGY, value: replica_set} - {key: AUTH, value: auth} @@ -1774,7 +1751,6 @@ tasks: type: setup params: updates: - - {key: NPM_VERSION, value: '9'} - {key: VERSION, value: '4.2'} - {key: TOPOLOGY, value: sharded_cluster} - {key: AUTH, value: auth} @@ -1791,7 +1767,6 @@ tasks: type: setup params: updates: - - {key: NPM_VERSION, value: '9'} - {key: VERSION, value: '4.0'} - {key: TOPOLOGY, value: server} - {key: AUTH, value: auth} @@ -1808,7 +1783,6 @@ tasks: type: setup params: updates: - - {key: NPM_VERSION, value: '9'} - {key: VERSION, value: '4.0'} - {key: TOPOLOGY, value: replica_set} - {key: AUTH, value: auth} @@ -1825,7 +1799,6 @@ tasks: type: setup params: updates: - - {key: NPM_VERSION, value: '9'} - {key: VERSION, value: '4.0'} - {key: TOPOLOGY, value: sharded_cluster} - {key: AUTH, value: auth} @@ -3860,7 +3833,6 @@ tasks: type: setup params: updates: - - {key: NPM_VERSION, value: '9'} - {key: VERSION, value: latest} - {key: TOPOLOGY, value: server} - {key: AUTH, value: noauth} @@ -3878,7 +3850,6 @@ tasks: type: setup params: updates: - - {key: NPM_VERSION, value: '9'} - {key: VERSION, value: latest} - {key: TOPOLOGY, value: replica_set} - {key: AUTH, value: noauth} @@ -3896,7 +3867,6 @@ tasks: type: setup params: updates: - - {key: NPM_VERSION, value: '9'} - {key: VERSION, value: latest} - {key: TOPOLOGY, value: sharded_cluster} - {key: AUTH, value: noauth} @@ -3914,7 +3884,6 @@ tasks: type: setup params: updates: - - {key: NPM_VERSION, value: '9'} - {key: VERSION, value: rapid} - {key: TOPOLOGY, value: server} - {key: AUTH, value: noauth} @@ -3932,7 +3901,6 @@ tasks: type: setup params: updates: - - {key: NPM_VERSION, value: '9'} - {key: VERSION, value: rapid} - {key: TOPOLOGY, value: replica_set} - {key: AUTH, value: noauth} @@ -3950,7 +3918,6 @@ tasks: type: setup params: updates: - - {key: NPM_VERSION, value: '9'} - {key: VERSION, value: rapid} - {key: TOPOLOGY, value: sharded_cluster} - {key: AUTH, value: noauth} @@ -3968,7 +3935,6 @@ tasks: type: setup params: updates: - - {key: NPM_VERSION, value: '9'} - {key: VERSION, value: '8.0'} - {key: TOPOLOGY, value: server} - {key: AUTH, value: noauth} @@ -3986,7 +3952,6 @@ tasks: type: setup params: updates: - - {key: NPM_VERSION, value: '9'} - {key: VERSION, value: '8.0'} - {key: TOPOLOGY, value: replica_set} - {key: AUTH, value: noauth} @@ -4004,7 +3969,6 @@ tasks: type: setup params: updates: - - {key: NPM_VERSION, value: '9'} - {key: VERSION, value: '8.0'} - {key: TOPOLOGY, value: sharded_cluster} - {key: AUTH, value: noauth} @@ -4022,7 +3986,6 @@ tasks: type: setup params: updates: - - {key: NPM_VERSION, value: '9'} - {key: VERSION, value: '7.0'} - {key: TOPOLOGY, value: server} - {key: AUTH, value: noauth} @@ -4040,7 +4003,6 @@ tasks: type: setup params: updates: - - {key: NPM_VERSION, value: '9'} - {key: VERSION, value: '7.0'} - {key: TOPOLOGY, value: replica_set} - {key: AUTH, value: noauth} @@ -4058,7 +4020,6 @@ tasks: type: setup params: updates: - - {key: NPM_VERSION, value: '9'} - {key: VERSION, value: '7.0'} - {key: TOPOLOGY, value: sharded_cluster} - {key: AUTH, value: noauth} @@ -4076,7 +4037,6 @@ tasks: type: setup params: updates: - - {key: NPM_VERSION, value: '9'} - {key: VERSION, value: '6.0'} - {key: TOPOLOGY, value: server} - {key: AUTH, value: noauth} @@ -4094,7 +4054,6 @@ tasks: type: setup params: updates: - - {key: NPM_VERSION, value: '9'} - {key: VERSION, value: '6.0'} - {key: TOPOLOGY, value: replica_set} - {key: AUTH, value: noauth} @@ -4112,7 +4071,6 @@ tasks: type: setup params: updates: - - {key: NPM_VERSION, value: '9'} - {key: VERSION, value: '6.0'} - {key: TOPOLOGY, value: sharded_cluster} - {key: AUTH, value: noauth} @@ -4130,7 +4088,6 @@ tasks: type: setup params: updates: - - {key: NPM_VERSION, value: '9'} - {key: VERSION, value: '5.0'} - {key: TOPOLOGY, value: server} - {key: AUTH, value: noauth} @@ -4148,7 +4105,6 @@ tasks: type: setup params: updates: - - {key: NPM_VERSION, value: '9'} - {key: VERSION, value: '5.0'} - {key: TOPOLOGY, value: replica_set} - {key: AUTH, value: noauth} @@ -4166,7 +4122,6 @@ tasks: type: setup params: updates: - - {key: NPM_VERSION, value: '9'} - {key: VERSION, value: '5.0'} - {key: TOPOLOGY, value: sharded_cluster} - {key: AUTH, value: noauth} @@ -4184,7 +4139,6 @@ tasks: type: setup params: updates: - - {key: NPM_VERSION, value: '9'} - {key: VERSION, value: '4.4'} - {key: TOPOLOGY, value: server} - {key: AUTH, value: noauth} @@ -4202,7 +4156,6 @@ tasks: type: setup params: updates: - - {key: NPM_VERSION, value: '9'} - {key: VERSION, value: '4.4'} - {key: TOPOLOGY, value: replica_set} - {key: AUTH, value: noauth} @@ -4220,7 +4173,6 @@ tasks: type: setup params: updates: - - {key: NPM_VERSION, value: '9'} - {key: VERSION, value: '4.4'} - {key: TOPOLOGY, value: sharded_cluster} - {key: AUTH, value: noauth} @@ -4238,7 +4190,6 @@ tasks: type: setup params: updates: - - {key: NPM_VERSION, value: '9'} - {key: VERSION, value: '4.2'} - {key: TOPOLOGY, value: server} - {key: AUTH, value: noauth} @@ -4256,7 +4207,6 @@ tasks: type: setup params: updates: - - {key: NPM_VERSION, value: '9'} - {key: VERSION, value: '4.2'} - {key: TOPOLOGY, value: replica_set} - {key: AUTH, value: noauth} @@ -4274,7 +4224,6 @@ tasks: type: setup params: updates: - - {key: NPM_VERSION, value: '9'} - {key: VERSION, value: '4.2'} - {key: TOPOLOGY, value: sharded_cluster} - {key: AUTH, value: noauth} @@ -4292,7 +4241,6 @@ tasks: type: setup params: updates: - - {key: NPM_VERSION, value: '9'} - {key: VERSION, value: '4.0'} - {key: TOPOLOGY, value: server} - {key: AUTH, value: noauth} @@ -4310,7 +4258,6 @@ tasks: type: setup params: updates: - - {key: NPM_VERSION, value: '9'} - {key: VERSION, value: '4.0'} - {key: TOPOLOGY, value: replica_set} - {key: AUTH, value: noauth} @@ -4328,7 +4275,6 @@ tasks: type: setup params: updates: - - {key: NPM_VERSION, value: '9'} - {key: VERSION, value: '4.0'} - {key: TOPOLOGY, value: sharded_cluster} - {key: AUTH, value: noauth} diff --git a/.evergreen/generate_evergreen_tasks.js b/.evergreen/generate_evergreen_tasks.js index ca11d5ff61..516e84644a 100644 --- a/.evergreen/generate_evergreen_tasks.js +++ b/.evergreen/generate_evergreen_tasks.js @@ -70,7 +70,7 @@ function makeTask({ mongoVersion, topology, tags = [], auth = 'auth' }) { name: `test-${mongoVersion}-${topology}${auth === 'noauth' ? '-noauth' : ''}`, tags: [mongoVersion, topology, ...tags], commands: [ - updateExpansions({ NPM_VERSION: 9, VERSION: mongoVersion, TOPOLOGY: topology, AUTH: auth }), + updateExpansions({ VERSION: mongoVersion, TOPOLOGY: topology, AUTH: auth }), { func: 'install dependencies' }, { func: 'bootstrap mongo-orchestration' }, { func: 'bootstrap kms servers' }, diff --git a/.evergreen/install-dependencies.sh b/.evergreen/install-dependencies.sh index 99b4d376d4..33b9958b88 100644 --- a/.evergreen/install-dependencies.sh +++ b/.evergreen/install-dependencies.sh @@ -7,18 +7,8 @@ set -o errexit # Exit the script with error if any of the commands fail ## a full nodejs version, in the format v..patch export NODE_LTS_VERSION=${NODE_LTS_VERSION:-16} # npm version can be defined in the environment for cases where we need to install -# a version lower than latest to support EOL Node versions. - -# If NODE_LTS_VERSION is numeric and less than 18, default to 9, if less than 20, default to 10. -# Do not override if it is already set. -if [[ "$NODE_LTS_VERSION" =~ ^[0-9]+$ && "$NODE_LTS_VERSION" -lt 18 ]]; then - export NPM_VERSION=${NPM_VERSION:-9} -elif [[ "$NODE_LTS_VERSION" =~ ^[0-9]+$ && "$NODE_LTS_VERSION" -lt 20 ]]; then - export NPM_VERSION=${NPM_VERSION:-10} -else - export NPM_VERSION=${NPM_VERSION:-latest} -fi - +# a version lower than latest to support EOL Node versions. When not provided will +# be handled by this script in drivers tools. source $DRIVERS_TOOLS/.evergreen/install-node.sh npm install "${NPM_OPTIONS}" diff --git a/.evergreen/prepare-shell.sh b/.evergreen/prepare-shell.sh index af8cd4a00e..c13315fbd6 100644 --- a/.evergreen/prepare-shell.sh +++ b/.evergreen/prepare-shell.sh @@ -32,7 +32,7 @@ export PATH="$MONGODB_BINARIES:$PATH" if [ ! -d "$DRIVERS_TOOLS" ]; then # Only clone driver tools if it does not exist - git clone --depth=1 "https://github.com/mongodb-labs/drivers-evergreen-tools.git" "${DRIVERS_TOOLS}" + git clone --depth=1 --branch NODE-6636 "https://github.com/mongodb-labs/drivers-evergreen-tools.git" "${DRIVERS_TOOLS}" fi echo "installed DRIVERS_TOOLS from commit $(git -C "${DRIVERS_TOOLS}" rev-parse HEAD)"