Debian Codegraph @

testing/web-platform/tests/tools/ci/tc/tasks/test.yml

raw
1 components:
2 wpt-base:
3 provisionerId: proj-wpt
4 workerType: ci
5 schedulerId: taskcluster-github
6 deadline: "24 hours"
7 image: ghcr.io/web-platform-tests/wpt:2
8 maxRunTime: 7200
9 artifacts:
10 public/results:
11 path: /home/test/artifacts
12 type: directory
13 extra:
14 github:
15 customCheckRun:
16 textArtifactName: public/results/checkrun.md
17
18 wpt-testharness:
19 chunks: 16
20 maxRunTime: 10800
21 vars:
22 test-type: testharness
23
24 wpt-reftest:
25 chunks: 6
26 vars:
27 test-type: reftest
28
29 wpt-print-reftest:
30 chunks: 1
31 vars:
32 test-type: print-reftest
33
34 wpt-wdspec:
35 chunks: 2
36 vars:
37 test-type: wdspec
38
39 wpt-crashtest:
40 chunks: 1
41 vars:
42 test-type: crashtest
43
44 run-options:
45 options:
46 xvfb: true
47 oom-killer: true
48 hosts: true
49 install-certificates: true
50
51 wpt-run:
52 name: wpt-${vars.browser}-${vars.channel}-${vars.suite}-${chunks.id}
53 options:
54 browser:
55 - ${vars.browser}
56 channel: ${vars.channel}
57 command: >-
58 ./tools/ci/taskcluster-run.py
59 ${vars.browser}
60 ${vars.channel}
61 --
62 --channel=${vars.channel}
63 --log-wptreport=../artifacts/wpt_report.json
64 --log-wptscreenshot=../artifacts/wpt_screenshot.txt
65 --no-fail-on-unexpected
66 --this-chunk=${chunks.id}
67 --total-chunks=${chunks.total}
68 --test-type=${vars.suite}
69
70 trigger-master:
71 trigger:
72 branch:
73 - master
74
75 trigger-push:
76 trigger:
77 branch:
78 - triggers/${vars.browser}_${vars.channel}
79
80 trigger-daily:
81 trigger:
82 branch:
83 - epochs/daily
84
85 trigger-weekly:
86 trigger:
87 branch:
88 - epochs/weekly
89
90 trigger-pr:
91 trigger:
92 pull-request:
93
94 browser-firefox:
95 depends-on:
96 - download-firefox-${vars.channel}
97 download-artifacts:
98 - task: download-firefox-${vars.channel}
99 glob: public/results/firefox-${vars.channel}.*
100 dest: build/
101 extract: true
102
103 browser-webkitgtk_minibrowser: {}
104
105 browser-wpewebkit_minibrowser: {}
106
107 browser-chrome: {}
108
109 browser-chromium: {}
110
111 browser-servo: {}
112
113 browser-firefox_android:
114 privileged: true
115 scopes:
116 - "docker-worker:capability:privileged"
117 chunks-override:
118 testharness: 30
119
120 tox-python3_8:
121 env:
122 TOXENV: py38
123 PY_COLORS: "0"
124 install:
125 - python3.8
126 - python3.8-distutils
127 - python3.8-dev
128 - python3.8-venv
129
130 tox-python3_13:
131 env:
132 TOXENV: py313
133 PY_COLORS: "0"
134 install:
135 - python3.13
136 - python3.13-dev
137 - python3.13-venv
138 tests-affected:
139 options:
140 browser:
141 - ${vars.browser}
142 channel: ${vars.channel}
143 schedule-if:
144 run-job:
145 - affected_tests
146
147 tasks:
148 # The scheduling order of tasks is NOT determined by the order in which they
149 # are defined, but by their dependencies (depends-on).
150
151 # Run full suites on push
152 - $map:
153 for:
154 - vars:
155 suite: testharness
156 - vars:
157 suite: reftest
158 - vars:
159 suite: wdspec
160 - vars:
161 suite: crashtest
162 do:
163 $map:
164 for:
165 - vars:
166 browser: firefox
167 channel: nightly
168 use:
169 - trigger-master
170 - trigger-push
171 - vars:
172 browser: firefox
173 channel: beta
174 use:
175 - trigger-weekly
176 - trigger-push
177 - vars:
178 browser: firefox
179 channel: stable
180 use:
181 - trigger-daily
182 - trigger-push
183 - vars:
184 # Chromium ToT
185 browser: chromium
186 channel: nightly
187 use:
188 - trigger-daily
189 - trigger-push
190 - vars:
191 browser: chrome
192 channel: canary
193 use:
194 - trigger-master
195 - trigger-push
196 - vars:
197 browser: chrome
198 channel: dev
199 use:
200 - trigger-weekly
201 - trigger-push
202 - vars:
203 browser: chrome
204 channel: beta
205 use:
206 - trigger-weekly
207 - trigger-push
208 - vars:
209 browser: chrome
210 channel: stable
211 use:
212 - trigger-daily
213 - trigger-push
214 - vars:
215 browser: webkitgtk_minibrowser
216 channel: nightly
217 use:
218 - trigger-daily
219 - trigger-push
220 - vars:
221 browser: webkitgtk_minibrowser
222 channel: stable
223 use:
224 - trigger-weekly
225 - trigger-push
226 - vars:
227 browser: webkitgtk_minibrowser
228 channel: beta
229 use:
230 - trigger-weekly
231 - trigger-push
232 - vars:
233 browser: wpewebkit_minibrowser
234 channel: nightly
235 use:
236 - trigger-daily
237 - trigger-push
238 - vars:
239 browser: wpewebkit_minibrowser
240 channel: stable
241 use:
242 - trigger-weekly
243 - trigger-push
244 - vars:
245 browser: wpewebkit_minibrowser
246 channel: beta
247 use:
248 - trigger-weekly
249 - trigger-push
250 - vars:
251 browser: servo
252 channel: nightly
253 use:
254 - trigger-daily
255 - trigger-push
256 - vars:
257 browser: firefox_android
258 channel: nightly
259 use:
260 - trigger-daily
261 - trigger-push
262 do:
263 - ${vars.browser}-${vars.channel}-${vars.suite}:
264 use:
265 - wpt-base
266 - run-options
267 - wpt-run
268 - browser-${vars.browser}
269 - wpt-${vars.suite}
270 description: >-
271 A subset of WPT's "${vars.suite}" tests (chunk number ${chunks.id}
272 of ${chunks.total}), run in the ${vars.channel} release of
273 ${vars.browser}.
274
275 # print-reftest are currently only supported by Chrome and Firefox.
276 - $map:
277 for:
278 - vars:
279 suite: print-reftest
280 do:
281 $map:
282 for:
283 - vars:
284 browser: firefox
285 channel: nightly
286 use:
287 - trigger-master
288 - trigger-push
289 - vars:
290 browser: firefox
291 channel: beta
292 use:
293 - trigger-weekly
294 - trigger-push
295 - vars:
296 browser: firefox
297 channel: stable
298 use:
299 - trigger-daily
300 - trigger-push
301 - vars:
302 # Chromium ToT
303 browser: chromium
304 channel: nightly
305 use:
306 - trigger-daily
307 - trigger-push
308 - vars:
309 browser: chrome
310 channel: canary
311 use:
312 - trigger-master
313 - trigger-push
314 - vars:
315 browser: chrome
316 channel: dev
317 use:
318 - trigger-weekly
319 - trigger-push
320 - vars:
321 browser: chrome
322 channel: beta
323 use:
324 - trigger-weekly
325 - trigger-push
326 - vars:
327 browser: chrome
328 channel: stable
329 use:
330 - trigger-daily
331 - trigger-push
332 do:
333 - ${vars.browser}-${vars.channel}-${vars.suite}:
334 use:
335 - wpt-base
336 - run-options
337 - wpt-run
338 - browser-${vars.browser}
339 - wpt-${vars.suite}
340 description: >-
341 A subset of WPT's "${vars.suite}" tests (chunk number ${chunks.id}
342 of ${chunks.total}), run in the ${vars.channel} release of
343 ${vars.browser}.
344
345 - $map:
346 for:
347 - vars:
348 browser: firefox
349 channel: nightly
350 stability-exclude-users:
351 - moz-wptsync-bot
352 required: true
353 - vars:
354 browser: chrome
355 channel: dev
356 stability-exclude-users:
357 - chromium-wpt-export-bot
358 required: false
359 do:
360 - wpt-${vars.browser}-${vars.channel}-stability:
361 use:
362 - wpt-base
363 - run-options
364 - browser-${vars.browser}
365 - trigger-pr
366 - tests-affected
367 description: >-
368 Verify that all tests affected by a pull request are stable
369 when executed in ${vars.browser}.
370 command: >-
371 ./tools/ci/taskcluster-run.py
372 --commit-range base_head
373 ${vars.browser}
374 ${vars.channel}
375 --
376 --channel=${vars.channel}
377 --verify
378 --verify-no-chaos-mode
379 --verify-repeat-loop=0
380 --verify-repeat-restart=10
381 --github-checks-text-file="/home/test/artifacts/checkrun.md"
382 exclude-users: ${vars.stability-exclude-users}
383 required: ${vars.required}
384
385 - wpt-${vars.browser}-${vars.channel}-results:
386 use:
387 - wpt-base
388 - run-options
389 - browser-${vars.browser}
390 - trigger-pr
391 - tests-affected
392 description: >-
393 Collect results for all tests affected by a pull request in
394 ${vars.browser}.
395 command: >-
396 ./tools/ci/taskcluster-run.py
397 --commit-range base_head
398 ${vars.browser}
399 ${vars.channel}
400 --
401 --channel=${vars.channel}
402 --no-fail-on-unexpected
403 --log-wptreport=../artifacts/wpt_report.json
404 --log-wptscreenshot=../artifacts/wpt_screenshot.txt
405
406 - wpt-${vars.browser}-${vars.channel}-results-without-changes:
407 use:
408 - wpt-base
409 - run-options
410 - browser-${vars.browser}
411 - trigger-pr
412 - tests-affected
413 options:
414 checkout: base_head
415 description: >-
416 Collect results for all tests affected by a pull request in
417 ${vars.browser} but without the changes in the PR.
418 command: >-
419 ./tools/ci/taskcluster-run.py
420 --commit-range task_head
421 ${vars.browser}
422 ${vars.channel}
423 --
424 --channel=${vars.channel}
425 --no-fail-on-unexpected
426 --log-wptreport=../artifacts/wpt_report.json
427 --log-wptscreenshot=../artifacts/wpt_screenshot.txt
428 - $map:
429 for:
430 - vars:
431 channel: nightly
432 - vars:
433 channel: beta
434 - vars:
435 channel: stable
436 do:
437 download-firefox-${vars.channel}:
438 use:
439 - wpt-base
440 command: "./wpt install --download-only --destination /home/test/artifacts/ --channel=${vars.channel} --rename=firefox-${vars.channel} firefox browser"
441
442 - lint:
443 use:
444 - wpt-base
445 - trigger-master
446 - trigger-pr
447 description: >-
448 Lint for wpt-specific requirements
449 command: "./wpt lint --all --github-checks-text-file=/home/test/artifacts/checkrun.md"
450
451 - update-built:
452 use:
453 - wpt-base
454 - trigger-pr
455 schedule-if:
456 run-job:
457 - update_built
458 command: "./tools/ci/ci_built_diff.sh"
459
460 - tools/ unittests (Python 3.8):
461 description: >-
462 Unit tests for tools running under Python 3.8, excluding wptrunner
463 use:
464 - wpt-base
465 - trigger-pr
466 - tox-python3_8
467 command: ./tools/ci/ci_tools_unittest.sh
468 env:
469 HYPOTHESIS_PROFILE: ci
470 schedule-if:
471 run-job:
472 - tools_unittest
473
474 - tools/ unittests (Python 3.13):
475 description: >-
476 Unit tests for tools running under Python 3.13, excluding wptrunner
477 use:
478 - wpt-base
479 - trigger-pr
480 - tox-python3_13
481 command: ./tools/ci/ci_tools_unittest.sh
482 env:
483 HYPOTHESIS_PROFILE: ci
484 schedule-if:
485 run-job:
486 - tools_unittest
487
488 - tools/ integration tests (Python 3.8):
489 description: >-
490 Integration tests for tools running under Python 3.8
491 use:
492 - wpt-base
493 - trigger-pr
494 - tox-python3_8
495 command: ./tools/ci/ci_tools_integration_test.sh
496 install:
497 - libnss3-tools
498 options:
499 oom-killer: true
500 browser:
501 - firefox
502 - chrome
503 channel: experimental
504 xvfb: true
505 hosts: true
506 schedule-if:
507 run-job:
508 - wpt_integration
509
510 - tools/ integration tests (Python 3.13):
511 description: >-
512 Integration tests for tools running under Python 3.13
513 use:
514 - wpt-base
515 - trigger-pr
516 - tox-python3_13
517 command: ./tools/ci/ci_tools_integration_test.sh
518 install:
519 - libnss3-tools
520 options:
521 oom-killer: true
522 browser:
523 - firefox
524 - chrome
525 channel: experimental
526 xvfb: true
527 hosts: true
528 schedule-if:
529 run-job:
530 - wpt_integration
531
532 - resources/ tests (Python 3.8):
533 description: >-
534 Tests for testharness.js and other files in resources/ under Python 3.8
535 use:
536 - wpt-base
537 - trigger-pr
538 - tox-python3_8
539 command: ./tools/ci/ci_resources_unittest.sh
540 install:
541 - libnss3-tools
542 options:
543 browser:
544 - firefox
545 xvfb: true
546 hosts: true
547 schedule-if:
548 run-job:
549 - resources_unittest
550
551 - resources/ tests (Python 3.13):
552 description: >-
553 Tests for testharness.js and other files in resources/ under Python 3.13
554 use:
555 - wpt-base
556 - trigger-pr
557 - tox-python3_13
558 command: ./tools/ci/ci_resources_unittest.sh
559 install:
560 - libnss3-tools
561 options:
562 browser:
563 - firefox
564 xvfb: true
565 hosts: true
566 schedule-if:
567 run-job:
568 - resources_unittest
569
570 - infrastructure/ tests:
571 description: >-
572 Smoketests for wptrunner
573 vars:
574 channel: nightly
575 use:
576 - wpt-base
577 - trigger-pr
578 - browser-firefox
579 - browser-firefox_android
580 command: ./tools/ci/ci_wptrunner_infrastructure.sh
581 install:
582 - python3-pip
583 - libnss3-tools
584 - libappindicator1
585 - fonts-liberation
586 options:
587 oom-killer: true
588 browser:
589 - firefox
590 - chrome
591 - firefox_android
592 channel: experimental
593 xvfb: true
594 hosts: false
595 schedule-if:
596 run-job:
597 - wptrunner_infrastructure
598
599 # Note: even though sink-task does not have `depends-on`, it depends on all
600 # other tasks (dynamically added by tools/ci/tc/decision.py).
601 - sink-task:
602 description: >-
603 Sink task for all other tasks; indicates success
604 use:
605 - wpt-base
606 - trigger-pr
607 command: "./wpt tc-sink-task --github-checks-text-file=/home/test/artifacts/checkrun.md"
608 requires: all-resolved