commit bfdec852fa957889615b379fbae6839f55faeedb
parent 8b3400f48cca7e1ea8731e6e9d5307ea60520c36
Author: Andrew Halberstadt <ahal@mozilla.com>
Date: Fri, 21 Nov 2025 14:41:26 +0000
Bug 2000082 - Stop sharing cached tasks between Mercurial / Git based projects, r=taskgraph-reviewers,bhearsum
Doing this causes chain of trust failures.
Differential Revision: https://phabricator.services.mozilla.com/D272922
Diffstat:
1 file changed, 5 insertions(+), 0 deletions(-)
diff --git a/taskcluster/gecko_taskgraph/transforms/cached_tasks.py b/taskcluster/gecko_taskgraph/transforms/cached_tasks.py
@@ -89,6 +89,11 @@ def cache_task(config, tasks):
continue
digest_data = cache["digest-data"] + sorted(dependency_digests)
+ # Ensure we don't re-use cached tasks across repo types, doing so
+ # breaks some CoT verifications.
+ if config.params["repository_type"] == "git":
+ digest_data.append(config.params["repository_type"])
+
add_optimization(
config,
task,