summaryrefslogtreecommitdiffstats
path: root/tools/tryselect/try_presets.yml
blob: 680d318dc663a41a7ce893c37238a21d54922586 (plain)
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
---
# Presets defined here will be available to all users. Run them with:
#   $ mach try --preset <name>
#
# If editing this file, make sure to run:
#   $ mach python-test tools/tryselect/test/test_presets.py
#
# Descriptions are required. Please keep this in alphabetical order.

# yamllint disable rule:line-length

android-components:
    selector: fuzzy
    description: >-
        Run android-components builds and tests.
    query:
        - "'build-components"
        - "'test-components"

builds:
    selector: fuzzy
    description: >-
        Run builds without any of the extras.
    query:
        - "^build- !fuzzing !notarization !reproduced !rusttests !signing !upload-symbols"

builds-debug:
    selector: fuzzy
    description: >-
        Run the bare minimum of debug build jobs to ensure builds work on
        all tier-1 platforms.
    query:
        - "^build- 'debug !fuzzing !rusttests !signing !plain !asan !tsan !noopt !toolchain !upload-symbols"

builds-debugopt:
    selector: fuzzy
    description: >-
        Run the bare minimum of debug and opt build jobs to ensure builds work on
        all tier-1 platforms.
    query:
        - "^build- !fuzzing !rusttests !signing !plain !asan !tsan !noopt !toolchain !upload-symbols"

desktop-frontend:
    description: >-
        Run mochitest-browser, xpcshell, mochitest-chrome, mochitest-a11y,
        marionette, firefox-ui-functional on all desktop platforms.
        Excludes non-shipped/duplicate configurations like asan/tsan/msix
        to reduce the runtime of the push as well as infra load.
        Use with --artifact to speed up your trypush.
        If this is green, you can be 99% sure that any frontend change will
        stick on central.
    selector: fuzzy
    query:
        # Runs 64-bit frontend-tests, plus win7. Tries to avoid running
        # asan/tsan because they're not available as artifact builds, and
        # rarely offer different results from debug/opt. It also avoids running
        # msix/swr/a11y-checks/gpu/nofis/headless variants of otherwise
        # identical tests, as again those are unlikely to show different
        # results for frontend-only changes.
        # This won't run 32-bit debug tests, which seems an acceptable
        # trade-off for query complexity + runtime on infrastructure.
        - "'browser-chrome                 'windows7 | '64 !spi !asan !tsan !msix !a11y !swr | 'linux"
        - "'mochitest-chrome               'windows7 | '64 !spi !asan !tsan             !swr !gpu"
        - "'xpcshell                       'windows7 | '64 !spi !asan !tsan !msix !nofis !condprof"
        - "'browser-a11y | 'mochitest-a11y 'windows7 | '64 !spi !asan !tsan !no-cache   !swr"
        - "'marionette                     'windows7 | '64      !asan       !source !headless !swr"
        - "'firefox-ui-functional          'windows7 | '64      !asan !tsan"

devtools:
    selector: fuzzy
    description: >-
        Runs the tests relevant to the Firefox Devtools
    query:
        - "'node-debugger | 'node-devtools"
        - "'mozlint-eslint"
        # Windows: skip jobs on asan and 32 bits platforms
        - "'mochitest-devtools-chrome | 'mochitest-chrome-1proc 'windows !asan !-32"
        # macos: no extra platform to filter out
        - "'mochitest-devtools-chrome | 'mochitest-chrome-1proc 'macosx"
        # Linux is being named "linux1804" and may change over time, so use a more flexible search
        - "'mochitest-devtools-chrome | 'mochitest-chrome-1proc 'linux '64-qr/ !swr"
        - "'xpcshell 'linux !nofis '64-qr/"

devtools-linux:
    selector: fuzzy
    description: >-
        Runs the tests relevant to the Firefox Devtools, on Linux only.
    query:
        - "'node-debugger | 'node-devtools"
        - "'mozlint-eslint"
        - "'mochitest-devtools-chrome | 'mochitest-chrome-1proc 'linux '64-qr/ !swr"
        - "'xpcshell 'linux !nofis '64-qr/"

fenix:
    selector: fuzzy
    description: >-
        Run Fenix builds and tests.
    query:
        - "'build-apk-fenix-debug"
        - "'signing-apk-fenix-debug"
        - "'build-apk-fenix-android-test-debug"
        - "'signing-apk-fenix-android-test-debug"
        - "'test-apk-fenix-debug"
        - "'ui-test-apk-fenix-arm-debug"

