From d18daaf68b2ca0f58a9b265da1d5793b63c94e78 Mon Sep 17 00:00:00 2001 From: tin Date: Mon, 16 Nov 2026 14:44:30 -0600 Subject: [PATCH 1/2] adding prefix when running find_decision_task for git repos --- src/taskgraph/util/taskgraph.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/taskgraph/util/taskgraph.py b/src/taskgraph/util/taskgraph.py index a368f4e11..b3f64e672 100644 --- a/src/taskgraph/util/taskgraph.py +++ b/src/taskgraph/util/taskgraph.py @@ -21,11 +21,12 @@ def find_decision_task(parameters, graph_config): ) ) elif parameters["repository_type"] == "git": + head_rev_param = "{}head_rev".format(graph_config["project-repo-param-prefix"]) return find_task_id( "{}.v2.{}.revision.{}.taskgraph.decision".format( graph_config["trust-domain"], parameters["project"], - parameters["head_rev"], + parameters[head_rev_param], ) ) else: From 2989cb1bdb02e6bb4b9a4741a4acc0b635a7aa45 Mon Sep 17 00:00:00 2001 From: tin Date: Thu, 19 Nov 2026 15:50:00 -0600 Subject: [PATCH 2/2] reverted head_rev_param prefix. removed hg repository type --- src/taskgraph/util/taskgraph.py | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/src/taskgraph/util/taskgraph.py b/src/taskgraph/util/taskgraph.py index b3f64e672..c07c01cea 100644 --- a/src/taskgraph/util/taskgraph.py +++ b/src/taskgraph/util/taskgraph.py @@ -12,21 +12,12 @@ def find_decision_task(parameters, graph_config): """Given the parameters for this action, find the taskId of the decision task""" - if parameters.get("repository_type", "hg") == "hg": - return find_task_id( - "{}.v2.{}.pushlog-id.{}.decision".format( - graph_config["trust-domain"], - parameters["project"], - parameters["pushlog_id"], - ) - ) - elif parameters["repository_type"] == "git": - head_rev_param = "{}head_rev".format(graph_config["project-repo-param-prefix"]) + if parameters["repository_type"] == "git": return find_task_id( "{}.v2.{}.revision.{}.taskgraph.decision".format( graph_config["trust-domain"], parameters["project"], - parameters[head_rev_param], + parameters["head_rev"], ) ) else: