From a52337ce9f4c133420b2be9d7ba98e81d55d01d5 Mon Sep 17 00:00:00 2001 From: Andrew Halberstadt Date: Wed, 25 Oct 2023 11:27:32 -0400 Subject: [PATCH] fix(python): scope checkout caches to the specific project Since the template uses the `mozilla` trust domain, it's expected for workers to run tasks for multiple unrelated projects. Therefore we don't want to share a checkout cache between them (and especially not call them all `src`). This scopes the checkout cache to just the specific project as well as renames it from `src` -> `${project}`. --- .../python/{{cookiecutter.__project_slug}}/.taskcluster.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reps/templates/python/{{cookiecutter.__project_slug}}/.taskcluster.yml b/reps/templates/python/{{cookiecutter.__project_slug}}/.taskcluster.yml index 910531b..206df7a 100644 --- a/reps/templates/python/{{cookiecutter.__project_slug}}/.taskcluster.yml +++ b/reps/templates/python/{{cookiecutter.__project_slug}}/.taskcluster.yml @@ -218,7 +218,7 @@ tasks: ACTION_CALLBACK: '${action.cb_name}' cache: - "${trustDomain}-level-${level}-checkouts-sparse-v2": /builds/worker/checkouts + "${trustDomain}-project-${project}-level-${level}-checkouts-sparse-v2": /builds/worker/checkouts features: taskclusterProxy: true