Skip to content

Commit

Permalink
ci(NODE-5313): change windows hosts to vsCurrent (#3690)
Browse files Browse the repository at this point in the history
  • Loading branch information
nbbeeken authored May 30, 2023
1 parent 8fb0611 commit 261199f
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 22 deletions.
10 changes: 9 additions & 1 deletion .evergreen/ci_matrix_constants.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ const AWS_AUTH_VERSIONS = ['latest', '6.0', '5.0', '4.4'];
const TLS_VERSIONS = ['latest', '6.0', '5.0', '4.4', '4.2'];

const DEFAULT_OS = 'rhel80-large';
const WINDOWS_OS = 'windows-vsCurrent-large';
const MACOS_OS = 'macos-1100';
const UBUNTU_OS = 'ubuntu1804-large';
const DEBIAN_OS = 'debian11-small';

module.exports = {
MONGODB_VERSIONS,
Expand All @@ -26,5 +30,9 @@ module.exports = {
TOPOLOGIES,
AWS_AUTH_VERSIONS,
TLS_VERSIONS,
DEFAULT_OS
DEFAULT_OS,
WINDOWS_OS,
MACOS_OS,
UBUNTU_OS,
DEBIAN_OS
};
24 changes: 12 additions & 12 deletions .evergreen/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3407,9 +3407,9 @@ buildvariants:
- test-tls-support-5.0
- test-tls-support-4.4
- test-tls-support-4.2
- name: windows-64-vs2019-fermium
display_name: Windows (VS2019) Node14
run_on: windows-64-vs2019-large
- name: windows-vsCurrent-large-fermium
display_name: Windows Node14
run_on: windows-vsCurrent-large
expansions:
NODE_LTS_VERSION: 14
tasks:
Expand Down Expand Up @@ -3451,9 +3451,9 @@ buildvariants:
- test-tls-support-5.0
- test-tls-support-4.4
- test-tls-support-4.2
- name: windows-64-vs2019-gallium
display_name: Windows (VS2019) Node16
run_on: windows-64-vs2019-large
- name: windows-vsCurrent-large-gallium
display_name: Windows Node16
run_on: windows-vsCurrent-large
expansions:
NODE_LTS_VERSION: 16
tasks:
Expand Down Expand Up @@ -3493,9 +3493,9 @@ buildvariants:
- test-tls-support-5.0
- test-tls-support-4.4
- test-tls-support-4.2
- name: windows-64-vs2019-hydrogen
display_name: Windows (VS2019) Node18
run_on: windows-64-vs2019-large
- name: windows-vsCurrent-large-hydrogen
display_name: Windows Node18
run_on: windows-vsCurrent-large
expansions:
NODE_LTS_VERSION: 18
tasks:
Expand Down Expand Up @@ -3535,9 +3535,9 @@ buildvariants:
- test-tls-support-5.0
- test-tls-support-4.4
- test-tls-support-4.2
- name: windows-64-vs2019-Node20
display_name: Windows (VS2019) Node20
run_on: windows-64-vs2019-large
- name: windows-vsCurrent-large-Node20
display_name: Windows Node20
run_on: windows-vsCurrent-large
expansions:
NODE_LTS_VERSION: 20
tasks:
Expand Down
22 changes: 13 additions & 9 deletions .evergreen/generate_evergreen_tasks.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,19 +11,23 @@ const {
TOPOLOGIES,
AWS_AUTH_VERSIONS,
TLS_VERSIONS,
DEFAULT_OS
DEFAULT_OS,
WINDOWS_OS,
MACOS_OS,
UBUNTU_OS,
DEBIAN_OS
} = require('./ci_matrix_constants');

const OPERATING_SYSTEMS = [
{
name: 'rhel80-large',
name: DEFAULT_OS,
display_name: 'rhel8',
run_on: DEFAULT_OS
},
{
name: 'windows-64-vs2019',
display_name: 'Windows (VS2019)',
run_on: 'windows-64-vs2019-large',
name: WINDOWS_OS,
display_name: 'Windows',
run_on: WINDOWS_OS,
clientEncryption: false // TODO(NODE-3401): Unskip when Windows no longer fails to launch mongocryptd occasionally
}
].map(osConfig => ({
Expand Down Expand Up @@ -421,11 +425,11 @@ for (const {
}

BUILD_VARIANTS.push({
name: 'macos-1100',
name: MACOS_OS,
display_name: `MacOS 11 Node${
versions.find(version => version.versionNumber === LATEST_LTS).versionNumber
}`,
run_on: 'macos-1100',
run_on: MACOS_OS,
expansions: {
NODE_LTS_VERSION: LATEST_LTS,
CLIENT_ENCRYPTION: true
Expand Down Expand Up @@ -545,15 +549,15 @@ BUILD_VARIANTS.push({
BUILD_VARIANTS.push({
name: 'mongosh_integration_tests',
display_name: 'mongosh integration tests',
run_on: 'ubuntu1804-large',
run_on: UBUNTU_OS,
tasks: mongoshTasks.map(({ name }) => name)
});

// special case for MONGODB-AWS authentication
BUILD_VARIANTS.push({
name: 'ubuntu1804-test-mongodb-aws',
display_name: 'MONGODB-AWS Auth test',
run_on: 'ubuntu1804-large',
run_on: UBUNTU_OS,
expansions: {
NODE_LTS_VERSION: LOWEST_LTS
},
Expand Down

0 comments on commit 261199f

Please sign in to comment.