Skip to content

adding prefix when running find_decision_task for git repos - #1113

Open
Tintinator wants to merge 4 commits into
taskcluster:mainfrom
Tintinator:tin/update-findDecisionTask
Open

Tintinator wants to merge 4 commits into
taskcluster:mainfrom
Tintinator:tin/update-findDecisionTask

Conversation

@Tintinator

Copy link
Copy Markdown

when finding task ids for git repos, graph_config["project-repo-param-prefix"].

this is done as a part of the effort to merge actions logic between gecko_taskgraph and taskgraph.

@Tintinator
Tintinator requested a review from a team as a code owner November 16, 2026 20:52
@Tintinator
Tintinator requested a review from ahal November 16, 2026 20:52

@ahal ahal left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the patch!

Comment thread src/taskgraph/util/taskgraph.py Outdated

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking at the version in gecko_taskgraph, it actually doesn't use this pushlog route anymore. So we should actually just delete this whole branch of the if statement.

Comment thread src/taskgraph/util/taskgraph.py Outdated
)
)
elif parameters["repository_type"] == "git":
head_rev_param = "{}head_rev".format(graph_config["project-repo-param-prefix"])

@ahal ahal Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In order for a new value in graph_config to be used, it'll needed to be added to the schema in config.py, like this:
https://searchfox.org/firefox-main/rev/ed467ab812c04500de90029785eca5493deb260a/taskcluster/gecko_taskgraph/config.py#172

But there's a bit of a design problem with this too. Mainly that I don't really like project_repo_param_prefix. It feels hacky, and not something I'd like to include in upstream Taskgraph.

So for now could you revert this head_rev_param feature please? I'm going to do a little bit of thinking on how best to handle this difference.

@Tintinator
Tintinator requested a review from ahal November 19, 2026 21:56

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants