Open Bug 1203141 Opened 9 years ago Updated 2 years ago

Teach automatic backfilling to use Treeherder as a source of jobs (instead of BuildApi)

Categories

(Testing :: General, defect)

defect

Tracking

(Not tracked)

People

(Reporter: armenzg, Unassigned)

Details

This would be helpful if we would like to get external contributors to work on it without LDAP credentials.

We have the functionality in Mozci already:
https://github.com/armenzg/mozilla_ci_tools/blob/master/mozci/mozci.py#L43
https://github.com/armenzg/mozilla_ci_tools/blob/master/mozci/query_jobs.py#L141
We will probably to set the query source before we try to backfill:
https://github.com/adusca/pulse_actions/blob/master/pulse_actions/handlers/backfilling.py#L50
We use buils-4hrs.json to get status and to get the files needed to trigger arbitrary jobs. For status we could just set query_source = 'treeherder' but since a lot of the jobs triggered by automatic backfilling are arbitrary jobs and not retriggers we would still need to get files. 

If a job has status='coalesced' we can still retrigger it and avoid the arbitrary job filepath, but TH made a mistakes where a coalesced job doesn't show up at all, so by using TH as a source we end up using the arbitrary job filepath more times then necessary.
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.