tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

commit 6cf8a9bed89f08bdc3adeec3ff64f0f22709bcff
parent e7711a0d0fb68ad1537738d8d12fb04bf72af84c
Author: Andrew Halberstadt <ahal@mozilla.com>
Date:   Mon, 10 Nov 2025 14:40:22 +0000

Bug 1998993 - [ci] Ensure 'fetch-content' script is mounted for tasks with use-uv / use-python, r=taskgraph-reviewers,bhearsum

There's a check that only mounts the fetch-content script if a task is
using fetches:
https://searchfox.org/firefox-main/source/taskcluster/gecko_taskgraph/transforms/job/run_task.py#195

However, the use-uv and use-python flags will cause fetches to get added
later on. So far this hasn't broken anything because run-task doesn't
actually use the mounted version of fetch-content anyway, it hardcodes a
path in the checkout:
https://searchfox.org/firefox-main/source/taskcluster/scripts/run-task#581

But now we're starting to run tasks that are using the upstream version
of run-task, and that does require fetch-content to be mounted in the
same directory as run-task.

Differential Revision: https://phabricator.services.mozilla.com/D271820

Diffstat:
Mtaskcluster/gecko_taskgraph/transforms/job/run_task.py | 7++++++-
1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/taskcluster/gecko_taskgraph/transforms/job/run_task.py b/taskcluster/gecko_taskgraph/transforms/job/run_task.py @@ -192,7 +192,12 @@ def generic_worker_run_task(config, job, taskdesc): "file": "./run-task", } ) - if job.get("fetches", {}): + + if ( + job.get("fetches") + or job.get("use-uv") + or job.get("use-python", "system") != "system" + ): worker["mounts"].append( { "content": {