Skip to content

feat: implement v2 route format#9464

Draft
ahal wants to merge 1 commit intomozilla:masterfrom
ahal:v2_route
Draft

feat: implement v2 route format#9464
ahal wants to merge 1 commit intomozilla:masterfrom
ahal:v2_route

Conversation

@ahal
Copy link
Copy Markdown
Member

@ahal ahal commented Apr 24, 2026

The v1 route format only has a top-level project in the route. This is fine for hg.mozilla.org where there's a 1:1 mapping of project to branch, but in Github it makes things awkward.

E.g mozilla/enterprise-firefox is a project that has many branches all hooked up to Treeherder, as well as pull requests. To differentiate them we need to use routes like <project>-<branch>. This requires extra JSON-e logic in the .taskcluster.yml file and means we need to explicitly grant the Treeherder route scope on a case by case basis.

Instead, this invents a v2 route format that handles our Github use cases better. It keys by trust_domain, project and branch rather than just project.

@ahal ahal force-pushed the v2_route branch 4 times, most recently from 0ca2b37 to a933950 Compare May 1, 2026 20:18
Adds `trust_domain` and `project` fields to the Repository model.

The v1 route format only has a top-level project in the route. This is
fine for hg.mozilla.org where there's a 1:1 mapping of project to
branch, but in Github it makes things awkward.

E.g `mozilla/enterprise-firefox` is a project that has many branches all
hooked up to Treeherder, as well as pull requests. To differentiate them
we need to use routes like `<project>-<branch>`. This requires extra
JSON-e logic in the .taskcluster.yml file and means we need to
explicitly grant the Treeherder route scope on a case by case basis.

Instead, this invents a v2 route format that handles our Github use
cases better. It keys by trust_domain, project and branch rather than
just project.
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.

1 participant