Skip to content

Commit 512caca

Browse files
committed
Bug 1605381 - Schedule wpt crashtests in CI, r=ahal
This is a new test type identified by --test-type=crashtest Differential Revision: https://phabricator.services.mozilla.com/D57981 --HG-- extra : moz-landing-system : lando
1 parent 2c9610d commit 512caca

File tree

8 files changed

+41
-1
lines changed

8 files changed

+41
-1
lines changed

python/mozbuild/mozbuild/schedules.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@
6060
'xpcshell',
6161
'xpcshell-coverage',
6262
'web-platform-tests',
63+
'web-platform-tests-crashtests',
6364
'web-platform-tests-reftests',
6465
'web-platform-tests-wdspec',
6566
]

taskcluster/ci/test/test-sets.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ common-tests:
5050

5151
web-platform-tests:
5252
- web-platform-tests
53+
- web-platform-tests-crashtests
5354
- web-platform-tests-reftests
5455
- web-platform-tests-wdspec
5556

@@ -474,6 +475,7 @@ windows-aarch64-tests:
474475
- mochitest-webgl2-ext
475476
- reftest
476477
- web-platform-tests
478+
- web-platform-tests-crashtests
477479
- web-platform-tests-reftests
478480
- xpcshell
479481

@@ -527,6 +529,7 @@ macosx1014-64-tests:
527529
- test-verify-gpu
528530
- test-verify-wpt
529531
- web-platform-tests
532+
- web-platform-tests-crashtests
530533
- web-platform-tests-reftests
531534
- web-platform-tests-wdspec
532535
- xpcshell
@@ -573,6 +576,7 @@ android-x86_64-tests:
573576
- reftest
574577
- test-verify
575578
- web-platform-tests
579+
- web-platform-tests-crashtests
576580
- web-platform-tests-reftests
577581
- xpcshell
578582

taskcluster/ci/test/web-platform.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,29 @@ web-platform-tests-wdspec-headless:
159159
- --test-type=wdspec
160160
- --headless
161161

162+
web-platform-tests-crashtests:
163+
description: "Web platform crashtests run"
164+
suite:
165+
name: web-platform-tests-crashtests
166+
schedules-component: web-platform-tests-crashtests
167+
treeherder-symbol: W(Wc)
168+
chunks: 1
169+
mozharness:
170+
extra-options:
171+
- --test-type=crashtest
172+
run-on-projects:
173+
by-test-platform:
174+
windows10-aarch64/opt: ['try', 'mozilla-central']
175+
.*-qr/.*: ['release', 'try']
176+
default: built-projects
177+
tier:
178+
by-test-platform:
179+
linux64-asan/opt: 2
180+
windows10-aarch64.*: 2
181+
.*-qr/.*: 2 # can't be tier-1 if it's not running on integration branches
182+
linux64-ccov/opt: 3
183+
default: default
184+
162185
test-verify-wpt:
163186
description: "Extra verification of web-platform tests modified on this push"
164187
suite:

taskcluster/taskgraph/transforms/tests.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1317,6 +1317,7 @@ def split_e10s(config, tests):
13171317
'test-verify-gpu',
13181318
'test-verify-wpt',
13191319
'web-platform-tests',
1320+
'web-platform-tests-crashtests',
13201321
'web-platform-tests-reftests',
13211322
'web-platform-tests-wdspec',
13221323
'xpcshell',

taskcluster/taskgraph/try_option_syntax.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,7 @@ def alias_matches(pattern):
9999
'web-platform-test': alias_prefix('web-platform-tests'),
100100
'web-platform-tests': alias_prefix('web-platform-tests'),
101101
'web-platform-tests-e10s': alias_prefix('web-platform-tests-e10s'),
102+
'web-platform-tests-crashtests': alias_prefix('web-platform-tests-crashtests'),
102103
'web-platform-tests-reftests': alias_prefix('web-platform-tests-reftests'),
103104
'web-platform-tests-reftests-e10s': alias_prefix('web-platform-tests-reftests-e10s'),
104105
'web-platform-tests-wdspec': alias_prefix('web-platform-tests-wdspec'),

testing/mozbase/moztest/moztest/resolve.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,6 +200,13 @@ def WebglSuite(name):
200200
'task_regex': ['web-platform-tests($|.*(-1|[^0-9])$)',
201201
'test-verify-wpt'],
202202
},
203+
'web-platform-tests-crashtest': {
204+
'aliases': ('wpt',),
205+
'mach_command': 'web-platform-tests',
206+
'kwargs': {'include': []},
207+
'task_regex': ['web-platform-tests-crashtests($|.*(-1|[^0-9])$)',
208+
'test-verify-wpt'],
209+
},
203210
'web-platform-tests-testharness': {
204211
'aliases': ('wpt',),
205212
'mach_command': 'web-platform-tests',
@@ -295,6 +302,7 @@ def WebglSuite(name):
295302
('mochitest', 'webgl2-ext'): 'mochitest-webgl2-ext',
296303
('mochitest', 'webgl2-deqp'): 'mochitest-webgl2-deqp',
297304
('web-platform-tests', 'testharness'): 'web-platform-tests-testharness',
305+
('web-platform-tests', 'crashtest'): 'web-platform-tests-crashtest',
298306
('web-platform-tests', 'reftest'): 'web-platform-tests-reftest',
299307
('web-platform-tests', 'wdspec'): 'web-platform-tests-wdspec',
300308
}
@@ -647,7 +655,7 @@ def add_wpt_manifest_data(self):
647655
for test_type, path, tests in manifest:
648656
full_path = os.path.join(tests_root, path)
649657
src_path = os.path.relpath(full_path, self.topsrcdir)
650-
if test_type not in ["testharness", "reftest", "wdspec"]:
658+
if test_type not in ["testharness", "reftest", "wdspec", "crashtest"]:
651659
continue
652660
for test in tests:
653661
self._tests.append({

testing/mozharness/scripts/web_platform_tests.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -285,6 +285,7 @@ def _query_cmd(self, test_types):
285285

286286
test_type_suite = {
287287
"testharness": "web-platform-tests",
288+
"crashtest": "web-platform-tests-crashtests",
288289
"reftest": "web-platform-tests-reftests",
289290
"wdspec": "web-platform-tests-wdspec",
290291
}

testing/testinfo.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -728,6 +728,7 @@ def add_activedata(self, branches, days, by_component):
728728
[{"regex": {"result.test": ".*/tests/[a-m].*"}},
729729
{"not": {"regex": {"result.test": ".*/tests/[a-m].*"}}}]),
730730
"web-platform-tests-wdspec": (self.path_mod_wpt, [None]),
731+
"web-platform-tests-crashtests": (self.path_mod_wpt, [None]),
731732
"xpcshell": (None, [None]),
732733
"mochitest-plain": (None, [None]),
733734
"mochitest-browser-chrome": (None, [None]),

0 commit comments

Comments
 (0)