No bug: [taskgraph] Remove unused `channel` for defining taskcluster `gecko.*` routes; r=aki
authorTom Prince <mozilla@hocat.ca>
Thu, 10 Jan 2019 21:19:37 +0000
changeset 510455 84a19f32185f609eec44c76af271138182edc4e7
parent 510454 4049f219ced182cfa21194559b2dd17e48312af3
child 510456 d74ea40968639bc1b69909554b27ffab0d754b88
push id10547
push userffxbld-merge
push dateMon, 21 Jan 2019 13:03:58 +0000
treeherdermozilla-beta@24ec1916bffe [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersaki
milestone66.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
No bug: [taskgraph] Remove unused `channel` for defining taskcluster `gecko.*` routes; r=aki Differential Revision: https://phabricator.services.mozilla.com/D16230
taskcluster/taskgraph/transforms/task.py
--- a/taskcluster/taskgraph/transforms/task.py
+++ b/taskcluster/taskgraph/transforms/task.py
@@ -139,18 +139,16 @@ task_description_schema = Schema({
             # sure a task is last in the index).
             int,
 
             # Rank is equal to the timestamp of the build_date.  This
             # option can be used to override the 'by-tier' behavior
             # for non-tier-1 tasks.
             'build_date',
         ),
-
-        'channel': optionally_keyed_by('project', basestring),
     },
 
     # The `run_on_projects` attribute, defaulting to "all".  This dictates the
     # projects on which this task should be included in the target task set.
     # See the attributes documentation for details.
     Optional('run-on-projects'): optionally_keyed_by('build-platform', [basestring]),
 
     # Like `run_on_projects`, `run-on-hg-branches` defaults to "all".
@@ -1552,21 +1550,16 @@ def add_release_index_routes(config, tas
     subs = config.params.copy()
     subs['build_number'] = str(release_config['build_number'])
     subs['revision'] = subs['head_rev']
     subs['underscore_version'] = release_config['version'].replace('.', '_')
     subs['product'] = index['product']
     subs['trust-domain'] = config.graph_config['trust-domain']
     subs['branch_rev'] = get_branch_rev(config)
     subs['branch'] = subs['project']
-    if 'channel' in index:
-        resolve_keyed_by(
-            index, 'channel', item_name=task['label'], project=config.params['project']
-        )
-        subs['channel'] = index['channel']
 
     for rt in task.get('routes', []):
         routes.append(rt.format(**subs))
 
     task['routes'] = routes
 
     return task