Bug 1362148 - Call generate_build_props() as part of build(); r=ted
authorGregory Szorc <gps@mozilla.com>
Thu, 04 May 2017 17:24:06 -0700
changeset 410555 4f5e82dbe1b6beb010fbcd939176f43726cb3a42
parent 410554 b6fa08f52247f7a11c319001d39f3b87f52fe918
child 410556 e958856b6bfc298f62f5b3031ad74b82624a6d00
push id7391
push usermtabara@mozilla.com
push dateMon, 12 Jun 2017 13:08:53 +0000
treeherdermozilla-beta@2191d7f87e2e [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
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 1362148 - Call generate_build_props() as part of build(); r=ted Previously, this ran during postflight_build(). The magic postflight_* methods are called automagically by BaseScript.run_action() and are only called if the main action method didn't raise. So there should be no functional difference with this commit. The reason I changed this is that a subsequent commit will perform metrics generation from build() and without the build properties file loaded, at least the OS X 64 opt buildbot build doesn't have packageFilename defines, which breaks metrics collection. MozReview-Commit-ID: 54ftuQqGKVi
--- a/testing/mozharness/mozharness/mozilla/building/buildbase.py
+++ b/testing/mozharness/mozharness/mozilla/building/buildbase.py
@@ -1639,16 +1639,18 @@ or run without that action (ie: --no-{ac
         if return_code:
             self.return_code = self.worst_level(
                 EXIT_STATUS_DICT[TBPL_FAILURE],  self.return_code,
             self.fatal("'mach build' did not run successfully. Please check "
                        "log for errors.")
+        self.generate_build_props(console_output=True, halt_on_failure=True)
     def multi_l10n(self):
         if not self.query_is_nightly():
             self.info("Not a nightly build, skipping multi l10n.")
         dirs = self.query_abs_dirs()
         base_work_dir = dirs['base_work_dir']
@@ -1732,20 +1734,18 @@ or run without that action (ie: --no-{ac
         files = shlex.split(output)
         abs_files = [os.path.abspath(os.path.join(objdir, f)) for f in files]
         self._taskcluster_upload(abs_files, self.routes_json['l10n'],
-    def postflight_build(self, console_output=True):
+    def postflight_build(self):
         """grabs properties from post build and calls ccache -s"""
-        self.generate_build_props(console_output=console_output,
-                                  halt_on_failure=True)
         # A list of argument lists.  Better names gratefully accepted!
         mach_commands = self.config.get('postflight_build_mach_commands', [])
         for mach_command in mach_commands:
     def _execute_postflight_build_mach_command(self, mach_command_args):
         env = self.query_build_env()