Bug 1532236 Convert level into integer in partials transform r=mtabara
authorSimon Fraser <sfraser@mozilla.com>
Tue, 05 Mar 2019 17:04:49 +0000
changeset 462430 f6d891b25f431a1189fbb6c1e4d066f8e7d6ba92
parent 462429 bf56d6419bc44791ea6cc626c9e814d18cb3d033
child 462431 664638fa249e1d9ba53fb82acd8c72e96affb234
push id79645
push usersfraser@mozilla.com
push dateTue, 05 Mar 2019 19:49:35 +0000
treeherderautoland@f6d891b25f43 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmtabara
bugs1532236
milestone67.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 1532236 Convert level into integer in partials transform r=mtabara Differential Revision: https://phabricator.services.mozilla.com/D22108
taskcluster/taskgraph/transforms/partials.py
--- a/taskcluster/taskgraph/transforms/partials.py
+++ b/taskcluster/taskgraph/transforms/partials.py
@@ -150,13 +150,14 @@ def make_task_description(config, jobs):
             'attributes': attributes,
             'run-on-projects': dep_job.attributes.get('run_on_projects'),
             'treeherder': treeherder,
             'extra': extra,
             'worker': worker,
         }
 
         # We only want caching on linux/windows due to bug 1436977
-        if level == 3 and any([platform in dep_th_platform for platform in ['linux', 'windows']]):
+        if int(level) == 3 \
+                and any([platform in dep_th_platform for platform in ['linux', 'windows']]):
             task['scopes'].append(
                 'auth:aws-s3:read-write:tc-gp-private-1d-us-east-1/releng/mbsdiff-cache/')
 
         yield task