Skip to content

Commit 6900ac5

Browse files
authored
chore(ci): update ubuntu machines to 20.04 COMPASS-5637 (#3962)
* chore(ci): update ubuntu machines to 20.04 * chore(ci): run mongodb 4.0 4.2 enterprise tests on ubuntu 18 * chore(ci): keep packaging on ubuntu 16
1 parent 6b2f3ad commit 6900ac5

File tree

7 files changed

+107
-23
lines changed

7 files changed

+107
-23
lines changed

.evergreen/buildvariants.in.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
11
buildvariants:
22
- name: coverage
33
display_name: E2E Coverage
4-
run_on: ubuntu1604-large
4+
run_on: ubuntu2004-large
55
tasks:
66
- name: e2e-coverage
77

88
- name: ubuntu_publish
99
display_name: Publish Artifacts
10-
run_on: ubuntu1604-large
10+
run_on: ubuntu2004-large
1111
tasks:
1212
- name: publish
1313
- name: publish-packages-next
1414

1515
- name: ubuntu_connectivity_tests
1616
display_name: Connectivity Tests
17-
run_on: ubuntu1604-large
17+
run_on: ubuntu2004-large
1818
tasks:
1919
- name: test-connectivity
2020

.evergreen/buildvariants.yml

Lines changed: 36 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
11
buildvariants:
22
- name: coverage
33
display_name: E2E Coverage
4-
run_on: ubuntu1604-large
4+
run_on: ubuntu2004-large
55
tasks:
66
- name: e2e-coverage
77

88
- name: ubuntu_publish
99
display_name: Publish Artifacts
10-
run_on: ubuntu1604-large
10+
run_on: ubuntu2004-large
1111
tasks:
1212
- name: publish
1313
- name: publish-packages-next
1414

1515
- name: ubuntu_connectivity_tests
1616
display_name: Connectivity Tests
17-
run_on: ubuntu1604-large
17+
run_on: ubuntu2004-large
1818
tasks:
1919
- name: test-connectivity
2020

@@ -25,8 +25,8 @@ buildvariants:
2525
- name: test-csfle
2626

2727
- name: ubuntu
28-
display_name: Ubuntu 16.04 (Test and Package)
29-
run_on: ubuntu1604-large
28+
display_name: Ubuntu 20.04 (Test and Package)
29+
run_on: ubuntu2004-large
3030
tasks:
3131
- name: check
3232

@@ -35,21 +35,26 @@ buildvariants:
3535
- name: test-electron
3636

3737
- name: package-compass
38+
run_on: ubuntu1604-large
3839

3940
- name: package-compass-readonly
41+
run_on: ubuntu1604-large
4042

4143
- name: package-compass-isolated
44+
run_on: ubuntu1604-large
4245

4346
- name: test-packaged-app-40x-community
4447
depends_on: package-compass
4548

4649
- name: test-packaged-app-40x-enterprise
50+
run_on: ubuntu1804-large
4751
depends_on: package-compass
4852

4953
- name: test-packaged-app-42x-community
5054
depends_on: package-compass
5155

5256
- name: test-packaged-app-42x-enterprise
57+
run_on: ubuntu1804-large
5358
depends_on: package-compass
5459

5560
- name: test-packaged-app-44x-community
@@ -58,6 +63,18 @@ buildvariants:
5863
- name: test-packaged-app-44x-enterprise
5964
depends_on: package-compass
6065

66+
- name: test-packaged-app-5x-community
67+
depends_on: package-compass
68+
69+
- name: test-packaged-app-5x-enterprise
70+
depends_on: package-compass
71+
72+
- name: test-packaged-app-60x-community
73+
depends_on: package-compass
74+
75+
- name: test-packaged-app-60x-enterprise
76+
depends_on: package-compass
77+
6178
- name: windows
6279
display_name: Windows 10 (Test and Package)
6380
run_on: windows-vsCurrent-large
@@ -98,6 +115,9 @@ buildvariants:
98115
- name: test-packaged-app-5x-enterprise
99116
depends_on: package-compass
100117

118+
- name: test-packaged-app-60x-community
119+
depends_on: package-compass
120+
101121
- name: test-packaged-app-60x-enterprise
102122
depends_on: package-compass
103123

@@ -141,6 +161,9 @@ buildvariants:
141161
- name: test-packaged-app-5x-enterprise
142162
depends_on: package-compass
143163

164+
- name: test-packaged-app-60x-community
165+
depends_on: package-compass
166+
144167
- name: test-packaged-app-60x-enterprise
145168
depends_on: package-compass
146169

@@ -161,6 +184,10 @@ buildvariants:
161184

162185
- name: package-compass-isolated
163186

187+
- name: test-packaged-app-60x-community
188+
run_on: macos-1100-gui
189+
depends_on: package-compass
190+
164191
- name: test-packaged-app-60x-enterprise
165192
run_on: macos-1100-gui
166193
depends_on: package-compass
@@ -182,6 +209,10 @@ buildvariants:
182209

183210
- name: package-compass-isolated
184211

212+
- name: test-packaged-app-60x-community
213+
run_on: macos-1100-arm64-gui
214+
depends_on: package-compass
215+
185216
- name: test-packaged-app-60x-enterprise
186217
run_on: macos-1100-arm64-gui
187218
depends_on: package-compass

.evergreen/config.json

Lines changed: 34 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"variants": {
33
"run_on": [
4-
"ubuntu1604-large",
4+
"ubuntu2004-large",
55
"windows-vsCurrent-large",
66
"rhel76-large",
77
["macos-1100", { "gui": "macos-1100-gui" }],
@@ -21,15 +21,25 @@
2121
"package": [
2222
{
2323
"name": "compass",
24-
"vars": { "compass_distribution": "compass" }
24+
"vars": { "compass_distribution": "compass" },
25+
"//": "We are explicitly packaging on the EOL version of Ubuntu so that Compass (or rather compiled native dependencies) works on Ubuntu versions starting from this versions",
26+
"run_on_override": {
27+
"ubuntu2004-large": "ubuntu1604-large"
28+
}
2529
},
2630
{
2731
"name": "compass-readonly",
28-
"vars": { "compass_distribution": "compass-readonly" }
32+
"vars": { "compass_distribution": "compass-readonly" },
33+
"run_on_override": {
34+
"ubuntu2004-large": "ubuntu1604-large"
35+
}
2936
},
3037
{
3138
"name": "compass-isolated",
32-
"vars": { "compass_distribution": "compass-isolated" }
39+
"vars": { "compass_distribution": "compass-isolated" },
40+
"run_on_override": {
41+
"ubuntu2004-large": "ubuntu1604-large"
42+
}
3343
}
3444
],
3545
"test-packaged-app": [
@@ -46,7 +56,11 @@
4656
"mongodb_version": "4.0.x",
4757
"mongodb_use_enterprise": "yes"
4858
},
49-
"skip_on": ["macos-1100", "macos-1100-arm64"]
59+
"skip_on": ["macos-1100", "macos-1100-arm64"],
60+
"//": "MongoDB 4.0 / 4.2 Enterprise doesn't work on Ubuntu 20.04 without additional dependencies installed, it's easier to use an older machine than install missing dependencies as machines we are using are stateful",
61+
"run_on_override": {
62+
"ubuntu2004-large": "ubuntu1804-large"
63+
}
5064
},
5165
{
5266
"name": "42x-community",
@@ -61,7 +75,10 @@
6175
"mongodb_version": "4.2.x",
6276
"mongodb_use_enterprise": "yes"
6377
},
64-
"skip_on": ["macos-1100", "macos-1100-arm64"]
78+
"skip_on": ["macos-1100", "macos-1100-arm64"],
79+
"run_on_override": {
80+
"ubuntu2004-large": "ubuntu1804-large"
81+
}
6582
},
6683
{
6784
"name": "44x-community",
@@ -83,30 +100,35 @@
83100
"vars": {
84101
"mongodb_version": "5.x.x"
85102
},
86-
"skip_on": ["macos-1100", "macos-1100-arm64", "ubuntu1604-large"]
103+
"skip_on": ["macos-1100", "macos-1100-arm64"]
87104
},
88105
{
89106
"name": "5x-enterprise",
90107
"vars": {
91108
"mongodb_version": "5.x.x",
92109
"mongodb_use_enterprise": "yes"
93110
},
94-
"skip_on": ["macos-1100", "macos-1100-arm64", "ubuntu1604-large"]
111+
"skip_on": ["macos-1100", "macos-1100-arm64"]
112+
},
113+
{
114+
"name": "60x-community",
115+
"vars": {
116+
"mongodb_version": "6.x.x"
117+
}
95118
},
96119
{
97120
"name": "60x-enterprise",
98121
"vars": {
99122
"mongodb_version": "6.x.x",
100123
"mongodb_use_enterprise": "yes"
101-
},
102-
"skip_on": ["ubuntu1604-large"]
124+
}
103125
}
104126
]
105127
}
106128
},
107129
"run_on_alias": {
108130
"short": {
109-
"ubuntu1604-large": "ubuntu",
131+
"ubuntu2004-large": "ubuntu",
110132
"windows-vsCurrent-large": "windows",
111133
"rhel76-large": "rhel",
112134
"macos-1100": "macos",
@@ -115,7 +137,7 @@
115137
"macos-1100-arm64-gui": "macos-gui-arm"
116138
},
117139
"long": {
118-
"ubuntu1604-large": "Ubuntu 16.04",
140+
"ubuntu2004-large": "Ubuntu 20.04",
119141
"windows-vsCurrent-large": "Windows 10",
120142
"rhel76-large": "RHEL 7.6",
121143
"macos-1100": "MacOS x64 11.00",

.evergreen/print-compass-env.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22

33
set -e
44

5-
export MONGODB_DEFAULT_VERSION=4.4.x
5+
export MONGODB_DEFAULT_VERSION=6.x.x
6+
67
if [[ $OSTYPE == "cygwin" ]]; then
78
export PLATFORM='win32'
89
export IS_WINDOWS=true
@@ -14,7 +15,6 @@ elif [[ $(uname) == Darwin ]]; then
1415
export ARCH=x64
1516
else
1617
export ARCH=arm64
17-
export MONGODB_DEFAULT_VERSION=6.x.x
1818
fi
1919
else
2020
export PLATFORM='linux'

.evergreen/tasks.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -305,6 +305,26 @@ tasks:
305305
compass_distribution: compass
306306
debug: 'compass-e2e-tests*,electron*,hadron*,mongo*'
307307

308+
- name: test-packaged-app-60x-community
309+
tags: ['required-for-publish', 'run-on-pr']
310+
commands:
311+
- func: prepare
312+
- func: install
313+
- func: bootstrap
314+
vars:
315+
scope: 'compass-e2e-tests'
316+
- func: apply-compass-target-expansion
317+
vars:
318+
compass_distribution: compass
319+
- func: get-packaged-app
320+
vars:
321+
compass_distribution: compass
322+
- func: test-packaged-app
323+
vars:
324+
mongodb_version: '6.x.x'
325+
compass_distribution: compass
326+
debug: 'compass-e2e-tests*,electron*,hadron*,mongo*'
327+
308328
- name: test-packaged-app-60x-enterprise
309329
tags: ['required-for-publish', 'run-on-pr']
310330
commands:

.evergreen/template-yml.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ function template(input) {
3535
function generateBuildVariantTask(
3636
taskName,
3737
taskOptions,
38+
variantOptions,
3839
defaultRunOn,
3940
runOnOptions
4041
) {
@@ -46,6 +47,9 @@ function generateBuildVariantTask(
4647
if (taskOptions.gui && guiMachine !== defaultRunOn) {
4748
task.run_on = guiMachine;
4849
}
50+
if (variantOptions.run_on_override?.[task.run_on ?? defaultRunOn]) {
51+
task.run_on = variantOptions.run_on_override[task.run_on ?? defaultRunOn];
52+
}
4953
return task;
5054
}
5155

@@ -79,6 +83,7 @@ function generateBuildVariants() {
7983
return generateBuildVariantTask(
8084
`${taskName}-${variantOptions.name}`,
8185
taskOptions,
86+
variantOptions,
8287
runOnName,
8388
runOnOptions
8489
);
@@ -88,6 +93,7 @@ function generateBuildVariants() {
8893
return generateBuildVariantTask(
8994
taskName,
9095
taskOptions,
96+
{},
9197
runOnName,
9298
runOnOptions
9399
);

packages/compass-e2e-tests/tests/logging.test.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -366,7 +366,12 @@ describe('Logging and Telemetry integration', function () {
366366

367367
it('does not contain warnings about missing optional dependencies', function () {
368368
const ids = logs.map(({ id }) => id);
369-
expect(ids).not.to.contain(1_000_000_041);
369+
expect(ids).not.to.contain(
370+
1_000_000_041,
371+
`Expected log to not contain warnings about missing dependencies, but got ${JSON.stringify(
372+
logs.find((log) => log.id === 1_000_000_041)
373+
)}`
374+
);
370375
});
371376
});
372377
});

0 commit comments

Comments
 (0)