Bug 1525041 - avoid downloading rust packages when bootstrapping for artifact builds; r=Gijs
authorNathan Froyd <froydnj@mozilla.com>
Mon, 04 Feb 2019 12:47:33 -0500
changeset 456657 5ebaff11acf7584b1779af346d530f5e8f317b1f
parent 456656 8a8810509cdb228f77e4fdfa5ef282ed42a91f74
child 456658 b2c62d2cdfefda798d0499275b2c67d18400550a
push id35499
push userccoroiu@mozilla.com
push dateMon, 04 Feb 2019 21:42:59 +0000
treeherdermozilla-central@a27965fa7374 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersGijs
bugs1525041
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 1525041 - avoid downloading rust packages when bootstrapping for artifact builds; r=Gijs We do similar things for bindgen/clang.
python/mozboot/mozboot/bootstrap.py
--- a/python/mozboot/mozboot/bootstrap.py
+++ b/python/mozboot/mozboot/bootstrap.py
@@ -436,17 +436,18 @@ class Bootstrapper(object):
 
         self.instance.install_system_packages()
 
         # Like 'install_browser_packages' or 'install_mobile_android_packages'.
         getattr(self.instance, 'install_%s_packages' % application)()
 
         hg_installed, hg_modern = self.instance.ensure_mercurial_modern()
         self.instance.ensure_python_modern()
-        self.instance.ensure_rust_modern()
+        if not self.instance.artifact_mode:
+            self.instance.ensure_rust_modern()
 
         state_dir_available, state_dir = self.try_to_create_state_dir()
 
         # We need to enable the loading of hgrc in case extensions are
         # required to open the repo.
         r = current_firefox_checkout(check_output=self.instance.check_output,
                                      env=self.instance._hg_cleanenv(load_hgrc=True),
                                      hg=self.instance.which('hg'))