File: node.yml

package info (click to toggle)
firefox 147.0.2-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 4,683,484 kB
  • sloc: cpp: 7,607,246; javascript: 6,533,185; ansic: 3,775,227; python: 1,415,393; xml: 634,561; asm: 438,951; java: 186,241; sh: 62,752; makefile: 18,079; objc: 13,092; perl: 12,808; yacc: 4,583; cs: 3,846; pascal: 3,448; lex: 1,720; ruby: 1,003; php: 436; lisp: 258; awk: 247; sql: 66; sed: 54; csh: 10; exp: 6
file content (275 lines) | stat: -rw-r--r-- 9,958 bytes parent folder | download
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
# 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/.
---
task-defaults:
    platform: linux2404-64/opt
    worker-type: t-linux-docker-amd
    worker:
        docker-image: {in-tree: "ubuntu2404-test"}
        max-run-time: 1800
    treeherder:
        kind: test
        tier: 1
    run-on-repo-type: [hg]
    run:
        using: run-task
        cwd: '{checkout}'
        use-caches: [checkout, npm]

newtab-unit-tests:
    description: newtab unit tests
    treeherder:
        symbol: node(newtab)
    require-build:
        by-project:
            autoland:
                linux2404-64/opt: build-linux64/opt
            try:
                linux2404-64/opt: build-linux64/opt
            default:
                linux2404-64/opt: build-linux64-shippable/opt
    fetches:
        build:
            - target.tar.xz
        toolchain:
            - linux64-node
            - node-modules
            - newtab-node-modules
    run:
        command: >
            cd /builds/worker/checkouts/gecko &&
            cp -r $MOZ_FETCHES_DIR/node_modules node_modules &&
            cd /builds/worker/checkouts/gecko/browser/extensions/newtab &&
            cp -r $MOZ_FETCHES_DIR/newtab/node_modules node_modules &&
            FIREFOX_BIN=$MOZ_FETCHES_DIR/firefox/firefox PATH=$PATH:$MOZ_FETCHES_DIR/node/bin node bin/try-runner.js
    when:
        files-changed:
            - "browser/extensions/newtab/**"

newtab-unit-tests-ccov:
    description: newtab unit tests code coverage
    treeherder:
        symbol: node(newtab-ccov)
    worker:
        artifacts:
            - name: public/code-coverage-grcov.zip
              path: /builds/worker/checkouts/gecko/browser/extensions/newtab/logs/coverage/code-coverage-grcov.zip
              type: file
    require-build:
        by-project:
            try:
                linux2404-64/opt: build-linux64/opt
            default:
                linux2404-64/opt: build-linux64-shippable/opt
    fetches:
        build:
            - target.tar.xz
        toolchain:
            - linux64-node
            - node-modules
            - newtab-node-modules
    run:
        command: >
            cd /builds/worker/checkouts/gecko &&
            cp -r $MOZ_FETCHES_DIR/node_modules node_modules &&
            cd /builds/worker/checkouts/gecko/browser/extensions/newtab &&
            cp -r $MOZ_FETCHES_DIR/newtab/node_modules node_modules &&
            FIREFOX_BIN=$MOZ_FETCHES_DIR/firefox/firefox PATH=$PATH:$MOZ_FETCHES_DIR/node/bin node bin/try-runner.js
    # This should only run on mozilla-central, as the bot will only parse mozilla-central
    # coverage anyways.
    run-on-projects: ["mozilla-central"]
    # Note the lack of a "when" rule here. This is to avoid seeing fluctuating
    # coverage on coverage.moz.tools / searchfox depending on whether the latest
    # push contained patches touching these files or not.

messagingsystem-unit-tests:
    description: messagingsystem unit tests
    treeherder:
        symbol: node(messagingsystem)
    require-build:
        by-project:
            autoland:
                linux2404-64/opt: build-linux64/opt
            try:
                linux2404-64/opt: build-linux64/opt
            default:
                linux2404-64/opt: build-linux64-shippable/opt
    fetches:
        build:
            - target.tar.xz
        toolchain:
            - linux64-node
            - node-modules
            - aboutwelcome-node-modules
            - asrouter-node-modules
    run:
        command: >
            cd /builds/worker/checkouts/gecko &&
            cp -r $MOZ_FETCHES_DIR/node_modules node_modules &&
            cd /builds/worker/checkouts/gecko/browser/components/aboutwelcome &&
            cp -r $MOZ_FETCHES_DIR/aboutwelcome/node_modules node_modules &&
            cd /builds/worker/checkouts/gecko/browser/components/asrouter &&
            cp -r $MOZ_FETCHES_DIR/asrouter/node_modules node_modules &&
            FIREFOX_BIN=$MOZ_FETCHES_DIR/firefox/firefox PATH=$PATH:$MOZ_FETCHES_DIR/node/bin node bin/try-runner.js
    when:
        files-changed:
            - "browser/components/aboutwelcome/**"
            - "browser/components/asrouter/**"