firefox-android:
    selector: fuzzy
    description: >-
        Run android-components, Focus, and Fenix builds and tests.
    query:
        - "'build-components"
        - "'test-components"
        - "'build-apk-fenix-debug"
        - "'signing-apk-fenix-debug"
        - "'build-apk-fenix-android-test-debug"
        - "'signing-apk-fenix-android-test-debug"
        - "'test-apk-fenix-debug"
        - "'ui-test-apk-fenix-arm-debug"
        - "'build-apk-focus-debug"
        - "'signing-apk-focus-debug"
        - "'build-apk-focus-android-test-debug"
        - "'signing-apk-focus-android-test-debug"
        - "'test-apk-focus-debug"
        - "'ui-test-apk-focus-arm-debug"

focus:
    selector: fuzzy
    description: >-
        Run Focus builds and tests.
    query:
        - "'build-apk-focus-debug"
        - "'signing-apk-focus-debug"
        - "'build-apk-focus-android-test-debug"
        - "'signing-apk-focus-android-test-debug"
        - "'test-apk-focus-debug"
        - "'ui-test-apk-focus-arm-debug"

fpush-linux-android:
    selector: fuzzy
    description: >-
        Runs correctness test suites on Linux and Android emulator platforms, as
        well as builds across main platforms. The resulting jobs on TreeHerder
        used to end up looking like a "F" shape (not so much these days) and so
        this is typically referred to as an F-push. This is useful to do as a
        general sanity check on changes to cross-platform Gecko code where you
        unsure of what tests might be affected. Linux and Android (emulator)
        test coverage are relatively cheap to run and cover a lot of the
        codebase, while the builds on other platforms catch compilation problems
        that might result from only building locally on one platform.
    query:
        - "'test-linux1804 'debug- !-shippable !-asan"
        - "'test-android-em 'debug"
        - "^build !-shippable !-signing !-asan !-fuzzing !-rusttests !-base-toolchain !-aar-"

geckodriver:
    selector: fuzzy
    description: >-
        Runs the tests relevant to geckodriver, which implements the WebDriver
        specification. This preset can be filtered down further to limit it to
        a specific platform or other tasks only. For example:
        |mach try --preset geckodriver -xq "'linux"|
    query:
        - "'rusttests"
        - "'platform 'wdspec 'debug 'nofis"
        - "'browsertime 'amazon 'shippable 'firefox 'nofis"

layout:
    selector: fuzzy
    description: >-
        Runs the tests most relevant to layout.
        This preset can be filtered down further to limit it to
        a specific platform or build configuration. For example:
        |mach try --preset layout -xq "linux64 'opt"|
    query:
        # Most mochitest + reftest + crashtest + wpt
        - "!asan !tsan !jsreftest !shippable !webgl !condprof !media !webgpu 'mochitest | 'web-platform | 'crashtest | 'reftest"
        # Style system unit tests
        - "'rusttests"

media-full:
    selector: fuzzy
    description: >-
        Runs tests that exercise media playback and WebRTC code.
    query:
        - "mochitest-media !dfpi !nofis"
        - "mochitest-media android !spi !swr !lite"
        - "mochitest-browser-chrome !dfpi !nofis !a11y"
        - "mochitest-browser-media"
        - "web-platform-tests !dfpi !nofis !shippable"
        - "web-platform-tests android !wdspec !spi !swr !lite"
        - "crashtest !wdspec !nofis"
        - "crashtest android !wdspec !spi !swr !lite"
        - "'gtest"

mochitest-bc:
    description: >-
        Runs mochitest-browser-chrome on all Desktop platforms in both opt
        and debug. Excludes jobs that require non-artifact builds (asan,
        tsan, msix, etc.) and some non-default configurations. For frontend
        only changes, use this with --artifact to speed up your trypushes.
    query:
        - "'browser-chrome 'windows7 | '64 !tsan !asan !msix !spi !a11y !swr | 'linux"
    selector: fuzzy

perf:
    selector: fuzzy
    description: >-
        Runs all performance (raptor and talos) tasks across all platforms.
        This preset can be filtered down further (e.g to limit it to a specific
        platform) via |mach try --preset perf -xq "'windows"|.

        Android hardware platforms are excluded due to resource limitations.
    query:
        - "^test- !android-hw 'raptor | 'talos"
    rebuild: 5

perf-chrome:
    description: >-
        Runs the talos tests most likely to change when making a change to
        the browser chrome. This skips a number of talos jobs that are unlikely
        to be affected in order to conserve resources.
    query:
        - "opt-talos- 'chrome | 'svg | 'session | 'tabswitch | 'other | 'g5"
    rebuild: 6
    selector: fuzzy

