Bug 1340564: use attributes to identify talos jobs; r=bstack
authorDustin J. Mitchell <dustin@mozilla.com>
Tue, 25 Apr 2017 22:34:13 +0000
changeset 358087 4d481af2abeae1014f97fab84adfa7887fce1a01
parent 358086 41b461000ca6c82b1a247169fbe0e81fa6a3ec2c
child 358088 99a21fe69212659a5d5c587b0886e2d2208e1e8f
push id31812
push userryanvm@gmail.com
push dateFri, 12 May 2017 15:49:02 +0000
treeherdermozilla-central@1e2fe13035e1 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbstack
bugs1340564
milestone55.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1340564: use attributes to identify talos jobs; r=bstack MozReview-Commit-ID: B29F5SL8JNr
taskcluster/taskgraph/action.py
--- a/taskcluster/taskgraph/action.py
+++ b/taskcluster/taskgraph/action.py
@@ -93,17 +93,20 @@ def backfill(project, job_id):
 def add_talos(decision_task_id, times=1):
     """
     Run the add-talos task.  This function implements `mach taskgraph add-talos`,
     and is responsible for
 
      * Adding all talos jobs to a push.
     """
     full_task_json = get_artifact(decision_task_id, "public/full-task-graph.json")
-    task_labels = [label for label in full_task_json if "talos" in label]
+    task_labels = [
+        label for label, task in full_task_json.iteritems()
+        if "talos_try_name" in task['attributes']
+    ]
     for time in xrange(times):
         add_tasks(decision_task_id, task_labels, '{}-'.format(time))
 
 
 def load_decisions(s, project, resultsets, filters):
     """
     Given a project, a list of revisions, and a dict of filters, return
     a list of taskIds from decision tasks.