messagingsystem-unit-tests-ccov:
    description: messaging system unit tests code coverage
    treeherder:
        symbol: node(messagingsystem-ccov)
    worker:
        artifacts:
            - name: public/code-coverage-grcov.zip
              path: /builds/worker/checkouts/gecko/browser/components/asrouter/logs/coverage/code-coverage-grcov.zip
              type: file
    require-build:
        by-project:
            try:
                linux2404-64/opt: build-linux64/opt
            default:
                linux2404-64/opt: build-linux64-shippable/opt
    fetches:
        build:
            - target.tar.xz
        toolchain:
            - linux64-node
            - node-modules
            - aboutwelcome-node-modules
            - asrouter-node-modules
    run:
        command: >
            cd /builds/worker/checkouts/gecko &&
            cp -r $MOZ_FETCHES_DIR/node_modules node_modules &&
            cd /builds/worker/checkouts/gecko/browser/components/aboutwelcome &&
            cp -r $MOZ_FETCHES_DIR/aboutwelcome/node_modules node_modules &&
            cd /builds/worker/checkouts/gecko/browser/components/asrouter &&
            cp -r $MOZ_FETCHES_DIR/asrouter/node_modules node_modules &&
            FIREFOX_BIN=$MOZ_FETCHES_DIR/firefox/firefox PATH=$PATH:$MOZ_FETCHES_DIR/node/bin node bin/try-runner.js
    # This should only run on mozilla-central, as the bot will only parse mozilla-central
    # coverage anyways.
    run-on-projects: ["mozilla-central"]
    # Note the lack of a "when" rule here. This is to avoid seeing fluctuating
    # coverage on coverage.moz.tools / searchfox depending on whether the latest
    # push contained patches touching these files or not.

devtools-tests:
    description: devtools node-based tests (for instance jest)
    attributes:
        code-review: true
    treeherder:
        symbol: node(devtools)
    worker:
        docker-image: {in-tree: "lint"}
        artifacts:
            - type: file
              name: public/code-review/issues.json
              path: /builds/worker/issues.json
    run:
        command: >
            ./mach devtools-node-test --artifact=/builds/worker/issues.json
    fetches:
        toolchain:
            - linux64-node
    when:
        files-changed:
            - 'devtools/client/**'
            - 'devtools/shared/**'

devtools-verify-bundle:
    description: devtools bundle checker
    attributes:
        code-review: true
    treeherder:
        symbol: node(devtools-bundle)
        tier: 2
    worker:
        docker-image: {in-tree: "lint"}
        max-run-time: 1200
        artifacts:
            - type: file
              name: public/code-review/issues.json
              path: /builds/worker/issues.json
    run:
        command: >
            cd devtools/client/debugger &&
            yarn &&
            $MOZ_FETCHES_DIR/node/bin/node bin/bundle.js &&
            cd ../../.. &&
            ./mach python taskcluster/scripts/misc/verify-devtools-bundle.py --output /builds/worker/issues.json
    fetches:
        toolchain:
            - linux64-node
    when:
        files-changed:
            - 'devtools/**'

eslint-plugin-mozilla:
    description: eslint-plugin-mozilla integration tests
    treeherder:
        symbol: node(epm)
    worker:
        docker-image: {in-tree: "lint"}
    run:
        command: >
            cp -r $MOZ_FETCHES_DIR/eslint-plugin-mozilla/node_modules tools/lint/eslint/eslint-plugin-mozilla/node_modules &&
            ./mach configure --disable-compile-environment &&
            PATH=$PATH:$MOZ_FETCHES_DIR/node/bin ./mach npm test --prefix tools/lint/eslint/eslint-plugin-mozilla
    when:
        files-changed:
            - 'tools/lint/eslint/eslint-plugin-mozilla/**'
    fetches:
        toolchain:
            - linux64-node
            - eslint-plugin-mozilla

stylelint-plugin-mozilla:
    description: stylelint-plugin-mozilla integration tests
    treeherder:
        symbol: node(spm)
    worker:
        docker-image: {in-tree: "lint"}
    run:
        command: >
            cp -r $MOZ_FETCHES_DIR/stylelint-plugin-mozilla/node_modules tools/lint/stylelint/stylelint-plugin-mozilla/node_modules &&
            ./mach configure --disable-compile-environment &&
            PATH=$PATH:$MOZ_FETCHES_DIR/node/bin ./mach npm test --prefix tools/lint/stylelint/stylelint-plugin-mozilla
    when:
        files-changed:
            - 'tools/lint/stylelint/stylelint-plugin-mozilla/**'
            - toolkit/themes/shared/design-system/dist/tokens-table.mjs
    fetches:
        toolchain:
            - linux64-node
            - stylelint-plugin-mozilla

design-tokens-tests:
    description: design tokens unit tests
    treeherder:
        symbol: node(design-tokens)
    require-build:
        by-project:
            autoland:
                linux2404-64/opt: build-linux64/opt
            try:
                linux2404-64/opt: build-linux64/opt
            default:
                linux2404-64/opt: build-linux64-shippable/opt
    run:
        command: >
            cd /builds/worker/checkouts/gecko &&
            rm -rf node_modules &&
            PATH=$PATH:$MOZ_FETCHES_DIR/node/bin $MOZ_FETCHES_DIR/node/bin/npm ci &&
            cd /builds/worker/checkouts/gecko/toolkit/themes/shared/design-system &&
            rm -rf node_modules &&
            PATH=$PATH:$MOZ_FETCHES_DIR/node/bin $MOZ_FETCHES_DIR/node/bin/npm ci &&
            $MOZ_FETCHES_DIR/node/bin/node tests/try-runner.js
    fetches:
        toolchain:
            - linux64-node
    when:
        files-changed:
            - "toolkit/themes/shared/design-system/**"