remote-protocol:
    selector: fuzzy
    description: >-
        Runs the tests relevant to the Remote protocol, which underpins
        many test harnesses as well as our CDP and WebDriver implementations.
        This preset can be filtered down further to limit it to a specific
        platform or to opt/debug tasks only. For example:
        |mach try --preset remote-protocol -xq "'linux 'opt"|
    query:
        - "'awsy-base"
        - "'firefox-ui"
        - "'marionette !swr | harness"
        - "'mochitest-browser !spi !swr !nofis '-1$"
        - "'mochitest-remote !spi !swr"
        - "'platform 'reftest !swr !nofis | 'android !-lite -1$"
        - "'platform 'wdspec !swr"
        - "'platform !reftest !wdspec !swr !nofis | 'android !-lite -1$"
        - "'puppeteer"
        - "'reftest !platform !gpu !swr !no-accel !nofis | 'android !-lite -1$"
        - "'xpcshell !spi !tsan !-lite"

sample-suites:
    selector: fuzzy
    description: >-
        Runs one chunk of every test suite plus all suites that aren't chunked.
        It is useful for testing infrastructure changes that can affect the
        harnesses themselves but are unlikely to break specific tests.
    query:
        - ^test- -1$
        # Only run a single talos + raptor suite per platform
        - ^test- !1$ !2$ !3$ !4$ !5$ !6$ !7$ !8$ !9$ !0$ !raptor !talos
        - ^test- 'raptor-speedometer | 'talos-g1

sm-shell-all:
    selector: fuzzy
    description: <-
        Runs a set of tests aimed to give a reasonable level of confidence for
        basic SpiderMonkey changes (shell only), all platforms
    query:
        - "'spidermonkey | 'shell-haz"
        - "!shippable !android 'jittest"  # macosx64 jittests

sm-shell:
    selector: fuzzy
    description: <-
        Runs a set of tests aimed to give a reasonable level of confidence for
        basic SpiderMonkey changes (shell only) (linux only)
    query:
        - "!win !osx 'spidermonkey | 'shell-haz"


sm-all:
    selector: fuzzy
    description: <-
        Runs a set of tests aimed to give a reasonable level of confidence for
        basic SpiderMonkey changes, including those that would require a
        browser build.
    query:
        - "'spidermonkey | 'hazard"
        - "!android !asan !shippable 'xpcshell"
        - "!android !asan !shippable 'jsreftest"
        - "!shippable !android 'jittest"  # macosx64 jittests

webextensions:
    selector: fuzzy
    description: <-
        Runs most of the unit tests of WebExtension code across all desktop
        platforms and Android, including mochitests, xpcshell and test-verify.
        GeckoView JUnit tests are NOT run.
    paths:  # must be duplicate of test_paths, see bug 1556445
        - browser/components/extensions/test/
        - mobile/android/components/extensions/test/
        - toolkit/components/extensions/test/
        - toolkit/mozapps/extensions/test/
    test_paths:  # must be duplicate of paths, see bug 1556445
        - browser/components/extensions/test/
        - mobile/android/components/extensions/test/
        - toolkit/components/extensions/test/
        - toolkit/mozapps/extensions/test/
    query:
        - "'64-qr/ | 'windows11-64-2009-qr !wpt !gpu !msix"

webgpu:
    selector: fuzzy
    description: >-
        Runs the tests relevant to WebGPU.
    query:
        - "'webgpu"
        - "source-test-mozlint-updatebot"
        - "source-test-vendor-rust"

webrender:
    selector: fuzzy
    description: >-
        Runs the conformance tests relevant to WebRender.
    query:
        - "!talos !raptor !shippable !asan '-qr"
        - "^webrender-"

webrender-reftests:
    selector: fuzzy
    description: >-
        Runs the reftests relevant to WebRender.
    query:
        - "!talos !raptor !shippable !asan !nofis 'reftest"

webrender-reftests-linux:
    selector: fuzzy
    description: >-
        Runs the reftests relevant to WebRender on linux only.
    query:
        - "!talos !raptor !shippable !asan !nofis 'linux 'reftest"

webrender-perf:
    selector: fuzzy
    description: >-
        Runs the performance tests relevant to WebRender.
    query:
        - "'-qr 'svgr"
        - "'-qr 'g1"
        - "'-qr 'g4"
        - "'-qr 'tp5"
        - "'-qr 'talos-webgl"
        - "'-qr 'motionmark-animometer"