No bug: [mozharness] Use the absolute path when download secretes, to aid debugging; r=aki
authorTom Prince <mozilla@hocat.ca>
Thu, 14 Mar 2019 16:22:02 +0000
changeset 521913 88f164145918
parent 521912 2d742819b35b
child 521914 45024ae5b1b7
push id10870
push usernbeleuzu@mozilla.com
push dateFri, 15 Mar 2019 20:00:07 +0000
treeherdermozilla-beta@c594aee5b7a4 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersaki
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
No bug: [mozharness] Use the absolute path when download secretes, to aid debugging; r=aki Differential Revision: https://phabricator.services.mozilla.com/D23465
testing/mozharness/mozharness/mozilla/secrets.py
--- a/testing/mozharness/mozharness/mozilla/secrets.py
+++ b/testing/mozharness/mozharness/mozilla/secrets.py
@@ -51,17 +51,17 @@ class SecretsMixin(object):
         secret_files = self.config.get('secret_files', [])
 
         scm_level = int(os.environ.get('MOZ_SCM_LEVEL', '1'))
         subst = {
             'scm-level': scm_level,
         }
 
         for sf in secret_files:
-            filename = sf['filename']
+            filename = os.path.abspath(sf['filename'])
             secret_name = sf['secret_name'] % subst
             min_scm_level = sf.get('min_scm_level', 0)
             if scm_level < min_scm_level:
                 if 'default' in sf:
                     self.info("Using default value for " + filename)
                     secret = sf['default']
                 elif 'default-file' in sf:
                     default_path = sf['default-file'].format(**dirs)