automatically ignore tasks for unsupported branches of github projects without the use of a manual list
Categories
(Tree Management :: Treeherder: Data Ingestion, task)
Tracking
(Not tracked)
People
(Reporter: aryx, Assigned: moijes12, NeedInfo)
Details
Attachments
(1 file)
- Treeherder either only ingests tasks for pushes to branches on an allowlist (think
mainetc.) or all of them (even if does not ingest every branch). The list of the repositories for the former is manually maintained. The former is done to save resources. - For the filtering, it gets MOBILE_BASE_REPOSITORY and MOBILE_HEAD_REPOSITORY to detect PRs (and ignore them) and also fetches MOBILE_HEAD_REF.
- application-services uses APPSERVICES_ instead of MOBILE_
The repositories.json file already defines the branches which get ingested and tasks should be ingested based on this without the need for a list of repositories which shall be checked for this.
bhearsum explained one can reply on only one *_BASE_REPOSITORY (etc.) variable being included in the task payload (and cycle over all variables to find them). Taskcluster reads the values here.
| Assignee | ||
Comment 1•6 months ago
|
||
Sebastian
For the generic implementation, what would be the preferred way (or a method recommended/followed in mozilla) to retrieve the branch from a task payload across all projects? Should I rely on the decision_task routes/scopes (which is currently used as a fallback in handler.py
), or is there a specific field in the task payload that is guaranteed to be present for all repositories?
| Assignee | ||
Updated•6 months ago
|
| Assignee | ||
Comment 2•6 months ago
|
||
Fix for issue
Description
•