Bug 1286900 - Run Mercurial with PYTHONUNBUFFERED=1; r=me
☠☠ backed out by cda7c3e91ad7 ☠ ☠
authorGregory Szorc <gps@mozilla.com>
Tue, 04 Oct 2016 10:25:57 -0700
changeset 316408 748abfe6748e95dcaadf50187f71c42c14ae47e3
parent 316407 d8a271c72525309029b952075dcbdb9b2f1a284a
child 316409 1f61e87d6ab405b45fc66edf6f693289d740e166
push id30770
push userkwierso@gmail.com
push dateWed, 05 Oct 2016 00:00:48 +0000
treeherdermozilla-central@3470e326025c [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersme
bugs1286900, 1304964
milestone52.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 1286900 - Run Mercurial with PYTHONUNBUFFERED=1; r=me We did the same thing for run-task in bug 1304964 because otherwise output may get buffered, triggering "no output in N seconds" failures in automation.
testing/mozharness/mozharness/base/vcs/mercurial.py
--- a/testing/mozharness/mozharness/base/vcs/mercurial.py
+++ b/testing/mozharness/mozharness/base/vcs/mercurial.py
@@ -383,17 +383,18 @@ class MercurialVCS(ScriptMixin, LogMixin
 
         if rev:
             args.extend(['--revision', rev])
         if branch:
             args.extend(['--branch', branch])
 
         parser = RepositoryUpdateRevisionParser(config=self.config,
                                                 log_obj=self.log_obj)
-        if self.run_command(args, output_parser=parser):
+        if self.run_command(args, output_parser=parser,
+                            partial_env={'PYTHONUNBUFFERED': '1'}):
             raise VCSException('repo checkout failed!')
 
         if not parser.revision:
             raise VCSException('could not identify revision updated to')
 
         return parser.revision
 
     def apply_and_push(self, localrepo, remote, changer, max_attempts=10,