summaryrefslogtreecommitdiffstats
path: root/taskcluster/ci/test/mochitest.yml
blob: f2399d71162efc95ee574c18b1df2a442ef33b2a (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
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
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
---
job-defaults:
    suite:
        category: mochitest
    target:
        by-test-platform:
            android-em-7.*: geckoview-test_runner.apk
            android-hw.*: geckoview-test_runner.apk
            windows11-64-2009.*:
                by-variant:
                    msix: target.installer.msix
                    default: null
            default: null
    tier:
        by-variant:
            xorigin:
                by-test-platform:
                    linux.*64.*-qr/debug: 1
                    default: 2
            default:
                by-test-platform:
                    android-em-7.0-x86_64-qr/debug-isolated-process: 3
                    default: default
    mozharness:
        script:
            by-test-platform:
                android-em.*: android_emulator_unittest.py
                android-hw.*: android_hardware_unittest.py
                default: desktop_unittest.py
        config:
            by-test-platform:
                android-em-7.*:
                    - android/android_common.py
                    - android/android-x86_64.py
                android-hw.*:
                    - android/android_common.py
                    - android/android_hw.py
                linux.*:
                    - unittests/linux_unittest.py
                    - remove_executables.py
                macosx.*:
                    - unittests/mac_unittest.py
                windows.*:
                    - unittests/win_unittest.py

mochitest-plain:
    description: "Mochitest plain run"
    treeherder-symbol: M()
    schedules-component: mochitest-plain
    loopback-video: true
    virtualization: virtual
    variants:
        - aab+no-fission
        - conditioned_profile
        - xorigin
        - no-fission
        - socketprocess_networking
        - webrender-sw+no-fission
        - webrender-sw
        - headless
        - headless+socketprocess_networking
        - http3
        - http2
        - geckoview-fission-isolate-high-value
    run-on-projects:
        by-variant:
            conditioned_profile:
                by-test-platform:
                    .*(asan|ccov|wayland).*: []
                    linux1804-64(-shippable)?-qr/opt: ['trunk']
                    windows11-64.*(-shippable)?-qr/opt: ['trunk']
                    default: []
            xorigin:
                by-test-platform:
                    .*(asan|wayland).*: []
                    windows.*ccov.*: []
                    (linux.*64|macosx.*64|windows11.*)(-shippable)?-qr/(opt|debug): ['trunk']
                    windows.*64-ccov-qr/opt: ['mozilla-central']
                    linux.*64-ccov-qr/opt: ['mozilla-central']
                    android-em-7.0-x86_64-qr/debug-isolated-process: []
                    android-em.*: ['trunk']
                    default: []
            socketprocess_networking:
                by-test-platform:
                    .*(asan|ccov|wayland).*: []
                    (linux.*64|macosx.*64|windows11-64.*)(-shippable)?-qr/(opt|debug): ['autoland', 'mozilla-central']
                    default: []
            webrender-sw+no-fission:
                by-test-platform:
                    android-em-7.0-x86_64-qr/debug: built-projects
                    linux.*asan.*: ['trunk']
                    linux.*64(-shippable)?-qr/(opt|debug): ['trunk']
                    default: []
            webrender-sw:
                by-test-platform:
                    linux1804-64-qr/debug: built-projects
                    default: []
            aab+no-fission:
                by-test-platform:
                    android-em-7.0-x86_64-qr/debug: built-projects
                    default: []
            headless:
                by-test-platform:
                    .*wayland.*: []
                    linux1804-64.*: ['mozilla-central']
                    default: []
            headless+socketprocess_networking:
                by-test-platform:
                    .*wayland.*: []
                    linux1804-64.*: ['mozilla-central']
                    default: []
            no-fission:
                by-test-platform:
                    android-em-7.0-x86_64-qr/debug-isolated-process: []
                    android.*: built-projects
                    linux1804-64-qr/debug: ['trunk']
                    linux1804-64(-shippable|-asan)?-qr/opt: ['trunk']
                    default: []
            http3:
                by-test-platform:
                    linux1804-64-qr/debug: built-projects
                    default: []
            http2:
                by-test-platform:
                    linux1804-64-qr/debug: built-projects
                    default: []
            geckoview-fission-isolate-high-value:
                by-test-platform:
                    android-em-7.0-x86_64-qr/debug-isolated-process: []
                    android-em.*: built-projects
                    default: []
            default:
                by-test-platform:
                    android-em-7.0-x86_64-qr/debug-isolated-process: []
                    android.*: built-projects
                    default: built-projects
    chunks:
        by-test-platform:
            android.*/debug: 10
            linux.*/debug: 16
            linux.*64-tsan-qr/opt: 20
            .*(asan|ccov).*: 10
            linux.*/opt: 8
            windows.*/debug: 8
            default: 5
    instance-size:
        by-test-platform:
            linux.*64-tsan-qr/opt: xlarge  # runs out of memory using 8GB
            default: default
    max-run-time: 3600
    allow-software-gl-layers: false
    mozharness:
        mochitest-flavor: plain
        extra-options:
            by-test-platform:
                android-em.*:
                    - --test-suite=mochitest-plain
                default: []
        chunked:
            by-test-platform:
                android-em.*: false
                default: true
    fetches:
        toolchain:
            by-test-platform:
                linux.*:
                    - linux64-node
                    - linux64-minidump-stackwalk
                    - linux64-fix-stacks
                macosx.*:
                    - macosx64-node
                    - macosx64-minidump-stackwalk
                    - macosx64-fix-stacks
                win.*-64.*:
                    - win64-node
                    - win32-minidump-stackwalk
                    - win32-fix-stacks
                win.*32.*:
                    - win32-node
                    - win32-minidump-stackwalk
                    - win32-fix-stacks
                android-em-7.*:
                    - android-system-image-x86_64-linux
                    - android-avd-x86_64-linux
                    - android-emulator-linux
                    - linux64-node
                    - linux64-minidump-stackwalk

mochitest-a11y:
    description: "Mochitest a11y run"
    treeherder-symbol: M(a11y)
    schedules-component: mochitest-a11y
    test-manifest-loader: default  # ensure we don't run with manifest-scheduling
    loopback-video: true
    run-without-variant: false
    variants:
        - 1proc
        - socketprocess_networking+1proc
        - webrender-sw+1proc
    run-on-projects:
        by-variant:
            socketprocess_networking+1proc:
                by-test-platform:
                    linux.*64-qr/debug: ['autoland', 'mozilla-central']
                    default: []
            webrender-sw+1proc:
                by-test-platform:
                    android-em-7.0-x86_64-qr/debug: built-projects
                    linux.*64-qr/debug: built-projects
                    default: []
            1proc: built-projects
    mozharness:
        mochitest-flavor: a11y

mochitest-browser-chrome:
    description: "Mochitest browser-chrome run"
    suite:
        name: mochitest-browser-chrome
    treeherder-symbol: M(bc)
    schedules-component: mochitest-browser-chrome
    loopback-video: true
    variants:
        - webrender-sw
        - webrender-sw+a11y-checks
        - socketprocess_networking
        - msix
    run-on-projects:
        by-variant:
            webrender-sw:
                by-test-platform:
                    linux.*64(-asan)?-qr/(opt|debug): ['all']
                    linux.*64-tsan-qr/opt: built-projects
                    linux.*64-shippable-qr/opt: ['release']
                    linux.*64(-shippable)?-qr/opt: built-projects
                    linux.*64-devedition-qr/opt: built-projects
                    windows1.*-64.*-qr/debug: built-projects
                    .*wayland.*: []  # will change to built-projects when greened up
                    default: []
            webrender-sw+a11y-checks:
                by-test-platform:
                    linux.*64(-shippable)?-qr/opt: ['trunk']
                    default: []
            socketprocess_networking:
                by-test-platform:
                    .*asan.*: []
                    .*ccov.*: []
                    (linux.*64|macosx.*64|windows1.*-64.*)(-shippable)?-qr/(opt|debug): ['autoland', 'mozilla-central']
                    default: []
            msix:
                by-test-platform:
                    windows11-64-2009-qr/debug: built-projects
                    windows11-64-2009(-shippable)?-qr/opt: built-projects
                    default: []
            default:
                by-test-platform:
                    android.*: []
                    linux.*: []  # linux runs M-swr(bc), not M(bc)
                    default: built-projects
    tier:
        by-variant:
            webrender-sw:
                by-test-platform:
                    linux.*64(-asan|-shippable)?-qr/(opt|debug): 1
                    default: default
            default: default
    chunks:
        by-variant:
            msix:
                by-test-platform:
                    .*/debug: 16
                    default: 7
            default:
                by-test-platform:
                    linux.*wayland.*/opt: 8
                    linux.*wayland.*/debug: 12
                    linux.*-qr/debug: 16
                    linux.*64-asan-qr/opt: 16
                    linux.*64-tsan-qr/opt: 32
                    macosx.*64-qr/debug: 12
                    macosx.*64.*/opt: 10
                    windows.*-ccov.*/.*: 14
                    windows.*-asan-qr/opt: 14
                    windows.*32-qr/debug: 12
                    default: 8
    max-run-time:
        by-variant:
            msix: 5400
            socketprocess_networking:
                by-test-platform:
                    linux.*-qr/debug: 7200
                    default: 5400
            default:
                by-test-platform:
                    linux.*64-ccov.*/.*: 9000
                    linux.*64-tsan-qr/opt: 10800
                    linux.*-qr/opt: 5400
                    macosx.*64-ccov.*/.*: 10800
                    windows.*-ccov.*/.*: 10800
                    windows.*-asan-qr/opt: 5400
                    .*/debug: 5400
                    default: 3600
    mozharness:
        mochitest-flavor: browser
        chunked: true
    # Bug 1281241: migrating to m3.large instances
    instance-size:
        by-test-platform:
            linux.*64-tsan-qr/opt: xlarge  # runs out of memory using 8GB
            linux.*64-asan-qr/opt: xlarge  # runs out of memory using 8GB
            default: default
    allow-software-gl-layers: false

mochitest-browser-chrome-failures:
    description: "Mochitest browser-chrome failures run"
    suite:
        name: mochitest-browser-chrome
    treeherder-symbol: M-f(bc)
    schedules-component: mochitest-browser-chrome
    loopback-video: true
    variants:
        - webrender-sw
    run-on-projects:
        by-test-platform:
            android.*: []
            .*wayland.*: []  # will change to built-projects when greened up
            default: []
    tier: 3
    chunks: 2
    max-run-time:
        by-test-platform:
            linux.*wayland.*/opt: 1800
            linux.*wayland.*/debug: 3600
            default: 3600
    mozharness:
        mochitest-flavor: browser
        chunked: true
        extra-options:
            by-test-platform:
                linux.*wayland.*:
                    - --run-failures="os == 'linux' && os_version == '22.04'"
                    - --timeout-as-pass
                    - --crash-as-pass
    instance-size: default
    allow-software-gl-layers: false

mochitest-browser-a11y:
    description: "Mochitest browser-a11y run"
    suite:
        name: mochitest-browser-a11y
    treeherder-symbol: M(ba)
    schedules-component: mochitest-browser-a11y
    loopback-video: true
    run-on-projects:
        by-test-platform:
            android.*: []
            .*wayland.*: []
            default: built-projects
    tier: default
    max-run-time:
        by-test-platform:
            .*tsan.*: 2700
            linux.*/debug: 2700
            default: 1800
    mozharness:
        mochitest-flavor: browser
        chunked:
            by-test-platform:
                .*tsan.*: true
                default: false
    chunks:
        by-test-platform:
            .*tsan.*: 2
            .*asan.*: 2
            default: 1
    instance-size: default
    allow-software-gl-layers: false
    virtualization: virtual

mochitest-browser-media:
    description: "Mochitest browser media"
    suite:
        name: mochitest-browser-media
    treeherder-symbol: M(mda-bc)
    schedules-component: mochitest-browser-media
    loopback-video: true
    test-manifest-loader: null
    variants: ["wmf-media-engine"]
    run-on-projects:
        by-variant:
            wmf-media-engine:
                by-test-platform:
                    .*asan.*: []
                    windows11-64.*/debug: []  # Bug 1805736
                    windows1.*-64.*: ['autoland', 'mozilla-central']
                    default: []
            default:
                by-test-platform:
                    android.*: []
                    default: built-projects
    tier: default
    max-run-time:
        by-test-platform:
            .*tsan.*: 1800
            default: 1200
    mozharness:
        mochitest-flavor: browser
    instance-size: default
    allow-software-gl-layers: false
    virtualization: virtual

mochitest-browser-screenshots:
    description: "Browser Screenshots"
    suite:
        name: mochitest-browser-screenshots
    treeherder-symbol: M(ss)
    loopback-video: true
    test-manifest-loader: null  # don't load tests in the taskgraph
    variants: ["no-fission"]
    run-on-projects:
        by-test-platform:
            linux1804-64.*/opt: ['trunk']
            default: []
    max-run-time: 3600
    mozharness:
        mochitest-flavor: browser
    allow-software-gl-layers: false

mochitest-chrome:
    description: "Mochitest chrome run"
    treeherder-symbol: M(c)
    schedules-component: mochitest-chrome
    loopback-video: true
    run-without-variant: false
    variants:
        - 1proc
        - socketprocess_networking+1proc
        - webrender-sw+1proc
    run-on-projects:
        by-variant:
            socketprocess_networking+1proc:
                by-test-platform:
                    .*asan.*: []
                    .*ccov.*: []
                    (linux.*64|macosx.*64|windows11-64.*)(-shippable)?-qr/(opt|debug): ['autoland', 'mozilla-central']
                    default: []
            webrender-sw+1proc:
                by-test-platform:
                    android-em-7.0-x86_64-qr/debug: built-projects
                    linux.*64-qr/debug: built-projects
                    default: []
            1proc:
                by-test-platform:
                    .*wayland.*: []
                    default: built-projects
    chunks:
        by-test-platform:
            .*tsan.*/opt: 6
            default: 3
    max-run-time: 3600
    mozharness:
        mochitest-flavor: chrome
        chunked: true
    instance-size:
        by-test-platform:
            linux.*64-tsan-qr/opt: xlarge  # runs out of memory otherwise using 8GB
            default: default

mochitest-devtools-chrome:
    description: "Mochitest devtools-chrome run"
    suite:
        name: mochitest-devtools-chrome
    schedules-component: mochitest-browser-chrome
    treeherder-symbol: M(dt)
    loopback-video: true
    variants:
        - a11y-checks
        - socketprocess_networking
        - webrender-sw
        - devtools-no-eft+no-fission
        - http3
    run-on-projects:
        by-variant:
            a11y-checks:
                by-test-platform:
                    linux.*64(-shippable)?-qr/opt: ['trunk']
                    default: []
            devtools-no-eft+no-fission:
                by-test-platform:
                    linux.*64(-shippable)?-qr/opt: ['trunk']
                    default: []
            http3:
                by-test-platform:
                    linux1804-64-qr/debug: built-projects
                    default: []
            socketprocess_networking:
                by-test-platform:
                    .*asan.*: []
                    .*ccov.*: []
                    (linux.*64|macosx.*64|windows.*)(-shippable)?-qr/(opt|debug): ['autoland', 'mozilla-central']
                    default: []
            webrender-sw:
                by-test-platform:
                    linux.*64-qr/debug: built-projects
                    .*wayland.*: []  # will change to built-projects when greened up
                    default: []
            default:
                by-test-platform:
                    android.*: []
                    .*wayland.*: []
                    linux.*64-ccov-qr/opt: []
                    default: built-projects
    tier: default
    max-run-time:
        by-test-platform:
            windows.*-ccov.*/.*: 10800
            macosx.*64-ccov.*/.*: 9000
            linux.*64-ccov.*/.*: 7200
            linux.*64-tsan-qr/opt: 7200
            default: 5400
    chunks:
        by-test-platform:
            .*-ccov.*/.*: 12
            linux.*wayland.*/debug: 14
            linux.*64-qr/debug: 14
            macosx.*64-qr/debug: 8
            .*-asan(-qr)?/opt: 8
            .*-tsan-qr/opt: 16
            default: 5
    mozharness:
        mochitest-flavor: chrome
        chunked: true
    instance-size:
        by-test-platform:
            linux.*64-[at]san(-qr)?/opt: xlarge  # runs out of memory otherwise using 8GB
            default: default
    # Bug 1296086: high number of intermittents observed with software GL and large instances
    allow-software-gl-layers: false
    fetches:
        toolchain:
            by-test-platform:
                linux.*:
                    - linux64-node
                    - linux64-minidump-stackwalk
                    - linux64-fix-stacks
                macosx.*:
                    - macosx64-node
                    - macosx64-minidump-stackwalk
                    - macosx64-fix-stacks
                win.*-64.*:
                    - win64-node
                    - win32-minidump-stackwalk
                    - win32-fix-stacks
                win.*32.*:
                    - win32-node
                    - win32-minidump-stackwalk
                    - win32-fix-stacks
                android-em-7.*:
                    - android-system-image-x86_64-linux
                    - android-avd-x86_64-linux
                    - android-emulator-linux
                    - linux64-node
                    - linux64-minidump-stackwalk


mochitest-devtools-chrome-failures:
    description: "Mochitest devtools-chrome run"
    suite:
        name: mochitest-devtools-chrome
    schedules-component: mochitest-browser-chrome
    treeherder-symbol: M-f(dt)
    loopback-video: true
    variants:
        - webrender-sw
    run-on-projects:
        by-test-platform:
            android.*: []
            .*wayland.*: []  # will change to built-projects when greened up
            default: []
    tier: 3
    chunks: 2
    max-run-time:
        by-test-platform:
            linux.*wayland.*/opt: 1800
            linux.*wayland.*/debug: 3600
            default: 3600
    mozharness:
        mochitest-flavor: chrome
        chunked: true
        extra-options:
            by-test-platform:
                linux.*wayland.*:
                    - --run-failures="os == 'linux' && os_version == '22.04'"
                    - --timeout-as-pass
                    - --crash-as-pass
    instance-size: default
    allow-software-gl-layers: false


mochitest-plain-gpu:
    description: "Mochitest plain GPU run"
    suite:
        name: mochitest-plain-gpu
    treeherder-symbol: M(gpu)
    schedules-component: mochitest-plain
    loopback-video: true
    variants:
        - no-fission
        - webrender-sw+no-fission
        - webrender-sw
    run-on-projects:
        by-variant:
            webrender-sw+no-fission:
                by-test-platform:
                    android-em-7.0-x86_64-qr/debug: built-projects
                    linux.*asan.*: ['trunk']
                    linux.*64(-shippable)?-qr/(opt|debug): ['trunk']
                    default: []
            webrender-sw:
                by-test-platform:
                    linux.*64-qr/debug: built-projects
                    default: []
            no-fission:
                by-test-platform:
                    android-em-7.0-x86_64-qr/debug-isolated-process: []
                    linux.*64-ccov-qr/opt: []
                    linux1804-32.*: []
                    .*-tsan-qr/opt: []
                    .*wayland.*: []
                    linux.*: ['trunk']  # linux opt/debug/asan
                    android.*: built-projects
                    default: []
            default:
                by-test-platform:
                    android-em-7.0-x86_64-qr/debug-isolated-process: []
                    default: built-projects
    virtualization: virtual-with-gpu
    tier:
        by-test-platform:
            android-em-7.0-x86_64-qr/debug-isolated-process: 3
            default: default
    mozharness:
        mochitest-flavor: plain
        extra-options:
            by-test-platform:
                android.*:
                    # note that Android runs fewer suites than other platforms
                    - --test-suite=mochitest-plain-gpu
                default:
                    - --mochitest-suite=mochitest-plain-gpu
    instance-size:
        by-test-platform:
            linux.*64-tsan-qr/opt: xlarge  # runs out of memory otherwise using 8GB
            default: default

mochitest-chrome-gpu:
    description: "Mochitest chrome GPU run"
    suite:
        name: mochitest-chrome-gpu
    treeherder-symbol: M(gpu-c)
    loopback-video: true
    virtualization: virtual-with-gpu
    run-without-variant: false
    variants:
        - 1proc
        - socketprocess_networking+1proc
        - webrender-sw+1proc
    run-on-projects:
        by-variant:
            socketprocess_networking+1proc: []
            webrender-sw+1proc:
                by-test-platform:
                    android-em-7.0-x86_64-qr/debug: built-projects
                    linux.*64-qr/debug: built-projects
                    default: []
            1proc:
                by-test-platform:
                    android.*/.*: []
                    default: built-projects
    tier: default
    mozharness:
        mochitest-flavor: chrome
        extra-options:
            by-test-platform:
                android.*:
                    # note that Android runs fewer suites than other platforms
                    - --test-suite=mochitest-chrome-gpu
                default:
                    - --mochitest-suite=mochitest-chrome-gpu
    instance-size:
        by-test-platform:
            linux.*64-tsan-qr/opt: xlarge  # runs out of memory using 8GB of memory
            default: default

mochitest-media:
    description: "Mochitest media run"
    treeherder-symbol: M(mda)
    schedules-component: mochitest-plain
    max-run-time:
        by-test-platform:
            windows.*-ccov.*/.*: 7200
            macosx.*64-ccov.*/.*: 7200
            linux.*64-tsan-qr/opt: 7200
            default: 5400
    variants:
        - media-gpu
        - no-fission
        - socketprocess+no-fission
        - socketprocess
        - webgl-ipc
        - webrender-sw+no-fission
        - webrender-sw
        - wmf-media-engine
        - msix
    run-on-projects:
        by-variant:
            webgl-ipc:
                by-test-platform:
                    android.*: []
                    windows.*ccov.*: []
                    .*hw-ref.*: []
                    linux.*64(-shippable|-asan|-tsan)?-qr/opt: ['autoland', 'mozilla-central']
                    macosx.*-64(-shippable)?-qr/(opt|debug): ['autoland', 'mozilla-central']
                    windows1.*(-shippable)?-qr/(opt|debug): ['autoland', 'mozilla-central']
                    windows.*-asan-qr/opt: ['autoland', 'mozilla-central']
                    default: []
            socketprocess+no-fission:
                by-test-platform:
                    .*hw-ref.*: []
                    android-em-7.0-x86_64-qr/debug: ['autoland', 'mozilla-central']
                    android-hw-.*-aarch64-qr/debug: built-projects
                    linux1804-64-qr/debug: ['trunk']
                    linux1804-64(-shippable|-asan)?-qr/opt: ['trunk']
                    default: []
            socketprocess:
                by-test-platform:
                    android.*: []
                    windows.*ccov.*: []
                    .*hw-ref.*: []
                    linux.*64(-asan|-devedition|-shippable)?-qr/(opt|debug): built-projects
                    linux.*64-tsan-qr/opt: ['autoland', 'mozilla-central']
                    macosx.*-64(-devedition|-shippable)?-qr/(opt|debug): built-projects
                    windows1.*(-devedition|-shippable)?-qr/(opt|debug): built-projects
                    windows.*-asan-qr/opt: ['autoland', 'mozilla-central']
                    default: []
            webrender-sw+no-fission:
                by-test-platform:
                    .*hw-ref.*: []
                    android-em-7.0-x86_64-qr/debug: ['autoland', 'mozilla-central']
                    linux1804-64-qr/debug: ['trunk']
                    linux1804-64(-shippable|-asan)?-qr/opt: ['trunk']
                    default: []
            webrender-sw:
                by-test-platform:
                    android.*: []
                    .*hw-ref.*: []
                    linux1804-64-qr/debug: ['autoland', 'mozilla-central']
                    default: []
            no-fission:
                by-test-platform:
                    android-hw-.*/opt: []
                    .*hw-ref.*: []
                    android-hw-.*-arm7.*/(?:debug)?: ['trunk', 'mozilla-beta', 'mozilla-release']
                    android-em-7.0-x86_64-qr/debug-isolated-process: []
                    android.*: built-projects
                    linux1804-64-qr/debug: ['trunk']
                    linux1804-64(-shippable|-asan)?-qr/opt: ['trunk']
                    default: []
            wmf-media-engine:
                by-test-platform:
                    .*hw-ref.*: []
                    windows1.*ccov.*: []
                    windows1.*-64.*: ['autoland', 'mozilla-central']
                    default: []
            msix:
                by-test-platform:
                    .*hw-ref.*: []
                    windows11-64-2009-shippable-qr/opt: built-projects
                    windows11-64-2009-qr/opt: ['autoland']
                    windows11-64-2009-qr/debug: ['autoland']
                    default: []
            media-gpu:
                by-test-platform:
                    .*hw-ref.*: []
                    (macosx.*64|windows11.*)(-shippable)?-qr/(opt|debug): ['autoland', 'mozilla-central', 'mozilla-beta']
                    default: []
                    # TODO : add Android, it hasn't supported 'tags'
                    # TODO : add Linux, it would crash on gfxFeature.cpp:180
            default:
                by-test-platform:
                    .*hw-ref.*: []
                    android-hw.*/opt: []
                    android-em-7.0-x86_64-qr/debug-isolated-process: []
                    android.*: built-projects
                    linux.*(asan|ccov)/opt: []
                    .*(ccov/|asan/|-32).*: built-projects
                    (android|linux|windows10-64-2009|windows11-64-2009|macos)(?!.*-qr).*: []
                    default: built-projects
    loopback-video: true
    chunks:
        by-variant:
            wmf-media-engine: 1
            media-gpu: 1
            default:
                by-test-platform:
                    (android|macos).*/opt: 1
                    ^(?!.*asan).*windows1.*/opt: 1
                    linux.*/debug: 3
                    linux.*64-tsan-qr/opt: 5
                    default: 2
    mozharness:
        mochitest-flavor: plain
        chunked:
            by-test-platform:
                android.*: false
                macosx.*64.*: false
                windows1.*: false
                default: true
        extra-options:
            by-test-platform:
                android-em-7.*:
                    - --setpref=webgl.out-of-process=false
                    - --setpref=security.sandbox.content.headless=false
                    - --setpref=gfx.canvas.accelerated=false
                default:
                    - --setpref=webgl.out-of-process=false
                    - --setpref=security.sandbox.content.headless=false
    tier:
        by-test-platform:
            .*ccov.*: 2
            android-em.*: 1
            android-em-7.0-x86_64-qr/debug-isolated-process: 3
            android-hw.*: 1
            default: default

mochitest-valgrind:
    description: "Mochitest plain Valgrind run"
    suite:
        name: mochitest-valgrind-plain
    treeherder-symbol: M-V()
    run-on-projects: []
    test-manifest-loader: null  # don't load tests in the taskgraph
    tier: 3
    loopback-video: true
    chunks: 40
    max-run-time: 14400
    run-without-variant: false
    variants: ["1proc"]
    allow-software-gl-layers: false
    mozharness:
        mochitest-flavor: plain
        chunked: true

mochitest-webgl1-core:
    description: "Mochitest webgl1-core run"
    treeherder-symbol: M(gl1c)
    schedules-component: mochitest-plain
    virtualization: virtual-with-gpu
    test-manifest-loader: null  # don't load tests in the taskgraph
    loopback-video: true
    max-run-time:
        by-test-platform:
            macosx.*64-ccov.*/.*: 7200
            default: 1800
    variants:
        - no-fission
        - webgl-ipc
        - webrender-sw+no-fission
        - webrender-sw
    run-on-projects:
        by-variant:
            webgl-ipc:
                by-test-platform:
                    .*-(ccov|tsan|wayland).*: []
                    linux.*-64.*: ["trunk"]
                    mac.*: ["trunk"]
                    win.*: ["trunk"]
                    default: []
            webrender-sw+no-fission:
                by-test-platform:
                    linux.*64-qr/debug: ['trunk']
                    default: []
            webrender-sw:
                by-test-platform:
                    linux.*64-qr/debug: built-projects
                    default: []
            no-fission:
                by-test-platform:
                    android-hw-.*(?<!-shippable)(-qr)?/opt: ['mozilla-central', 'mozilla-beta', 'mozilla-release']
                    android-hw.*aarch.*-shippable-qr/opt: ['mozilla-central']
                    android-hw.*aarch.*-qr/debug: ['mozilla-central']
                    linux1804-64-qr/debug: ['trunk']
                    linux1804-64(-shippable|-asan)?-qr/opt: ['trunk']
                    default: []
            default:
                by-test-platform:
                    android.*: []
                    .*-tsan.*: []
                    default: built-projects
    # Bug 1296733: llvmpipe with mesa 9.2.1 lacks thread safety
    allow-software-gl-layers: false
    mozharness:
        mochitest-flavor: plain
        extra-options:
            - --setpref=webgl.out-of-process=false
            - --setpref=security.sandbox.content.headless=false

mochitest-webgl1-ext:
    description: "Mochitest webgl1-ext run"
    treeherder-symbol: M(gl1e)
    schedules-component: mochitest-plain
    virtualization: virtual-with-gpu
    chunks:
        by-test-platform:
            android.*: 2
            default: 1
    test-manifest-loader: null  # don't load tests in the taskgraph
    loopback-video: true
    max-run-time: 2700
    variants:
        - no-fission
        - webgl-ipc
        - webrender-sw+no-fission
        - webrender-sw
    run-on-projects:
        by-variant:
            webgl-ipc:
                by-test-platform:
                    .*-(ccov|tsan|wayland).*/.*: []
                    linux.*-64.*: ["trunk"]
                    mac.*: ["trunk"]
                    win.*: ["trunk"]
                    default: []
            webrender-sw+no-fission:
                by-test-platform:
                    linux.*64-qr/debug: ['trunk']
                    default: []
            webrender-sw:
                by-test-platform:
                    linux.*64-qr/debug: built-projects
                    default: []
            no-fission:
                by-test-platform:
                    android-hw-.*(?<!-shippable)(-qr)?/opt: ['mozilla-central', 'mozilla-beta', 'mozilla-release']
                    android-hw.*aarch.*-shippable-qr/opt: ['mozilla-central']
                    android-hw.*aarch.*-qr/debug: ['mozilla-central']
                    linux1804-64-qr/debug: ['trunk']
                    linux1804-64(-shippable|-asan)?-qr/opt: ['trunk']
                    default: []
            default:
                by-test-platform:
                    android.*: []
                    .*-tsan.*: []
                    default: built-projects
    # Bug 1296733: llvmpipe with mesa 9.2.1 lacks thread safety
    allow-software-gl-layers: false
    mozharness:
        mochitest-flavor: plain
        chunked: true
        extra-options:
            - --setpref=webgl.out-of-process=false
            - --setpref=security.sandbox.content.headless=false

mochitest-webgl2-core:
    description: "Mochitest webgl2-core run"
    treeherder-symbol: M(gl2c)
    schedules-component: mochitest-plain
    virtualization: virtual-with-gpu
    chunks:
        by-test-platform:
            android.*: 2
            default: 1
    test-manifest-loader: null  # don't load tests in the taskgraph
    loopback-video: true
    max-run-time: 1800
    variants:
        - no-fission
        - webgl-ipc
        - webrender-sw+no-fission
        - webrender-sw
    run-on-projects:
        by-variant:
            webgl-ipc:
                by-test-platform:
                    .*-(ccov|tsan|wayland).*/.*: []
                    android.*: []
                    linux.*-64.*: ["trunk"]
                    mac.*: ["trunk"]
                    win.*: ["trunk"]
                    default: []
            webrender-sw+no-fission:
                by-test-platform:
                    linux.*64-qr/debug: ['trunk']
                    default: []
            webrender-sw:
                by-test-platform:
                    linux.*64-qr/debug: built-projects
                    default: []
            no-fission:
                by-test-platform:
                    android-hw-.*(?<!-shippable)(-qr)?/opt: ['mozilla-central', 'mozilla-beta', 'mozilla-release']
                    android-hw.*aarch.*-shippable-qr/opt: ['mozilla-central']
                    android-hw.*aarch.*-qr/debug: ['mozilla-central']
                    linux1804-64-qr/debug: ['trunk']
                    linux1804-64(-shippable|-asan)?-qr/opt: ['trunk']
                    default: []
            default:
                by-test-platform:
                    android.*: []
                    .*-(tsan|wayland).*: []
                    default: built-projects
    # Bug 1296733: llvmpipe with mesa 9.2.1 lacks thread safety
    allow-software-gl-layers: false
    mozharness:
        mochitest-flavor: plain
        chunked: true

mochitest-webgl2-ext:
    description: "Mochitest webgl2-ext run"
    treeherder-symbol: M(gl2e)
    schedules-component: mochitest-plain
    virtualization: virtual-with-gpu
    variants:
        - no-fission
        - webgl-ipc
        - webrender-sw+no-fission
        - webrender-sw
    run-on-projects:
        by-variant:
            webgl-ipc:
                by-test-platform:
                    .*(ccov|tsan|wayland).*/.*: []
                    linux.*-64.*: ["trunk"]
                    mac.*: ["trunk"]
                    win.*: ["trunk"]
                    default: []
            webrender-sw+no-fission:
                by-test-platform:
                    linux.*64-qr/debug: ["trunk"]
                    default: []
            webrender-sw:
                by-test-platform:
                    linux.*64-qr/debug: built-projects
                    default: []
            no-fission:
                by-test-platform:
                    linux1804-64-qr/debug: ['trunk']
                    linux1804-64(-shippable|-asan)?-qr/opt: ['trunk']
                    android.*: built-projects
                    default: []
            default:
                by-test-platform:
                    android.*: []
                    .*-tsan.*: []
                    default: built-projects
    chunks: 4
    test-manifest-loader: null  # don't load tests in the taskgraph
    loopback-video: true
    max-run-time: 2700
    # Bug 1296733: llvmpipe with mesa 9.2.1 lacks thread safety
    allow-software-gl-layers: false
    mozharness:
        mochitest-flavor: plain
        chunked: true
        extra-options:
            - --setpref=webgl.out-of-process=false
            - --setpref=security.sandbox.content.headless=false

mochitest-webgl2-deqp:
    description: "Mochitest webgl2-deqp run"
    treeherder-symbol: M(gl2d)
    schedules-component: mochitest-plain
    virtualization: virtual-with-gpu
    variants:
        - webgl-ipc
        - webrender-sw
    run-on-projects: []  # Don't run this for now.
    chunks: 4
    loopback-video: true
    max-run-time: 1800
    # Bug 1296733: llvmpipe with mesa 9.2.1 lacks thread safety
    allow-software-gl-layers: false
    mozharness:
        mochitest-flavor: plain
        chunked: true
        extra-options:
            - --setpref=webgl.out-of-process=false
            - --setpref=security.sandbox.content.headless=false

mochitest-webgpu:
    description: "Mochitest webgpu run"
    treeherder-symbol: M(webgpu)
    schedules-component: mochitest-plain
    virtualization: virtual-with-gpu
    loopback-video: true
    variants:
        - no-fission
        - webrender-sw+no-fission
    run-on-projects:
        by-variant:
            webrender-sw+no-fission:
                by-test-platform:
                    android-em-7.0-x86_64-qr/debug: ["trunk"]
                    default: []
            no-fission:
                by-test-platform:
                    linux2204-64-qr/debug: ['trunk']
                    linux2204-64(-shippable|-asan)?-qr/opt: ['trunk']
                    default: []
            default:
                by-test-platform:
                    android.*: []
                    macosx.*: []
                    # Things like asan/tsan/32bit are restricted to --full
                    # via UNCOMMON_TRY_TASK_LABELS
                    # in taskcluster/gecko_taskgraph/target_tasks.py.
                    default: ['trunk']
    max-run-time:
        by-test-platform:
            macosx.*64-ccov.*/.*: 7200
            default: 1800
    # Bug 1296733: llvmpipe with mesa 9.2.1 lacks thread safety
    allow-software-gl-layers: false
    mozharness:
        mochitest-flavor: plain

mochitest-remote:
    description: "Mochitest for the remote agent (/remote folder)"
    suite:
        name: mochitest-remote
    treeherder-symbol: M(remote)
    loopback-video: true
    variants:
        - no-fission
        - socketprocess_networking
        - webrender-sw+no-fission
        - webrender-sw
    run-on-projects:
        by-variant:
            socketprocess_networking:
                by-test-platform:
                    .*asan.*: []
                    .*ccov.*: []
                    (linux.*64|macosx.*64|windows1.*-64.*)(-shippable)?-qr/(opt|debug): ['autoland', 'mozilla-central']
                    default: []
            webrender-sw+no-fission:
                by-test-platform:
                    linux.*64-qr/debug: ['trunk']
                    default: []
            webrender-sw:
                by-test-platform:
                    linux.*64-qr/debug: ['all']
                    default: []
            no-fission:
                by-test-platform:
                    linux1804-64-qr/debug: ['trunk']
                    linux1804-64(-shippable|-asan)?-qr/opt: ['trunk']
                    default: []
            default:
                by-test-platform:
                    android.*: []
                    default: built-projects
    tier: default
    max-run-time: 5400
    mozharness:
        mochitest-flavor: browser
        extra-options:
            - --setpref=remote.log.level=Trace
    virtualization: virtual