From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id 4I3xLEc7FmIqSwAAgWs5BA (envelope-from ) for ; Wed, 23 Feb 2022 14:48:55 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id sPm3JUc7FmI3YgEAG6o9tA (envelope-from ) for ; Wed, 23 Feb 2022 14:48:55 +0100 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 2A44513D67 for ; Wed, 23 Feb 2022 14:48:55 +0100 (CET) Received: from localhost ([::1]:48470 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nMs0j-0004IH-7U for larch@yhetil.org; Wed, 23 Feb 2022 08:48:54 -0500 Received: from eggs.gnu.org ([209.51.188.92]:41246) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nMrzv-00039I-Gj for guix-patches@gnu.org; Wed, 23 Feb 2022 08:48:03 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:50442) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nMrzv-0004up-6F for guix-patches@gnu.org; Wed, 23 Feb 2022 08:48:03 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nMrzv-0004iX-4h for guix-patches@gnu.org; Wed, 23 Feb 2022 08:48:03 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#54088] [PATCH v2 04/19] build: julia-build-system: Fix corner-case for parallel tests. Resent-From: zimoun Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 23 Feb 2022 13:48:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 54088 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 54088@debbugs.gnu.org Cc: zimoun Received: via spool by 54088-submit@debbugs.gnu.org id=B54088.164562406617943 (code B ref 54088); Wed, 23 Feb 2022 13:48:03 +0000 Received: (at 54088) by debbugs.gnu.org; 23 Feb 2022 13:47:46 +0000 Received: from localhost ([127.0.0.1]:44315 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nMrzd-0004f3-CC for submit@debbugs.gnu.org; Wed, 23 Feb 2022 08:47:46 -0500 Received: from mail-wm1-f50.google.com ([209.85.128.50]:46015) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nMrza-0004dZ-5F for 54088@debbugs.gnu.org; Wed, 23 Feb 2022 08:47:43 -0500 Received: by mail-wm1-f50.google.com with SMTP id az26-20020a05600c601a00b0037c078db59cso4383682wmb.4 for <54088@debbugs.gnu.org>; Wed, 23 Feb 2022 05:47:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=HyXgeqQ1QVFMqhpQsQk9k83FcEWjoerZJ6yfanWkMZg=; b=diIO3HSt+xgWtvhAW+a8GQ1CYRqnpDKetHPMpaN5iWeK/BPCbBYrtyHnrPDV9CE2RR HO1u3zhzFH0KHcspT36vo1BUr1D2USbGorwe8lf4kfWgeoRz7JU/d7L25SwmJjajIaR+ P5emFMDf70SbqMcwFCgr6yIxnPyFYHfAwu/XkY/LKVQdcPzVF456GjVx6wBfCHrZkqRv q6o8phOCkiZfp1hiKutCUW0k6R9V5cZgWt/jQSOFHOmChZRdZc8AkTXZ+Wp88h0yZFOb HO7qpNjfwtIdVu+J1Uuhz0sSXA5FljX5g8dPxJ71cKfjy6NSRNoXIqZAwvTRES8lJd/v 9BHA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=HyXgeqQ1QVFMqhpQsQk9k83FcEWjoerZJ6yfanWkMZg=; b=Z+Kew485FoIVKWXELBipEilSG6d36+Lj7OEPPuflU0dMliYppEQS/pC6DYAO0cxHRI 5/ncDb02CKr6pDXMQSshbZyx/47pKPEZcBVMd60uINmIZrgzWWDScnK5i14FnipMkbbc FW9jgPZ2G73FXjkfF3/ZXdon3xwryHS7JEhJlq9fUcQr5VznzCdMMcBRl//ylqwUCmfH 4ZvkcxLrIpYZDXQeH7hxwLmy98WPag3MzSEquabsxtWQTkDTb/NEcfDcVxHwNR0ff/wg Ditp5hcK5sGaAuGSKOMjG3ClwkTpggHTnzIGPZLFPanzFanyHhRHf/3/ES4GTUqUdosq +AwA== X-Gm-Message-State: AOAM533bRdsJ8UbIizZRmbwzkBwHjie9h/opVucqfz729jC0tqmKa+N5 ht25T4LMyzFlsedabI1XA8Y7ZESrCoM= X-Google-Smtp-Source: ABdhPJzNFqsE1Bb5Jn/rvicCVNI67+ZAig9ahqqcDunAd6tJIW2tZItAHQ6bQfmMqpf9KJ+5Ek9RRw== X-Received: by 2002:a05:600c:3b06:b0:37c:3ce4:9a31 with SMTP id m6-20020a05600c3b0600b0037c3ce49a31mr7693945wms.192.1645624056366; Wed, 23 Feb 2022 05:47:36 -0800 (PST) Received: from localhost.localdomain ([193.48.40.241]) by smtp.gmail.com with ESMTPSA id d6sm55823135wrs.85.2022.02.23.05.47.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 23 Feb 2022 05:47:35 -0800 (PST) From: zimoun Date: Wed, 23 Feb 2022 14:47:07 +0100 Message-Id: <20220223134722.354636-4-zimon.toutoune@gmail.com> X-Mailer: git-send-email 2.34.0 In-Reply-To: <20220223134722.354636-1-zimon.toutoune@gmail.com> References: <20220223134722.354636-1-zimon.toutoune@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1645624135; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=HyXgeqQ1QVFMqhpQsQk9k83FcEWjoerZJ6yfanWkMZg=; b=KiboDe0OU+7p99Far4vZ7LRPLFm7tjhFfhx4FI1S7bjm1DMkizitOSLoHsAot/6E0VXr++ R9DLtaeOiaiuOkNe4Y56tEzM1d4nenPNDl5bsnPkTt4bPgNRj+jJ0pw94NkuOcyWVOaYCw ONfFlfXucp3/YGX4YU0KSV1/BaGQTBOUkMhkaIejb+cZiEkqOMdkCdmLjgC4MSrdv/p7gr euzChy1s7nh3vXn9wgkf/9bviqhSiJarscwYREU6pnu9ZO88Dkbvd6oWegEvvbCVeGDm0w bjaGLpracn+1DOfLoikeVNCnHI3ikAA+jimcAqhNW0Xvt1ZjlMi+/Hv3HxmO3Q== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1645624135; a=rsa-sha256; cv=none; b=ipmmp7hoMnQTNCrAl4GGkOAJEj73m9EP6tVnzlDQq/E3aX0FoJnDEQ1CxeqrpIndAdrq9+ yByQdJUqTZ/1M3ye7uKQ+J60AS45i9UBo+dzeuuuA94U5SYEpXVY9v6388y2GujCUHke88 9X05pkvw4s73c4NgK7/kzZ2rk1oO6iY1lDQRBIUvHPmJ4FGf7mIjqN6oeyedtA74tMwXCU 9C98XDaLvXK+gnF+TocLzJLhMI9/819xeKasrCdtTAqJeVxLGP/wvMZ5/d7+vVV7cyjrZi ZLYrdSVE3mt8ifegTz+i0EPqNPwTCg7kiY6s6kzRYwLRaKFUGcHVJHovAymxsQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=diIO3HSt; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -1.53 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=diIO3HSt; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 2A44513D67 X-Spam-Score: -1.53 X-Migadu-Scanner: scn1.migadu.com X-TUID: v3o0ffjzmqFt * 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