Bug 1154947 part 1: Add routes scopes to taskcluster graph.
authorWander Lairson Costa <wcosta@mozilla.com>
Thu, 30 Apr 2015 16:26:38 -0300
changeset 273167 072876f12b10ed32c56190b17b504f468eb6bfd2
parent 273166 4b3c545ae19c3a3a83a11b6dbc12012567f16e07
child 273168 86d907839999616a8b557f52bb00e809454ff147
push id863
push userraliiev@mozilla.com
push dateMon, 03 Aug 2015 13:22:43 +0000
treeherdermozilla-release@f6321b14228d [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs1154947
milestone40.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 1154947 part 1: Add routes scopes to taskcluster graph.
testing/taskcluster/mach_commands.py
--- a/testing/taskcluster/mach_commands.py
+++ b/testing/taskcluster/mach_commands.py
@@ -322,16 +322,18 @@ class Graph(object):
                 build_parameters['build_slugid'],
                 build_task['task']['extra']['locations'].get('img', '')
             )
 
             define_task = DEFINE_TASK.format(build_task['task']['workerType'])
 
             graph['scopes'].append(define_task)
             graph['scopes'].extend(build_task['task'].get('scopes', []))
+            route_scopes = map(lambda route: 'queue:route:' + route, build_task['task'].get('routes', []))
+            graph['scopes'].extend(route_scopes)
 
             # Treeherder symbol configuration for the graph required for each
             # build so tests know which platform they belong to.
             build_treeherder_config = build_task['task']['extra']['treeherder']
 
             if 'machine' not in build_treeherder_config:
                 message = '({}), extra.treeherder.machine required for all builds'
                 raise ValueError(message.format(build['task']))