Bug 1425226 Fix secrets collection in partials generating task r=rail
authorSimon Fraser <sfraser@mozilla.com>
Thu, 14 Dec 2017 07:31:37 -0600
changeset 448199 a67a3813e06a03afd5f4d09e24b21945ae138b5b
parent 448198 5a4cd9c278dd9544b005898399f13d55f9474ae8
child 448200 8cbcc8b4fa5736f170fffedd2f99f1aa63fb4f0f
push id8527
push userCallek@gmail.com
push dateThu, 11 Jan 2018 21:05:50 +0000
treeherdermozilla-beta@95342d212a7a [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersrail
bugs1425226
milestone59.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 1425226 Fix secrets collection in partials generating task r=rail MozReview-Commit-ID: HpX85H9DZzc
taskcluster/docker/funsize-update-generator/scripts/funsize.py
--- a/taskcluster/docker/funsize-update-generator/scripts/funsize.py
+++ b/taskcluster/docker/funsize-update-generator/scripts/funsize.py
@@ -60,19 +60,20 @@ def is_lzma_compressed_mar(mar):
 
 @redo.retriable()
 def get_secret(secret_name):
     secrets_url = "http://taskcluster/secrets/v1/secret/{}"
     log.debug("Fetching {}".format(secret_name))
     r = requests.get(secrets_url.format(secret_name))
     # 403: If unauthorized, just give up.
     if r.status_code == 403:
+        log.info("Unable to get secret key")
         return {}
     r.raise_for_status()
-    return r.json()
+    return r.json().get('secret', {})
 
 
 @redo.retriable()
 def download(url, dest, mode=None):
     log.debug("Downloading %s to %s", url, dest)
     r = requests.get(url)
     r.raise_for_status()