Closed Bug 1291010 Opened 9 years ago Closed 9 years ago

Add "branch" field to Repository model/table

Categories

(Tree Management :: Treeherder: Data Ingestion, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: camd, Assigned: camd)

References

Details

Attachments

(1 file)

Some github repos (gaia, bmo) have the same repo url for several Treeherder projects. In order to differentiate them, we need to store the branch name in that table to find the right project based on the pulse message we get from taskcluster-github
Assignee: nobody → cdawson
Blocks: 1264074
Blocks: 1291012
Comment on attachment 8776753 [details] [review] [treeherder] mozilla:branch-field-repo-table > mozilla:master Need this for Github resultset ingestion from Pulse.
Attachment #8776753 - Flags: review?(emorley)
This will also be pulse jobs after bug 1291012
Attachment #8776753 - Flags: review?(emorley)
Comment on attachment 8776753 [details] [review] [treeherder] mozilla:branch-field-repo-table > mozilla:master Good call on that. Fixed.
Attachment #8776753 - Flags: review?(emorley)
Attachment #8776753 - Flags: review?(emorley) → review+
Commit pushed to master at https://github.com/mozilla/treeherder https://github.com/mozilla/treeherder/commit/2039eb7545e99daf8557469dd1123d2abd07c35c Bug 1291010 - Add branch field to Repository model/table (#1755) We need a 'branch' field on the repository so that we can determine which repo to use for incoming resultsets from pulse exchanges. In the past, projects like gaia-taskcluster have had their own maps of github repositories/names/branches to Treeherder projects. But Treeherder should be the one owning that mapping. The only thing on this table was the branch that's used. So here it is. The "branch" field will default to "master" which is appropriate for several of the repos. But a few will need more custom values set. These are laid out in the fixtures/repository.json file. But they will need to be manually entered into the databases on Prod/Stage and Heroku.
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: