public inbox for buildbot@sourceware.org
 help / color / mirror / Atom feed
From: Sam James <sam@gentoo.org>
To: buildbot@sourceware.org
Cc: Sam James <sam@gentoo.org>
Subject: [PATCH] Use output synchronization for make for clearer output
Date: Sat, 14 Jan 2023 22:01:55 +0000	[thread overview]
Message-ID: <20230114220155.189867-1-sam@gentoo.org> (raw)

Pass --output-sync=line to make to avoid noise when multiple jobs
(especially configures) are running in parallel.

Gentoo and opensuse are both using this for building gcc/gdb/binutils
because it makes logs much more legible.
---
 builder/master.cfg | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/builder/master.cfg b/builder/master.cfg
index 8789dd5..d144008 100644
--- a/builder/master.cfg
+++ b/builder/master.cfg
@@ -963,26 +963,26 @@ getversion_step = steps.SetPropertyFromCommand(
         command='grep PACKAGE_VERSION config.h | cut -f2 -d\\"',
         property="package_version")
 make_step = steps.Compile(
-        command=["make", util.Interpolate('-j%(prop:ncpus)s')],
+        command=["make", "--output-sync=line", util.Interpolate('-j%(prop:ncpus)s')],
         name="make",
         haltOnFailure=True)
 make_check_step = steps.Test(
-        command=["make", "check", util.Interpolate('-j%(prop:ncpus)s')],
+        command=["make", "--output-sync=line", "check", util.Interpolate('-j%(prop:ncpus)s')],
         name="make check", haltOnFailure=False, flunkOnFailure=True)
 # Same as make_check_step but with tests/test-suite.log recorded
 make_check_test_suite_step = steps.Test(
-        command=["make", "check", util.Interpolate('-j%(prop:ncpus)s')],
+        command=["make", "--output-sync=line", "check", util.Interpolate('-j%(prop:ncpus)s')],
         name="make check", haltOnFailure=False, flunkOnFailure=True,
         logfiles={"test-suite.log": "tests/test-suite.log"})
 make_distcheck_step = steps.Test(
-        command=["make", "distcheck",
+        command=["make", "--output-sync=line", "distcheck",
                  util.Interpolate('-j%(prop:ncpus)s')],
         name="make distcheck", haltOnFailure=False, flunkOnFailure=True,
         timeout=3600)
 # Same as make_distcheck_step but with tests/test-suite-log from _build
 # Needs package_version and package_name properties set
 make_distcheck_test_suite_step = steps.Test(
-        command=["make", "distcheck",
+        command=["make", "--output-sync=line", "distcheck",
                  util.Interpolate('-j%(prop:ncpus)s')],
         name="make distcheck", haltOnFailure=False, flunkOnFailure=True,
         timeout=3600,
-- 
2.39.0


             reply	other threads:[~2023-01-14 22:02 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-01-14 22:01 Sam James [this message]
2023-01-15 16:37 ` Mark Wielaard

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20230114220155.189867-1-sam@gentoo.org \
    --to=sam@gentoo.org \
    --cc=buildbot@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).