node.yml (9958B)
1 # This Source Code Form is subject to the terms of the Mozilla Public 2 # License, v. 2.0. If a copy of the MPL was not distributed with this 3 # file, You can obtain one at http://mozilla.org/MPL/2.0/. 4 --- 5 task-defaults: 6 platform: linux2404-64/opt 7 worker-type: t-linux-docker-amd 8 worker: 9 docker-image: {in-tree: "ubuntu2404-test"} 10 max-run-time: 1800 11 treeherder: 12 kind: test 13 tier: 1 14 run-on-repo-type: [hg] 15 run: 16 using: run-task 17 cwd: '{checkout}' 18 use-caches: [checkout, npm] 19 20 newtab-unit-tests: 21 description: newtab unit tests 22 treeherder: 23 symbol: node(newtab) 24 require-build: 25 by-project: 26 autoland: 27 linux2404-64/opt: build-linux64/opt 28 try: 29 linux2404-64/opt: build-linux64/opt 30 default: 31 linux2404-64/opt: build-linux64-shippable/opt 32 fetches: 33 build: 34 - target.tar.xz 35 toolchain: 36 - linux64-node 37 - node-modules 38 - newtab-node-modules 39 run: 40 command: > 41 cd /builds/worker/checkouts/gecko && 42 cp -r $MOZ_FETCHES_DIR/node_modules node_modules && 43 cd /builds/worker/checkouts/gecko/browser/extensions/newtab && 44 cp -r $MOZ_FETCHES_DIR/newtab/node_modules node_modules && 45 FIREFOX_BIN=$MOZ_FETCHES_DIR/firefox/firefox PATH=$PATH:$MOZ_FETCHES_DIR/node/bin node bin/try-runner.js 46 when: 47 files-changed: 48 - "browser/extensions/newtab/**" 49 50 newtab-unit-tests-ccov: 51 description: newtab unit tests code coverage 52 treeherder: 53 symbol: node(newtab-ccov) 54 worker: 55 artifacts: 56 - name: public/code-coverage-grcov.zip 57 path: /builds/worker/checkouts/gecko/browser/extensions/newtab/logs/coverage/code-coverage-grcov.zip 58 type: file 59 require-build: 60 by-project: 61 try: 62 linux2404-64/opt: build-linux64/opt 63 default: 64 linux2404-64/opt: build-linux64-shippable/opt 65 fetches: 66 build: 67 - target.tar.xz 68 toolchain: 69 - linux64-node 70 - node-modules 71 - newtab-node-modules 72 run: 73 command: > 74 cd /builds/worker/checkouts/gecko && 75 cp -r $MOZ_FETCHES_DIR/node_modules node_modules && 76 cd /builds/worker/checkouts/gecko/browser/extensions/newtab && 77 cp -r $MOZ_FETCHES_DIR/newtab/node_modules node_modules && 78 FIREFOX_BIN=$MOZ_FETCHES_DIR/firefox/firefox PATH=$PATH:$MOZ_FETCHES_DIR/node/bin node bin/try-runner.js 79 # This should only run on mozilla-central, as the bot will only parse mozilla-central 80 # coverage anyways. 81 run-on-projects: ["mozilla-central"] 82 # Note the lack of a "when" rule here. This is to avoid seeing fluctuating 83 # coverage on coverage.moz.tools / searchfox depending on whether the latest 84 # push contained patches touching these files or not. 85 86 messagingsystem-unit-tests: 87 description: messagingsystem unit tests 88 treeherder: 89 symbol: node(messagingsystem) 90 require-build: 91 by-project: 92 autoland: 93 linux2404-64/opt: build-linux64/opt 94 try: 95 linux2404-64/opt: build-linux64/opt 96 default: 97 linux2404-64/opt: build-linux64-shippable/opt 98 fetches: 99 build: 100 - target.tar.xz 101 toolchain: 102 - linux64-node 103 - node-modules 104 - aboutwelcome-node-modules 105 - asrouter-node-modules 106 run: 107 command: > 108 cd /builds/worker/checkouts/gecko && 109 cp -r $MOZ_FETCHES_DIR/node_modules node_modules && 110 cd /builds/worker/checkouts/gecko/browser/components/aboutwelcome && 111 cp -r $MOZ_FETCHES_DIR/aboutwelcome/node_modules node_modules && 112 cd /builds/worker/checkouts/gecko/browser/components/asrouter && 113 cp -r $MOZ_FETCHES_DIR/asrouter/node_modules node_modules && 114 FIREFOX_BIN=$MOZ_FETCHES_DIR/firefox/firefox PATH=$PATH:$MOZ_FETCHES_DIR/node/bin node bin/try-runner.js 115 when: 116 files-changed: 117 - "browser/components/aboutwelcome/**" 118 - "browser/components/asrouter/**" 119 120 messagingsystem-unit-tests-ccov: 121 description: messaging system unit tests code coverage 122 treeherder: 123 symbol: node(messagingsystem-ccov) 124 worker: 125 artifacts: 126 - name: public/code-coverage-grcov.zip 127 path: /builds/worker/checkouts/gecko/browser/components/asrouter/logs/coverage/code-coverage-grcov.zip 128 type: file 129 require-build: 130 by-project: 131 try: 132 linux2404-64/opt: build-linux64/opt 133 default: 134 linux2404-64/opt: build-linux64-shippable/opt 135 fetches: 136 build: 137 - target.tar.xz 138 toolchain: 139 - linux64-node 140 - node-modules 141 - aboutwelcome-node-modules 142 - asrouter-node-modules 143 run: 144 command: > 145 cd /builds/worker/checkouts/gecko && 146 cp -r $MOZ_FETCHES_DIR/node_modules node_modules && 147 cd /builds/worker/checkouts/gecko/browser/components/aboutwelcome && 148 cp -r $MOZ_FETCHES_DIR/aboutwelcome/node_modules node_modules && 149 cd /builds/worker/checkouts/gecko/browser/components/asrouter && 150 cp -r $MOZ_FETCHES_DIR/asrouter/node_modules node_modules && 151 FIREFOX_BIN=$MOZ_FETCHES_DIR/firefox/firefox PATH=$PATH:$MOZ_FETCHES_DIR/node/bin node bin/try-runner.js 152 # This should only run on mozilla-central, as the bot will only parse mozilla-central 153 # coverage anyways. 154 run-on-projects: ["mozilla-central"] 155 # Note the lack of a "when" rule here. This is to avoid seeing fluctuating 156 # coverage on coverage.moz.tools / searchfox depending on whether the latest 157 # push contained patches touching these files or not. 158 159 devtools-tests: 160 description: devtools node-based tests (for instance jest) 161 attributes: 162 code-review: true 163 treeherder: 164 symbol: node(devtools) 165 worker: 166 docker-image: {in-tree: "lint"} 167 artifacts: 168 - type: file 169 name: public/code-review/issues.json 170 path: /builds/worker/issues.json 171 run: 172 command: > 173 ./mach devtools-node-test --artifact=/builds/worker/issues.json 174 fetches: 175 toolchain: 176 - linux64-node 177 when: 178 files-changed: 179 - 'devtools/client/**' 180 - 'devtools/shared/**' 181 182 devtools-verify-bundle: 183 description: devtools bundle checker 184 attributes: 185 code-review: true 186 treeherder: 187 symbol: node(devtools-bundle) 188 tier: 2 189 worker: 190 docker-image: {in-tree: "lint"} 191 max-run-time: 1200 192 artifacts: 193 - type: file 194 name: public/code-review/issues.json 195 path: /builds/worker/issues.json 196 run: 197 command: > 198 cd devtools/client/debugger && 199 yarn && 200 $MOZ_FETCHES_DIR/node/bin/node bin/bundle.js && 201 cd ../../.. && 202 ./mach python taskcluster/scripts/misc/verify-devtools-bundle.py --output /builds/worker/issues.json 203 fetches: 204 toolchain: 205 - linux64-node 206 when: 207 files-changed: 208 - 'devtools/**' 209 210 eslint-plugin-mozilla: 211 description: eslint-plugin-mozilla integration tests 212 treeherder: 213 symbol: node(epm) 214 worker: 215 docker-image: {in-tree: "lint"} 216 run: 217 command: > 218 cp -r $MOZ_FETCHES_DIR/eslint-plugin-mozilla/node_modules tools/lint/eslint/eslint-plugin-mozilla/node_modules && 219 ./mach configure --disable-compile-environment && 220 PATH=$PATH:$MOZ_FETCHES_DIR/node/bin ./mach npm test --prefix tools/lint/eslint/eslint-plugin-mozilla 221 when: 222 files-changed: 223 - 'tools/lint/eslint/eslint-plugin-mozilla/**' 224 fetches: 225 toolchain: 226 - linux64-node 227 - eslint-plugin-mozilla 228 229 stylelint-plugin-mozilla: 230 description: stylelint-plugin-mozilla integration tests 231 treeherder: 232 symbol: node(spm) 233 worker: 234 docker-image: {in-tree: "lint"} 235 run: 236 command: > 237 cp -r $MOZ_FETCHES_DIR/stylelint-plugin-mozilla/node_modules tools/lint/stylelint/stylelint-plugin-mozilla/node_modules && 238 ./mach configure --disable-compile-environment && 239 PATH=$PATH:$MOZ_FETCHES_DIR/node/bin ./mach npm test --prefix tools/lint/stylelint/stylelint-plugin-mozilla 240 when: 241 files-changed: 242 - 'tools/lint/stylelint/stylelint-plugin-mozilla/**' 243 - toolkit/themes/shared/design-system/dist/tokens-table.mjs 244 fetches: 245 toolchain: 246 - linux64-node 247 - stylelint-plugin-mozilla 248 249 design-tokens-tests: 250 description: design tokens unit tests 251 treeherder: 252 symbol: node(design-tokens) 253 require-build: 254 by-project: 255 autoland: 256 linux2404-64/opt: build-linux64/opt 257 try: 258 linux2404-64/opt: build-linux64/opt 259 default: 260 linux2404-64/opt: build-linux64-shippable/opt 261 run: 262 command: > 263 cd /builds/worker/checkouts/gecko && 264 rm -rf node_modules && 265 PATH=$PATH:$MOZ_FETCHES_DIR/node/bin $MOZ_FETCHES_DIR/node/bin/npm ci && 266 cd /builds/worker/checkouts/gecko/toolkit/themes/shared/design-system && 267 rm -rf node_modules && 268 PATH=$PATH:$MOZ_FETCHES_DIR/node/bin $MOZ_FETCHES_DIR/node/bin/npm ci && 269 $MOZ_FETCHES_DIR/node/bin/node tests/try-runner.js 270 fetches: 271 toolchain: 272 - linux64-node 273 when: 274 files-changed: 275 - "toolkit/themes/shared/design-system/**"