summaryrefslogtreecommitdiffstats
path: root/taskcluster/ci/source-test/file-metadata.yml
blob: 9fee8e9b93d2ea86893e1f32add494d6f6ec945e (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
# 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:
    platform: lint/opt
    treeherder:
        kind: other
        tier: 1
    worker-type: t-linux-xlarge-source
    worker:
        artifacts:
            - type: directory
              path: /builds/worker/artifacts
              name: public
        docker-image: {in-tree: "lint"}
        max-run-time: 1800
    run:
        using: mach

bugzilla-components:
    description: Generate metadata about source files and Bugzilla
    treeherder:
        symbol: Bugzilla
        tier: 1
    index:
        product: source
        job-name: source-bugzilla-info
    run:
        mach: file-info bugzilla-automation /builds/worker/artifacts
    worker:
        max-run-time: 1800
    run-on-projects: ['autoland', 'mozilla-central']

test-info-xorigin:
    description: Generate test manifest metadata for tests disabled on cross-origin
    treeherder:
        symbol: test-info(xorigin)
        tier: 2
    index:
        product: source
        job-name: test-info-xorigin
    worker:
        docker-image: {in-tree: debian11-amd64-build}
    run-on-projects: ['mozilla-central']
    fetches:
        toolchain:
            - linux64-clang
            - linux64-clang-tidy
            - linux64-rust
            - linux64-cbindgen
            - linux64-nasm
            - linux64-node
            - sysroot-x86_64-linux-gnu
            - sysroot-wasm32-wasi
    run:
        using: run-task
        cwd: '{checkout}'
        command: >-
            source taskcluster/scripts/misc/source-test-common.sh &&
            ./mach test-info report --show-tests --show-summary --filter-keys=fail-if,fails-if,random-if,skip-if --filter-values='(?<!!)xorigin' --output-file /builds/worker/artifacts/test-info-xorigin.json

test-info-disabled-by-os:
    description: Generate test manifest metadata for tests disabled on each operating system
    treeherder:
        symbol: test-info(disabled-by-os)
        tier: 2
    index:
        product: source
        job-name: test-info-disabled-by-os
    worker:
        docker-image: {in-tree: debian11-amd64-build}
    run-on-projects: ['mozilla-central']
    fetches:
        toolchain:
            - linux64-clang
            - linux64-clang-tidy
            - linux64-rust
            - linux64-cbindgen
            - linux64-nasm
            - linux64-node
            - sysroot-x86_64-linux-gnu
            - sysroot-wasm32-wasi
    run:
        using: run-task
        cwd: '{checkout}'
        command: >-
            source taskcluster/scripts/misc/source-test-common.sh &&
            ./mach test-info report --show-tests --show-summary --filter-keys=fail-if,fails-if,random-if,skip-if --filter-values='(?<!!)(android|android_version|Android|AndroidVersion|geckoview|emulator|device)' --output-file /builds/worker/artifacts/test-info-disabled-on-android.json &&
            ./mach test-info report --show-tests --show-summary --filter-keys=fail-if,fails-if,random-if,skip-if --filter-values='(?<!!)(linux|Linux)' --output-file /builds/worker/artifacts/test-info-disabled-on-linux.json &&
            ./mach test-info report --show-tests --show-summary --filter-keys=fail-if,fails-if,random-if,skip-if --filter-values='(?<!!)(osx|OSX|mac)' --output-file /builds/worker/artifacts/test-info-disabled-on-mac.json &&
            ./mach test-info report --show-tests --show-summary --filter-keys=fail-if,fails-if,random-if,skip-if --filter-values='(?<!!)(win|Windows|WINNT)' --output-file /builds/worker/artifacts/test-info-disabled-on-windows.json

test-info-all:
    description: Generate global test manifest metadata
    treeherder:
        symbol: test-info(all)
        tier: 2
    index:
        product: source
        job-name: test-info-all
    worker:
        docker-image: {in-tree: debian11-amd64-build}
        max-run-time: 5400
    run-on-projects: ['mozilla-central']
    fetches:
        toolchain:
            - linux64-clang
            - linux64-clang-tidy
            - linux64-rust
            - linux64-cbindgen
            - linux64-nasm
            - linux64-node
            - sysroot-x86_64-linux-gnu
            - sysroot-wasm32-wasi
    run:
        using: run-task
        cwd: '{checkout}'
        command: >-
            source taskcluster/scripts/misc/source-test-common.sh &&
            ./mach test-info testrun-report --output-file /builds/worker/artifacts/test-run-info.json &&
            ./mach test-info report --show-tests --show-summary --show-testruns --verbose --output-file /builds/worker/artifacts/test-info-all-tests.json &&
            ./mach test-info report --show-annotations --output-file /builds/worker/artifacts/test-info-manifest-conditions.json