From: zimoun <zimon.toutoune@gmail.com>
To: 54088@debbugs.gnu.org
Cc: zimoun <zimon.toutoune@gmail.com>
Subject: [bug#54088] [PATCH v2 04/19] build: julia-build-system: Fix corner-case for parallel tests.
Date: Wed, 23 Feb 2022 14:47:07 +0100 [thread overview]
Message-ID: <20220223134722.354636-4-zimon.toutoune@gmail.com> (raw)
In-Reply-To: <20220223134722.354636-1-zimon.toutoune@gmail.com>
* guix/build/julia-build-system.scm (check): Do not run parallel tests when
'--cores=1'.
---
guix/build/julia-build-system.scm | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/guix/build/julia-build-system.scm b/guix/build/julia-build-system.scm
index c5ad65d029..b0dac154e9 100644
--- a/guix/build/julia-build-system.scm
+++ b/guix/build/julia-build-system.scm
@@ -112,9 +112,9 @@ (define* (check #:key tests? source inputs outputs julia-package-name
(job-count (if parallel-tests?
(parallel-job-count)
1))
- ;; The --proc argument of Julia *adds* extra processors rather than
- ;; specify the exact count to use, so zero must be specified to
- ;; disable parallel processing...
+ ;; The --procs argument of Julia *adds* extra processors rather
+ ;; than specify the exact count to use, so zero must be specified
+ ;; to disable parallel processing...
(additional-procs (max 0 (1- job-count))))
;; With a patch, SOURCE_DATE_EPOCH is honored
(setenv "SOURCE_DATE_EPOCH" "1")
@@ -127,7 +127,7 @@ (define* (check #:key tests? source inputs outputs julia-package-name
(setenv "HOME" "/tmp")
(apply invoke "julia"
`("--depwarn=yes"
- ,@(if parallel-tests?
+ ,@(if (and parallel-tests? (< 0 additional-procs))
;; XXX: ... but '--procs' doesn't accept 0 as a valid
;; value, so just omit the argument entirely.
(list (string-append "--procs="
--
2.34.0
next prev parent reply other threads:[~2022-02-23 13:48 UTC|newest]
Thread overview: 27+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-02-21 12:47 [bug#54088] [PATCH 0/2] julia-build-system: Add missing julia-pkg-deps Efraim Flashner
2022-02-21 12:51 ` [bug#54088] [PATCH 1/2] build: julia: Add julia-package-dependencies as keyword Efraim Flashner
2022-02-21 12:51 ` [bug#54088] [PATCH 2/2] gnu: julia-media: Use julia-package-dependencies Efraim Flashner
2022-02-23 13:44 ` [bug#54088] [PATCH 0/2] julia-build-system: Add missing julia-pkg-deps zimoun
2022-02-24 10:24 ` bug#54088: " Efraim Flashner
2022-02-24 10:39 ` [bug#54088] " zimoun
2022-02-23 13:47 ` [bug#54088] [PATCH v2 01/19] gnu: julia-xyz: Adjust style using G-expressions zimoun
2022-02-23 13:47 ` [bug#54088] [PATCH v2 02/19] build: julia: Add 'julia-package-dependencies' as keyword zimoun
2022-02-23 13:47 ` [bug#54088] [PATCH v2 03/19] gnu: julia-media: Use 'julia-package-dependencies' zimoun
2022-02-23 13:47 ` zimoun [this message]
2022-02-23 13:47 ` [bug#54088] [PATCH v2 05/19] gnu: julia-codeczlib: Delete trailing #t zimoun
2022-02-24 10:23 ` Efraim Flashner
2022-02-24 10:39 ` zimoun
2022-02-23 13:47 ` [bug#54088] [PATCH v2 06/19] gnu: julia-dataframes: " zimoun
2022-02-23 13:47 ` [bug#54088] [PATCH v2 07/19] gnu: julia-datavalues: " zimoun
2022-02-23 13:47 ` [bug#54088] [PATCH v2 08/19] gnu: julia-finitediff: " zimoun
2022-02-23 13:47 ` [bug#54088] [PATCH v2 09/19] gnu: julia-fixedpointnumbers: " zimoun
2022-02-23 13:47 ` [bug#54088] [PATCH v2 10/19] gnu: julia-http: " zimoun
2022-02-23 13:47 ` [bug#54088] [PATCH v2 11/19] gnu: julia-imagemagick: " zimoun
2022-02-23 13:47 ` [bug#54088] [PATCH v2 12/19] gnu: julia-infinity: " zimoun
2022-02-23 13:47 ` [bug#54088] [PATCH v2 13/19] gnu: julia-matrixfactorizations: " zimoun
2022-02-23 13:47 ` [bug#54088] [PATCH v2 14/19] gnu: julia-mbedtls: " zimoun
2022-02-23 13:47 ` [bug#54088] [PATCH v2 15/19] gnu: julia-prettytables: " zimoun
2022-02-23 13:47 ` [bug#54088] [PATCH v2 16/19] gnu: julia-pycall: " zimoun
2022-02-23 13:47 ` [bug#54088] [PATCH v2 17/19] gnu: julia-quadmath: " zimoun
2022-02-23 13:47 ` [bug#54088] [PATCH v2 18/19] gnu: julia-stackviews: " zimoun
2022-02-23 13:47 ` [bug#54088] [PATCH v2 19/19] gnu: julia-uris: " zimoun
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
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20220223134722.354636-4-zimon.toutoune@gmail.com \
--to=zimon.toutoune@gmail.com \
--cc=54088@debbugs.gnu.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.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.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).