user/dev discussion of public-inbox itself
 help / color / mirror / code / Atom feed
Search results ordered by [date|relevance]  view[summary|nested|Atom feed]
thread overview below | download mbox.gz: |
* [PATCH 3/8] ci/run.sh: parameterize BUILD_JOBS TEST_JOBS and TEST_TARGET
  2023-09-09 12:01  6% [PATCH 0/8] NetBSD-related updates Eric Wong
@ 2023-09-09 12:01  7% ` Eric Wong
  0 siblings, 0 replies; 2+ results
From: Eric Wong @ 2023-09-09 12:01 UTC (permalink / raw)
  To: meta

Parallezing BUILD_JOBS is usually harmless, but TEST_JOBS can
be problematic when tracking down problems on new platforms.
TEST_TARGET can be `check' or `check-run' for performance.
---
 ci/run.sh | 12 +++++++-----
 1 file changed, 7 insertions(+), 5 deletions(-)

diff --git a/ci/run.sh b/ci/run.sh
index 9613943b..1faf92c2 100755
--- a/ci/run.sh
+++ b/ci/run.sh
@@ -1,5 +1,5 @@
 #!/bin/sh
-# Copyright (C) 2019-2021 all contributors <meta@public-inbox.org>
+# Copyright (C) all contributors <meta@public-inbox.org>
 # License: AGPL-3.0+ <https://www.gnu.org/licenses/agpl-3.0.txt>
 set -e
 SUDO=${SUDO-'sudo'} PERL=${PERL-'perl'} MAKE=${MAKE-'make'}
@@ -8,14 +8,16 @@ DO=${DO-''}
 set -x
 if test -f Makefile
 then
-	$DO $MAKE clean
+	$DO $MAKE clean >/dev/null
 fi
+NPROC=${NPROC-$({ getconf _NPROCESSORS_ONLN || getconf NPROCESSORS_ONLN ||
+	gnproc || nproc || echo 2; } 2>/dev/null)}
 
 ./ci/profiles.sh | while read args
 do
 	$DO $SUDO $PERL -w ci/deps.perl $args
 	$DO $PERL Makefile.PL
-	$DO $MAKE
-	$DO $MAKE check
-	$DO $MAKE clean
+	$DO $MAKE -j${BUILD_JOBS-$NPROC}
+	$DO $MAKE -j${TEST_JOBS-1} ${TEST_TARGET-test}
+	$DO $MAKE clean >/dev/null
 done

^ permalink raw reply related	[relevance 7%]

* [PATCH 0/8] NetBSD-related updates
@ 2023-09-09 12:01  6% Eric Wong
  2023-09-09 12:01  7% ` [PATCH 3/8] ci/run.sh: parameterize BUILD_JOBS TEST_JOBS and TEST_TARGET Eric Wong
  0 siblings, 1 reply; 2+ results
From: Eric Wong @ 2023-09-09 12:01 UTC (permalink / raw)
  To: meta

It actually packages `p5-highlight' like Debian!

Eric Wong (8):
  Makefile.PL: check `getconf NPROCESSORS_ONLN', too
  ipc: define _SC_NPROCESSORS_ONLN for NetBSD
  ci/run.sh: parameterize BUILD_JOBS TEST_JOBS and TEST_TARGET
  ci/profiles: rewrite in Perl
  update CI helper scripts for NetBSD and `pkgin'
  xap_helper: note __cleanup__ works with C++ exceptions
  xap_helper: use _OPENBSD_SOURCE on NetBSD for reallocarray
  xap_helper: clamp workers to USHRT_MAX

 Makefile.PL                  |  3 +-
 ci/deps.perl                 | 24 +++++++--
 ci/profiles.perl             | 93 ++++++++++++++++++++++++++++++++++
 ci/profiles.sh               | 98 ------------------------------------
 ci/run.sh                    | 14 +++---
 lib/PublicInbox/IPC.pm       | 16 ++++--
 lib/PublicInbox/xap_helper.h | 15 +++++-
 7 files changed, 148 insertions(+), 115 deletions(-)
 create mode 100755 ci/profiles.perl
 delete mode 100755 ci/profiles.sh

^ permalink raw reply	[relevance 6%]

Results 1-2 of 2 | reverse | options above
-- pct% links below jump to the message on this page, permalinks otherwise --
2023-09-09 12:01  6% [PATCH 0/8] NetBSD-related updates Eric Wong
2023-09-09 12:01  7% ` [PATCH 3/8] ci/run.sh: parameterize BUILD_JOBS TEST_JOBS and TEST_TARGET Eric Wong

Code repositories for project(s) associated with this public inbox

	https://80x24.org/public-inbox.git

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).