-
Notifications
You must be signed in to change notification settings - Fork 255
/
Copy pathconfig.yml
323 lines (314 loc) · 7.98 KB
/
config.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
# Run previous commits to pinpoint a failure's origin.
stepback: true
# Mark failures other than test failures with a purple box.
command_type: system
# Limit maximum test running time.
exec_timeout_secs: 900 # 15 minutes
# What to do when evergreen hits the timeout
timeout:
- command: shell.exec
params:
script: |
ls -la
functions:
fetch source:
- command: git.get_project
params:
directory: src
- command: subprocess.exec
params:
working_dir: src
binary: bash
add_expansions_to_env: true
args:
- '.evergreen/prepare-shell.sh'
- command: expansions.update
params:
file: src/expansion.yml
install dependencies:
- command: subprocess.exec
type: setup
params:
working_dir: src
binary: bash
add_expansions_to_env: true
args:
- .evergreen/install-dependencies.sh
run tests:
- command: subprocess.exec
type: test
params:
working_dir: src
add_expansions_to_env: true
binary: bash
args:
- .evergreen/run-tests.sh
run checks:
- command: subprocess.exec
type: test
params:
working_dir: src
add_expansions_to_env: true
binary: bash
args:
- .evergreen/run-checks.sh
run typescript:
- command: subprocess.exec
type: test
params:
working_dir: src
timeout_secs: 60
add_expansions_to_env: true
env:
PROJECT_DIRECTORY: ${PROJECT_DIRECTORY}
TS_VERSION: "${TS_VERSION}"
TRY_COMPILING_LIBRARY: "${TRY_COMPILING_LIBRARY}"
binary: bash
args:
- ${PROJECT_DIRECTORY}/.evergreen/run-typescript.sh
run eslint plugin tests:
- command: subprocess.exec
type: test
params:
working_dir: src
timeout_secs: 60
add_expansions_to_env: true
env:
PROJECT_DIRECTORY: ${PROJECT_DIRECTORY}
binary: bash
args:
- .evergreen/run-eslint-plugin-test.sh
run bundling:
- command: subprocess.exec
type: test
params:
working_dir: src
binary: bash
add_expansions_to_env: true
env:
PROJECT_DIRECTORY: ${PROJECT_DIRECTORY}
args:
- .evergreen/run-bundling-test.sh
run granular benchmarks:
- command: subprocess.exec
type: test
params:
working_dir: src
binary: bash
add_expansions_to_env: true
args:
- .evergreen/run-granular-benchmarks.sh
run custom benchmarks:
- command: subprocess.exec
type: test
params:
working_dir: src
binary: bash
add_expansions_to_env: true
args:
- .evergreen/run-custom-benchmarks.sh
run spec benchmarks:
- command: subprocess.exec
type: test
params:
working_dir: src
binary: bash
add_expansions_to_env: true
args:
- .evergreen/run-spec-benchmarks.sh
tasks:
- name: node-tests-v16
tags: ["node"]
commands:
- func: fetch source
vars:
NODE_LTS_VERSION: 16
NPM_VERSION: 9
- func: install dependencies
vars:
NODE_LTS_VERSION: 16
NPM_VERSION: 9
- func: run tests
vars:
TEST_TARGET: node
- name: node-tests-v18
tags: ["node"]
commands:
- func: fetch source
vars:
NODE_LTS_VERSION: 18
NPM_VERSION: 10
- func: install dependencies
- func: run tests
vars:
TEST_TARGET: node
- name: node-tests-v20
tags: ["node"]
commands:
- func: fetch source
vars:
NODE_LTS_VERSION: 20
- func: install dependencies
- func: run tests
- name: node-tests-v22
tags: ["node"]
commands:
- func: fetch source
vars:
NODE_LTS_VERSION: 22
- func: install dependencies
- func: run tests
- name: node-tests-latest
tags: ["node"]
commands:
- func: fetch source
vars:
NODE_LTS_VERSION: latest
- func: install dependencies
- func: run tests
vars:
TEST_TARGET: node
- name: web-tests
tags: ["web"]
commands:
- func: fetch source
vars:
NODE_LTS_VERSION: 22
- func: install dependencies
- func: run tests
vars:
TEST_TARGET: web
- name: bundling-tests
commands:
- func: fetch source
vars:
NODE_LTS_VERSION: 22
- func: install dependencies
- func: run bundling
- name: no-bigint-web-tests
tags: ["no-bigint", "web"]
commands:
- func: fetch source
vars:
NODE_LTS_VERSION: 22
- func: install dependencies
- func: run tests
vars:
TEST_TARGET: web
NO_BIGINT: true
- name: run-checks
tags:
- run-checks
commands:
- func: fetch source
vars:
NODE_LTS_VERSION: 22
- func: install dependencies
- func: run checks
- name: check-typescript-oldest
commands:
- func: fetch source
vars:
NODE_LTS_VERSION: 22
- func: install dependencies
- func: "run typescript"
vars:
TS_VERSION: "4.0.2"
TRY_COMPILING_LIBRARY: "false"
- name: check-typescript-current
commands:
- func: fetch source
vars:
NODE_LTS_VERSION: 22
- func: install dependencies
- func: "run typescript"
vars:
TS_VERSION: ""
TRY_COMPILING_LIBRARY: "true"
- name: check-typescript-next
commands:
- func: fetch source
vars:
NODE_LTS_VERSION: 22
- func: install dependencies
- func: "run typescript"
vars:
TS_VERSION: "next"
TRY_COMPILING_LIBRARY: "false"
- name: run-granular-benchmarks
commands:
- func: fetch source
vars:
# This needs to stay pinned at Node v18.16.0 for consistency across perf runs.
NODE_LTS_VERSION: v18.16.0
NPM_VERSION: 9
- func: install dependencies
vars:
NPM_VERSION: 9
- func: run granular benchmarks
vars:
WARMUP: 1000
ITERATIONS: 1000
- command: perf.send
params:
file: src/test/bench/etc/resultsCollectedMeans.json
- name: run-custom-benchmarks
commands:
- func: fetch source
vars:
# This needs to stay pinned at Node v18.16.0 for consistency across perf runs.
NODE_LTS_VERSION: v18.16.0
NPM_VERSION: 9
- func: install dependencies
vars:
NPM_VERSION: 9
- func: run custom benchmarks
- command: perf.send
params:
file: src/customBenchmarkResults.json
- name: run-spec-benchmarks
commands:
- func: fetch source
vars:
# This needs to stay pinned at Node v18.16.0 for consistency across perf runs.
NODE_LTS_VERSION: v18.16.0
NPM_VERSION: 9
- func: install dependencies
vars:
NPM_VERSION: 9
- func: run spec benchmarks
- command: perf.send
params:
file: src/bsonBench.json
- name: check-eslint-plugin
commands:
- func: fetch source
vars:
NODE_LTS_VERSION: 22
- func: install dependencies
- func: run eslint plugin tests
buildvariants:
- name: linux
display_name: RHEL 8.0
run_on: rhel80-small
tasks: [".node", ".web", "check-eslint-plugin"]
- name: linux-zseries
display_name: RHEL 9.0 zSeries
run_on: rhel9-zseries-small
tasks: [".node", ".web"]
- name: lint
display_name: lint
run_on: rhel80-small
tasks:
- run-checks
- check-typescript-oldest
- check-typescript-current
- check-typescript-next
- bundling-tests
- name: perf
display_name: RHEL 9.0 perf
run_on: rhel90-dbx-perf-large
tasks:
- run-granular-benchmarks
- run-spec-benchmarks
- run-custom-benchmarks