Fix updating the GitHub Status as soon as any TC task fails

… rather than only when the entire task group is resolved.
This allows Homu to more quickly be notified of a failure,
and move on to the next PR in the queue sooner.
This commit is contained in:
Simon Sapin 2019-11-21 10:11:17 +01:00
parent 4dbdd255a1
commit 77089ef44e
2 changed files with 10 additions and 0 deletions

View file

@ -1,4 +1,8 @@
version: 1
# If and when switching to `reporting: checks-v1` here, also change the `statuses` route to `checks`
# in `CONFIG.routes_for_all_subtasks` in `etc/taskcluster/decision_task.py`
policy:
# https://docs.taskcluster.net/docs/reference/integrations/taskcluster-github/docs/taskcluster-yml-v1#pull-requests
pullRequests: public

View file

@ -21,6 +21,12 @@ def tasks(task_for):
branch if not branch.startswith("try-") else "try"
)
# Work around a tc-github bug/limitation:
# https://bugzilla.mozilla.org/show_bug.cgi?id=1548781#c4
if task_for.startswith("github"):
# https://github.com/taskcluster/taskcluster/blob/21f257dc8/services/github/config.yml#L14
CONFIG.routes_for_all_subtasks.append("statuses")
# The magicleap build is broken until there's a surfman back end
magicleap_dev = lambda: None
magicleap_nightly = lambda: None