Bug 1486970: [taskgraph] Remove dead parameter to `make_decision_task` in cron; r=Callek
authorTom Prince <mozilla@hocat.ca>
Tue, 27 Nov 2018 19:13:48 +0000
changeset 504976 11828ed488177ec28bfb343c64b466785600fab6
parent 504975 e75b3f5571fe4127b09b468cc8c7dacb6d822863
child 504977 ea6a0c8d3bb57d8c8c8aceae3c743db461ddd68f
push id10290
push userffxbld-merge
push dateMon, 03 Dec 2018 16:23:23 +0000
treeherdermozilla-beta@700bed2445e6 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersCallek
bugs1486970
milestone65.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 1486970: [taskgraph] Remove dead parameter to `make_decision_task` in cron; r=Callek Differential Revision: https://phabricator.services.mozilla.com/D13107
taskcluster/taskgraph/cron/decision.py
--- a/taskcluster/taskgraph/cron/decision.py
+++ b/taskcluster/taskgraph/cron/decision.py
@@ -25,23 +25,21 @@ def run_decision_task(job, params, root)
         make_decision_task(
             params,
             symbol=job['treeherder-symbol'],
             arguments=arguments,
             root=root),
     ]
 
 
-def make_decision_task(params, root, symbol, arguments=[], head_rev=None):
+def make_decision_task(params, root, symbol, arguments=[]):
     """Generate a basic decision task, based on the root .taskcluster.yml"""
     with open(os.path.join(root, '.taskcluster.yml'), 'rb') as f:
         taskcluster_yml = yaml.safe_load(f)
 
-    if not head_rev:
-        head_rev = params['head_rev']
     push_info = find_hg_revision_push_info(
         params['repository_url'],
         params['head_rev'])
 
     slugids = {}
 
     def as_slugid(name):
         # https://github.com/taskcluster/json-e/issues/164