Bug 1388012 - Ensure a debug artifact build is done when 'debug_build' is present in the mozharness config. r=armenzg
authorChris Manchester <cmanchester@mozilla.com>
Tue, 22 Aug 2017 10:55:16 -0700
changeset 376148 2f8718989f5420c21f78bd8b82cade79ffeb436a
parent 376147 0349910ce7bd7977d8db4d940337ca7e4861741b
child 376149 80fafbaaf8484104018976c2a0442c91805d3554
child 376210 90e29632e2a19021ee687da92ee4dbeabeb50bae
push id32375
push userkwierso@gmail.com
push dateTue, 22 Aug 2017 22:40:30 +0000
treeherdermozilla-central@80fafbaaf848 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersarmenzg
bugs1388012
milestone57.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 1388012 - Ensure a debug artifact build is done when 'debug_build' is present in the mozharness config. r=armenzg MozReview-Commit-ID: Dr029B4jxPH
testing/mozharness/scripts/fx_desktop_build.py
--- a/testing/mozharness/scripts/fx_desktop_build.py
+++ b/testing/mozharness/scripts/fx_desktop_build.py
@@ -144,17 +144,20 @@ class FxDesktopBuild(BuildScript, TryToo
                 variant = c['artifact_flag_build_variant_in_try']
                 if not variant:
                     self.info('Build variant has falsy `artifact_flag_build_variant_in_try`; '
                               'ignoring artifact build request and performing original build.')
                     return
                 self.info('Build variant has `artifact_build_variant_in_try`: "%s".' % variant)
             else:
                 if not c.get('build_variant'):
-                    variant = 'artifact'
+                    if c.get('debug_build'):
+                        variant = 'debug-artifact'
+                    else:
+                        variant = 'artifact'
                 elif c.get('build_variant') in ['debug', 'cross-debug']:
                     variant = 'debug-artifact'
 
             if variant:
                 self.info('Using artifact build variant "%s".' % variant)
                 self._update_build_variant(rw_config, variant)
 
     # helpers