commit c550d0a1594e05e5eaaa6f32fab2eea412f127c0 parent 5e07f22ad422c94b75ea978f671e62abbc05b81f Author: Andrew Halberstadt <ahal@mozilla.com> Date: Thu, 6 Nov 2025 19:30:05 +0000 Bug 1998178 - Mark desktop build and lint tasks as Git compatible, r=taskgraph-reviewers,jcristau This means that project repos forking firefox-main can potentially get these tasks running on their branches. Differential Revision: https://phabricator.services.mozilla.com/D271272 Diffstat:
30 files changed, 28 insertions(+), 2 deletions(-)
diff --git a/taskcluster/kinds/build/android-asan.yml b/taskcluster/kinds/build/android-asan.yml @@ -30,6 +30,7 @@ task-defaults: - name: public/build path: /builds/worker/artifacts/ type: directory + run-on-repo-type: [hg] run: using: mozharness script: "mozharness/scripts/fx_desktop_build.py" diff --git a/taskcluster/kinds/build/android-stuff.yml b/taskcluster/kinds/build/android-stuff.yml @@ -5,6 +5,7 @@ task-defaults: tags: android-stuff: "true" + run-on-repo-type: [hg] run: mozconfig-variant: null diff --git a/taskcluster/kinds/build/android.yml b/taskcluster/kinds/build/android.yml @@ -43,6 +43,7 @@ task-defaults: - name: public/reports path: /builds/worker/workspace/obj-build/gradle/build/reports type: directory + run-on-repo-type: [hg] run: using: mozharness script: "mozharness/scripts/fx_desktop_build.py" diff --git a/taskcluster/kinds/build/fenix.yml b/taskcluster/kinds/build/fenix.yml @@ -14,6 +14,7 @@ task-defaults: max-run-time: 7200 env: GRADLE_USER_HOME: "/builds/worker/checkouts/gecko/mobile/android/gradle/dotgradle-offline" + run-on-repo-type: [hg] run: using: mozharness script: "mozharness/scripts/fx_desktop_build.py" diff --git a/taskcluster/kinds/build/ios.yml b/taskcluster/kinds/build/ios.yml @@ -11,6 +11,7 @@ task-defaults: worker: max-run-time: 7200 run-on-projects: ['trunk'] + run-on-repo-type: [hg] run: using: mozharness actions: [get-secrets, build] diff --git a/taskcluster/kinds/build/kind.yml b/taskcluster/kinds/build/kind.yml @@ -32,7 +32,6 @@ tasks-from: - fenix.yml task-defaults: - run-on-repo-type: [hg] worker: env: MACH_BUILD_PYTHON_NATIVE_PACKAGE_SOURCE: system diff --git a/taskcluster/kinds/build/windows-mingw.yml b/taskcluster/kinds/build/windows-mingw.yml @@ -6,6 +6,7 @@ task-defaults: worker-type: b-linux-amd worker: max-run-time: 7200 + run-on-repo-type: [hg] run: using: mozharness actions: [build] diff --git a/taskcluster/kinds/source-test/android-compare-locales.yml b/taskcluster/kinds/source-test/android-compare-locales.yml @@ -4,6 +4,7 @@ --- task-defaults: description: 'Validate android strings.xml with compare-locales' + run-on-repo-type: [hg] run: using: run-task cwd: '{checkout}' diff --git a/taskcluster/kinds/source-test/android-detekt.yml b/taskcluster/kinds/source-test/android-detekt.yml @@ -4,6 +4,7 @@ --- task-defaults: description: 'Run detekt over all modules' + run-on-repo-type: [hg] run: using: gradlew gradlew: ['detekt'] diff --git a/taskcluster/kinds/source-test/android-lint.yml b/taskcluster/kinds/source-test/android-lint.yml @@ -4,6 +4,7 @@ --- task-defaults: description: 'Run lint over all modules' + run-on-repo-type: [hg] run: using: gradlew gradlew: ['lint'] diff --git a/taskcluster/kinds/source-test/buildconfig.yml b/taskcluster/kinds/source-test/buildconfig.yml @@ -5,6 +5,7 @@ task-defaults: description: Make sure the content of .buildconfig.yml matches what gradle knows about its projects always-target: true + run-on-repo-type: [hg] run: using: run-task cwd: '{checkout}' diff --git a/taskcluster/kinds/source-test/clang.yml b/taskcluster/kinds/source-test/clang.yml @@ -3,6 +3,7 @@ # file, You can obtain one at http://mozilla.org/MPL/2.0/. --- task-defaults: + run-on-repo-type: [hg] run-on-projects: ["trunk"] platform: linux64/debug worker-type: t-linux-docker-amd diff --git a/taskcluster/kinds/source-test/doc.yml b/taskcluster/kinds/source-test/doc.yml @@ -15,6 +15,7 @@ generate: symbol: doc(generate) kind: test tier: 1 + run-on-repo-type: [hg] run-on-projects: ['trunk'] worker-type: b-linux-medium-gcp worker: diff --git a/taskcluster/kinds/source-test/file-metadata.yml b/taskcluster/kinds/source-test/file-metadata.yml @@ -15,6 +15,7 @@ task-defaults: name: public docker-image: {in-tree: "lint"} max-run-time: 1800 + run-on-repo-type: [hg] run: using: mach diff --git a/taskcluster/kinds/source-test/jsshell.yml b/taskcluster/kinds/source-test/jsshell.yml @@ -28,6 +28,7 @@ task-defaults: treeherder: kind: test tier: 2 + run-on-repo-type: [hg] run: using: mach mach: jsshell-bench --perfherder={shell} --binary=$MOZ_FETCHES_DIR/$JSSHELL {test} diff --git a/taskcluster/kinds/source-test/kind.yml b/taskcluster/kinds/source-test/kind.yml @@ -46,7 +46,6 @@ tasks-from: - wpt-unittest.yml task-defaults: - run-on-repo-type: [hg] use-python: default use-uv: true attributes: diff --git a/taskcluster/kinds/source-test/ktlint.yml b/taskcluster/kinds/source-test/ktlint.yml @@ -4,6 +4,7 @@ --- task-defaults: description: 'Run ktlint over all modules' + run-on-repo-type: [hg] run: using: gradlew gradlew: ['ktlint'] diff --git a/taskcluster/kinds/source-test/mozlint-android.yml b/taskcluster/kinds/source-test/mozlint-android.yml @@ -55,6 +55,7 @@ task-defaults: - name: public/reports path: /builds/worker/checkouts/gecko/obj-firefox/gradle/build/reports type: directory + run-on-repo-type: [hg] run: using: run-task tooltool-downloads: internal # For internal toolchains. diff --git a/taskcluster/kinds/source-test/node.yml b/taskcluster/kinds/source-test/node.yml @@ -11,6 +11,7 @@ task-defaults: treeherder: kind: test tier: 1 + run-on-repo-type: [hg] run: using: run-task cwd: '{checkout}' diff --git a/taskcluster/kinds/source-test/puppeteer.yml b/taskcluster/kinds/source-test/puppeteer.yml @@ -3,6 +3,7 @@ # file, You can obtain one at http://mozilla.org/MPL/2.0/. --- task-defaults: + run-on-repo-type: [hg] platform: linux2404-64/opt require-build: by-project: diff --git a/taskcluster/kinds/source-test/python-android.yml b/taskcluster/kinds/source-test/python-android.yml @@ -24,6 +24,7 @@ android-gradle-build: PERFHERDER_EXTRA_OPTIONS: android-gradle-build TINDERBOX_OUTPUT: '1' max-run-time: 3600 + run-on-repo-type: [hg] run: using: run-task command: > diff --git a/taskcluster/kinds/source-test/python.yml b/taskcluster/kinds/source-test/python.yml @@ -36,6 +36,7 @@ task-defaults: treeherder: kind: test tier: 1 + run-on-repo-type: [hg] run: using: mach use-caches: [checkout, pip, uv] diff --git a/taskcluster/kinds/source-test/shadow-scheduler.yml b/taskcluster/kinds/source-test/shadow-scheduler.yml @@ -21,6 +21,7 @@ task-defaults: treeherder: kind: other tier: 3 + run-on-repo-type: [hg] run-on-projects: ['autoland-only'] run: using: mach diff --git a/taskcluster/kinds/source-test/taskgraph.yml b/taskcluster/kinds/source-test/taskgraph.yml @@ -30,6 +30,7 @@ diff: base_rev: base_rev substitution-fields: - run.command + run-on-repo-type: [hg] run: using: run-task cwd: '{checkout}' diff --git a/taskcluster/kinds/source-test/vendor.yml b/taskcluster/kinds/source-test/vendor.yml @@ -20,6 +20,7 @@ task-defaults: kind: test tier: 1 platform: lint/opt + run-on-repo-type: [hg] run: using: run-task diff --git a/taskcluster/kinds/source-test/webcompat.yml b/taskcluster/kinds/source-test/webcompat.yml @@ -15,6 +15,7 @@ task-defaults: - target.tar.xz toolchain: - linux64-geckodriver + run-on-repo-type: [hg] run-on-projects: [] treeherder: kind: test diff --git a/taskcluster/kinds/source-test/webidl.yml b/taskcluster/kinds/source-test/webidl.yml @@ -13,6 +13,7 @@ test: worker: docker-image: {in-tree: "lint"} max-run-time: 1800 + run-on-repo-type: [hg] run: using: mach mach: webidl-parser-test --verbose diff --git a/taskcluster/kinds/source-test/wpt-manifest.yml b/taskcluster/kinds/source-test/wpt-manifest.yml @@ -3,6 +3,7 @@ # file, You can obtain one at http://mozilla.org/MPL/2.0/. --- task-defaults: + run-on-repo-type: [hg] platform: linux64/opt treeherder: kind: test diff --git a/taskcluster/kinds/source-test/wpt-metadata.yml b/taskcluster/kinds/source-test/wpt-metadata.yml @@ -3,6 +3,7 @@ # file, You can obtain one at http://mozilla.org/MPL/2.0/. --- task-defaults: + run-on-repo-type: [hg] platform: lint/opt treeherder: kind: test diff --git a/taskcluster/kinds/source-test/wpt-unittest.yml b/taskcluster/kinds/source-test/wpt-unittest.yml @@ -3,6 +3,7 @@ # file, You can obtain one at http://mozilla.org/MPL/2.0/. --- task-defaults: + run-on-repo-type: [hg] platform: lint/opt treeherder: kind: test