forked from dotnet/coreclr
-
Notifications
You must be signed in to change notification settings - Fork 1
/
azure-pipelines.yml
454 lines (418 loc) · 17.1 KB
/
azure-pipelines.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
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
variables:
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true
resources:
containers:
- container: ubuntu_1404_arm_cross_build_image
image: mcr.microsoft.com/dotnet-buildtools/prereqs:ubuntu-16.04-cross-14.04-23cacb0-20190528233931
- container: ubuntu_1604_arm64_cross_build_image
image: mcr.microsoft.com/dotnet-buildtools/prereqs:ubuntu-16.04-cross-arm64-cfdd435-20190520220848
- container: musl_x64_build_image
image: mcr.microsoft.com/dotnet-buildtools/prereqs:alpine-3.6-WithNode-cfdd435-20190521001804
- container: musl_arm64_build_image
image: mcr.microsoft.com/dotnet-buildtools/prereqs:ubuntu-16.04-cross-arm64-alpine-406629a-20190520220848
- container: centos7_x64_build_image
image: mcr.microsoft.com/dotnet-buildtools/prereqs:centos-7-3e800f1-20190501005343
- container: centos6_x64_build_image
image: mcr.microsoft.com/dotnet-buildtools/prereqs:centos-6-3e800f1-20190501005338
trigger:
- master
pr:
- master
jobs:
## The following is the matrix of test runs that we have. This is
## duplicated for each os/arch combination in platform-matrix.yml.
##
## Product build Test build Test run
## (Azure DevOps) (Azure DevOps) (helix)
##
## ###########################################################################################
##
## Debug
##
## Checked ----------> Pri0 -----------------> plain runtests
## |
## \---------> Pri1 -----------------> plain runtests
## | \----------------> jitstress
## | \----------------> gcstress
## | \----------------> runincontext
## | \----------------> maybe more (dynamically selected runtest modes)
## |
## \---------> Pri1 crossgen --------> plain runtests
## \-------> jitstress
## \-------> gcstress
## \-------> maybe more (dynamically selected runtest modes)
##
## Release ----------> Pri1 -----------------> plain runtests
## |
## \---------> Pri1 crossgen --------> plain runtests
##
##
## Each build or test job is defined in Azure DevOps, and will show
## up in the UI in the order in which they are defined here. The
## build and test build job matrix is defined statically, but
## queue-time inputs can be used to control whether a job executes
## (used to select which jobs run in ci vs for official builds), or
## to select test modes. This should eventually be used to enable
## requesting specific test runs from pull requests.
##
## Templates used to define jobs:
## Please update this if the factoring changes.
##
## This file defines the set of jobs in a platform-agnostic manner,
## using the platform-matrix.yml template. This will create one job
## for each platform from the passed-in jobTemplate (either a build
## job or a test job). The build-job.yml and test-job.yml templates
## use xplat-job.yml to handle some of the common logic for
## abstracting over platforms. Finally, xplat-job.yml uses the arcade
## base.yml job template, which sets up telemetry and signing support.
## azure-pipelines.yml -> platform-matrix.yml -------> build-job.yml -------> xplat-job.yml -> base.yml
## | (passed-in jobTemplate) | (arcade)
## \------> test-job.yml ------/
## \------> format-job.yml ----/
# TODO: simplify logic surrounding official build/ci. See
# https://github.com/Microsoft/azure-pipelines-yaml/pull/46 for more information
#
# Debug builds
#
- ${{ if eq(variables['System.TeamProject'], 'public') }}:
- template: eng/platform-matrix.yml
parameters:
jobTemplate: build-job.yml
buildConfig: debug
${{ if and(eq(variables['Build.Reason'], 'PullRequest'), eq(variables['Build.DefinitionName'], 'coreclr-ci')) }}:
platforms:
- Windows_NT_x64
- Windows_NT_x86
${{ if and(in(variables['Build.Reason'], 'IndividualCI', 'BatchedCI'), eq(variables['Build.DefinitionName'], 'coreclr-ci')) }}:
platforms:
- Linux_arm
- Linux_arm64
- Linux_musl_arm64
- Linux_musl_x64
- Linux_rhel6_x64
- Linux_x64
- OSX_x64
- Windows_NT_arm
- Windows_NT_arm64
#
# Checked builds
#
- ${{ if eq(variables['System.TeamProject'], 'public') }}:
- template: eng/platform-matrix.yml
parameters:
jobTemplate: build-job.yml
buildConfig: checked
${{ if and(eq(variables['Build.Reason'], 'PullRequest'), eq(variables['Build.DefinitionName'], 'coreclr-ci')) }}:
platforms:
- Linux_arm
- Linux_arm64
- Linux_musl_x64
- Linux_x64
- OSX_x64
- Windows_NT_arm
- Windows_NT_arm64
- Windows_NT_x64
- Windows_NT_x86
${{ if and(in(variables['Build.Reason'], 'IndividualCI', 'BatchedCI'), eq(variables['Build.DefinitionName'], 'coreclr-ci')) }}:
platformGroup: all
${{ if in(variables['Build.DefinitionName'], 'coreclr-outerloop', 'coreclr-outerloop-jitstress', 'coreclr-outerloop-jitstressregs', 'coreclr-outerloop-jitstress2-jitstressregs') }}:
platformGroup: all
${{ if eq(variables['Build.DefinitionName'], 'coreclr-outerloop-jitstress-isas-arm') }}:
platforms:
- Linux_arm64
- Windows_NT_arm64
${{ if eq(variables['Build.DefinitionName'], 'coreclr-outerloop-jitstress-isas-x86') }}:
platforms:
- Linux_x64
- OSX_x64
- Windows_NT_x64
- Windows_NT_x86
${{ if eq(variables['Build.DefinitionName'], 'coreclr-outerloop-jitstressregs-x86') }}:
platforms:
- Linux_x64
- Windows_NT_x64
- Windows_NT_x86
${{ if in(variables['Build.DefinitionName'], 'coreclr-outerloop-gcstress0x3-gcstress0xc', 'coreclr-outerloop-gcstress-extra', 'coreclr-outerloop-r2r-extra') }}:
platformGroup: gcstress
${{ if eq(variables['Build.DefinitionName'], 'coreclr-outerloop-r2r') }}:
platforms:
- Linux_arm
- Linux_arm64
- Linux_x64
- Windows_NT_x64
- Windows_NT_x86
${{ if in(variables['Build.DefinitionName'], 'coreclr-corefx', 'coreclr-corefx-jitstress', 'coreclr-corefx-jitstressregs', 'coreclr-corefx-jitstress2-jitstressregs') }}:
platforms:
- Linux_x64
- Windows_NT_x64
${{ if eq(variables['Build.DefinitionName'], 'coreclr-runincontext') }}:
platforms:
- Linux_x64
- Windows_NT_x64
- Windows_NT_x86
#
# Release builds
#
- ${{ if eq(variables['System.TeamProject'], 'public') }}:
- template: eng/platform-matrix.yml
parameters:
jobTemplate: build-job.yml
buildConfig: release
${{ if and(eq(variables['Build.Reason'], 'PullRequest'), eq(variables['Build.DefinitionName'], 'coreclr-ci')) }}:
platforms:
- Linux_arm64
- Linux_musl_x64
- Linux_rhel6_x64
- Windows_NT_arm
- Windows_NT_arm64
- Windows_NT_x64
${{ if and(in(variables['Build.Reason'], 'IndividualCI', 'BatchedCI'), eq(variables['Build.DefinitionName'], 'coreclr-ci')) }}:
platforms:
- Linux_arm
- Linux_musl_arm64
- Linux_x64
- OSX_x64
- Windows_NT_x86
- ${{ if and(eq(variables['System.TeamProject'], 'internal'), ne(variables['Build.Reason'], 'PullRequest')) }}:
- template: eng/platform-matrix.yml
parameters:
jobTemplate: build-job.yml
buildConfig: release
platformGroup: all
jobParameters:
# Publishing packages to blob feeds sometimes takes a long time
# due to waiting for an exclusive lock on the feed.
# See https://github.com/dotnet/arcade/blob/master/Documentation/CorePackages/AsyncPublishing.md
timeoutInMinutes: 120
#
# Checked test builds
#
# The test jobs that can be triggered by a PR, manually from ADO and that are scheduled
- ${{ if and(eq(variables['System.TeamProject'], 'public'), in(variables['Build.Reason'], 'PullRequest', 'Manual', 'Schedule')) }}:
- template: eng/platform-matrix.yml
parameters:
jobTemplate: test-job.yml
buildConfig: checked
${{ if and(eq(variables['Build.Reason'], 'PullRequest'), eq(variables['Build.DefinitionName'], 'coreclr-ci')) }}:
platforms:
- Linux_arm
- Linux_arm64
- Linux_musl_x64
- Linux_x64
- OSX_x64
- Windows_NT_arm
- Windows_NT_arm64
- Windows_NT_x64
- Windows_NT_x86
helixQueueGroup: pr
${{ if in(variables['Build.DefinitionName'], 'coreclr-outerloop', 'coreclr-outerloop-jitstress', 'coreclr-outerloop-jitstressregs', 'coreclr-outerloop-jitstress2-jitstressregs') }}:
platformGroup: all
helixQueueGroup: all
${{ if eq(variables['Build.DefinitionName'], 'coreclr-outerloop-jitstress-isas-arm') }}:
platforms:
- Linux_arm64
- Windows_NT_arm64
helixQueueGroup: all
${{ if eq(variables['Build.DefinitionName'], 'coreclr-outerloop-jitstress-isas-x86') }}:
platforms:
- Linux_x64
- OSX_x64
- Windows_NT_x64
- Windows_NT_x86
helixQueueGroup: all
${{ if eq(variables['Build.DefinitionName'], 'coreclr-outerloop-jitstressregs-x86') }}:
platforms:
- Linux_x64
- Windows_NT_x64
- Windows_NT_x86
helixQueueGroup: all
${{ if in(variables['Build.DefinitionName'], 'coreclr-outerloop-gcstress0x3-gcstress0xc', 'coreclr-outerloop-gcstress-extra') }}:
platformGroup: gcstress
helixQueueGroup: all
${{ if eq(variables['Build.DefinitionName'], 'coreclr-runincontext') }}:
platforms:
- Linux_x64
- Windows_NT_x64
- Windows_NT_x86
helixQueueGroup: all
jobParameters:
${{ if eq(variables['Build.DefinitionName'], 'coreclr-ci') }}:
testGroup: innerloop
${{ if eq(variables['Build.DefinitionName'], 'coreclr-outerloop') }}:
testGroup: outerloop
${{ if eq(variables['Build.DefinitionName'], 'coreclr-outerloop-jitstress') }}:
testGroup: jitstress
${{ if eq(variables['Build.DefinitionName'], 'coreclr-outerloop-jitstress-isas-arm') }}:
testGroup: jitstress-isas-arm
${{ if eq(variables['Build.DefinitionName'], 'coreclr-outerloop-jitstress-isas-x86') }}:
testGroup: jitstress-isas-x86
${{ if eq(variables['Build.DefinitionName'], 'coreclr-outerloop-jitstressregs-x86') }}:
testGroup: jitstressregs-x86
${{ if eq(variables['Build.DefinitionName'], 'coreclr-outerloop-jitstressregs') }}:
testGroup: jitstressregs
${{ if eq(variables['Build.DefinitionName'], 'coreclr-outerloop-jitstress2-jitstressregs') }}:
testGroup: jitstress2-jitstressregs
${{ if eq(variables['Build.DefinitionName'], 'coreclr-outerloop-gcstress0x3-gcstress0xc') }}:
testGroup: gcstress0x3-gcstress0xc
${{ if eq(variables['Build.DefinitionName'], 'coreclr-outerloop-gcstress-extra') }}:
testGroup: gcstress-extra
${{ if eq(variables['Build.DefinitionName'], 'coreclr-runincontext') }}:
testGroup: outerloop
runInUnloadableContext: true
displayNameArgs: RunInContext
# ReadyToRun test jobs that are triggered by default from a PR.
- ${{ if eq(variables['System.TeamProject'], 'public') }}:
- template: eng/platform-matrix.yml
parameters:
jobTemplate: test-job.yml
buildConfig: checked
${{ if and(eq(variables['Build.Reason'], 'PullRequest'), eq(variables['Build.DefinitionName'], 'coreclr-ci')) }}:
platforms:
- Linux_x64
- OSX_x64
- Windows_NT_x64
- Windows_NT_x86
helixQueueGroup: pr
${{ if eq(variables['Build.DefinitionName'], 'coreclr-outerloop-r2r') }}:
platforms:
- Linux_arm
- Linux_arm64
- Linux_x64
- Windows_NT_x64
- Windows_NT_x86
helixQueueGroup: all
${{ if eq(variables['Build.DefinitionName'], 'coreclr-outerloop-r2r-extra') }}:
platformGroup: gcstress # r2r-extra testGroup runs gcstress15 scenario
helixQueueGroup: all
jobParameters:
${{ if eq(variables['Build.DefinitionName'], 'coreclr-ci') }}:
testGroup: innerloop
${{ if eq(variables['Build.DefinitionName'], 'coreclr-outerloop-r2r') }}:
testGroup: outerloop
${{ if eq(variables['Build.DefinitionName'], 'coreclr-outerloop-r2r-extra') }}:
testGroup: r2r-extra
readyToRun: true
displayNameArgs: R2R
#
# CoreFX test runs against CoreCLR
#
- ${{ if eq(variables['System.TeamProject'], 'public') }}:
- template: eng/platform-matrix.yml
parameters:
jobTemplate: test-job.yml
buildConfig: checked
${{ if and(eq(variables['Build.Reason'], 'PullRequest'), eq(variables['Build.DefinitionName'], 'coreclr-ci')) }}:
platforms:
- Linux_x64
- Windows_NT_x64
${{ if in(variables['Build.DefinitionName'], 'coreclr-corefx', 'coreclr-corefx-jitstress', 'coreclr-corefx-jitstressregs', 'coreclr-corefx-jitstress2-jitstressregs') }}:
platforms:
- Linux_x64
- Windows_NT_x64
# We only want to run corefx testing on the minimum set of queues, no matter the build reason.
helixQueueGroup: pr
jobParameters:
${{ if eq(variables['Build.DefinitionName'], 'coreclr-ci') }}:
testGroup: innerloop
${{ if eq(variables['Build.DefinitionName'], 'coreclr-corefx') }}:
testGroup: outerloop
${{ if eq(variables['Build.DefinitionName'], 'coreclr-corefx-jitstress') }}:
testGroup: jitstress
${{ if eq(variables['Build.DefinitionName'], 'coreclr-corefx-jitstressregs') }}:
testGroup: jitstressregs
${{ if eq(variables['Build.DefinitionName'], 'coreclr-corefx-jitstress2-jitstressregs') }}:
testGroup: jitstress2-jitstressregs
corefxTests: true
displayNameArgs: CoreFX
# CI (merge) jobs
- ${{ if and(eq(variables['System.TeamProject'], 'public'), in(variables['Build.Reason'], 'IndividualCI', 'BatchedCI'), eq(variables['Build.DefinitionName'], 'coreclr-ci')) }}:
- template: eng/platform-matrix.yml
parameters:
jobTemplate: test-job.yml
buildConfig: checked
platformGroup: all
helixQueueGroup: ci
jobParameters:
testGroup: outerloop
- template: eng/platform-matrix.yml
parameters:
jobTemplate: test-job.yml
buildConfig: checked
platforms:
- Linux_arm64
- Linux_musl_x64
- Linux_musl_arm64
- Linux_rhel6_x64
- Linux_x64
- OSX_x64
- Windows_NT_x64
- Windows_NT_x86
- Windows_NT_arm
- Windows_NT_arm64
helixQueueGroup: ci
jobParameters:
testGroup: outerloop
readyToRun: true
displayNameArgs: R2R
#
# Release test builds
#
# Pull-Request test
- ${{ if and(eq(variables['System.TeamProject'], 'public'), eq(variables['Build.Reason'], 'PullRequest'), eq(variables['Build.DefinitionName'], 'coreclr-ci')) }}:
- template: eng/platform-matrix.yml
parameters:
jobTemplate: test-job.yml
buildConfig: release
platforms:
- Linux_musl_x64
helixQueueGroup: pr
jobParameters:
testGroup: innerloop
# Official test
- ${{ if and(eq(variables['System.TeamProject'], 'internal'), ne(variables['Build.Reason'], 'PullRequest')) }}:
- template: eng/platform-matrix.yml
parameters:
jobTemplate: test-job.yml
buildConfig: release
platformGroup: all
helixQueueGroup: all
jobParameters:
testGroup: outerloop
- template: eng/platform-matrix.yml
parameters:
jobTemplate: test-job.yml
buildConfig: release
platformGroup: all
helixQueueGroup: all
jobParameters:
testGroup: outerloop
readyToRun: true
displayNameArgs: R2R
# Format
- ${{ if and(eq(variables['System.TeamProject'], 'public'), in(variables['Build.Reason'], 'PullRequest', 'IndividualCI', 'BatchedCI'), eq(variables['Build.DefinitionName'], 'coreclr-ci')) }}:
- template: eng/platform-matrix.yml
parameters:
jobTemplate: format-job.yml
platforms:
- Linux_x64
- Windows_NT_x64
# Publish build information to Build Assets Registry
# This job gathers build assets from the pipeline (from each official
# product build job), and publishes them to the build assets
# registry. Its dependencies should be updated to include all of the
# official builds if we add more platform/arch combinations.
- ${{ if and(eq(variables['System.TeamProject'], 'internal'), ne(variables['Build.Reason'], 'PullRequest')) }}:
- template: /eng/finalize-publish.yml
parameters:
dependsOn:
- build_Linux_arm_release
- build_Linux_arm64_release
- build_Linux_musl_x64_release
- build_Linux_musl_arm64_release
- build_Linux_rhel6_x64_release
- build_Linux_x64_release
- build_OSX_x64_release
- build_Windows_NT_x64_release
- build_Windows_NT_x86_release
- build_Windows_NT_arm_release
- build_Windows_NT_arm64_release