From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id 4IfsLRNNPmfBuwAAqHPOHw:P1 (envelope-from ) for ; Wed, 20 Nov 2024 20:56:51 +0000 Received: from aspmx1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id 4IfsLRNNPmfBuwAAqHPOHw (envelope-from ) for ; Wed, 20 Nov 2024 21:56:51 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=debbugs.gnu.org header.s=debbugs-gnu-org header.b=mOddRubA; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20230601 header.b=YZd4urJ8; dmarc=fail reason="SPF not aligned (relaxed), DKIM not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1732136211; a=rsa-sha256; cv=none; b=rp6IKt/x3i29XXuJwTbLb8RvF7m4gu/+IIcigl8szPdL1XJuS4cOb294F5py1Y3DCuDryA ZJtnFmVGufEJRznKTVHSavDkbrLv2aoBId0Qgq9fN/FbvYxMS3QXxtmIBOva0XBp/ccpF8 ymzkYBvt4wKMxKYTAuVYroDI8GEgPWYUECc4y7pjhtIfpxSsF7E0Vz5327vjJgD/TQKxzZ 9BXrWNMIG+3f5K65+PVHS3cTcdF9E7zEQJYSW7RmqLG1AR7uRiTAZrdEMgnKVYV2tgoR2E 60zIkjEiWsApJGtvCzhTmGYzf61xSnsybq/2LiWj1iCfe8HBroF7aeynStbKXA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=debbugs.gnu.org header.s=debbugs-gnu-org header.b=mOddRubA; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20230601 header.b=YZd4urJ8; dmarc=fail reason="SPF not aligned (relaxed), DKIM not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1732136211; 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=k/OWKo6enBDb6mGBDlb0YAbhhPic0sIcEqBCDxkmQIk=; b=pMJVoVgkDIcj5ps/hfSsFl1W6rm1M064WVobqeE+r4xYlsetHQFtNZ8gffjCa5jAdmULXn GXyKTWebXka6BddsF3wY8j1qE47E/rgPlsRHSE1LGvyFLb03NHAj3tiio5Cy/Zh+V69H9t LBlK1BJFIFTjjyoCYLG9x2gv91LAK6H3KT5IdSjPL6drcdjugmF457vwN0dJfUCWAHFsr7 5wJ90HAyZb2r8Y38CHnrEY8ig73RlP47R7989je1GXyLqHBaa7W5aQN3jG06YoDrh5MhFZ 7LXzsisgeBco7hoScgyDbJIzRxV+Sh9Ii9etnVqgrg7vV40lCzA4BMwDMsYbsw== 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 45931842E4 for ; Wed, 20 Nov 2024 21:56:51 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tDrkA-0005a8-Rk; Wed, 20 Nov 2024 15:56:11 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tDrk9-0005Zu-VS for bug-guix@gnu.org; Wed, 20 Nov 2024 15:56:10 -0500 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tDrk9-0007i9-Jq; Wed, 20 Nov 2024 15:56:09 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:References:In-Reply-To:Date:From:To:Subject; bh=k/OWKo6enBDb6mGBDlb0YAbhhPic0sIcEqBCDxkmQIk=; b=mOddRubAu5OSUdR80feoIVECYFkDlNu60jwlXtKLL0het2fk5OZ5XBRlyieyXLo7il7XF7KSIR66tiy4n0J7vzYAesCuk0tNXfVrJBAjXx3RRgOuJKqX94xsSdh2JGVQTD9oZW6VQm45zg9xtrbDYnxuvRmn0JePVTYegClggQDBfkIoc23YktMPcn2G2ulUmrl74/HZI+vyP6R5pSNLrvPiOkdxQfJH8KI+vr3aY2GBZvtFcKpZB3bRWhjltsbubY0+cUZmSoZecKmoLqhDWM+OwY4JEIHePe8BW7hkoAH1V9uc7Wpuyjzv84Ae7BFhBdVon04ACmC83hVivvxkNA==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tDrk2-00085T-V2; Wed, 20 Nov 2024 15:56:02 -0500 X-Loop: help-debbugs@gnu.org Subject: bug#74445: [PATCH 1/1] gnu: Respect --cores build argument in some python packages. Resent-From: Sharlatan Hellseher Original-Sender: "Debbugs-submit" Resent-CC: andreas@enge.fr, bavier@posteo.net, lars@6xq.net, marius@gnu.org, me@bonfacemunyoki.com, sharlatanus@gmail.com, tanguy@bioneland.org, jgart@dismail.de, bug-guix@gnu.org Resent-Date: Wed, 20 Nov 2024 20:56:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 74445 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 74445@debbugs.gnu.org Cc: Sharlatan Hellseher , Andreas Enge , Eric Bavier , Lars-Dominik Braun , Marius Bakke , Munyoki Kilyungi , Sharlatan Hellseher , Tanguy Le Carrour , jgart X-Debbugs-Original-Xcc: Andreas Enge , Eric Bavier , Lars-Dominik Braun , Marius Bakke , Munyoki Kilyungi , Sharlatan Hellseher , Tanguy Le Carrour , jgart Received: via spool by 74445-submit@debbugs.gnu.org id=B74445.173213613631043 (code B ref 74445); Wed, 20 Nov 2024 20:56:02 +0000 Received: (at 74445) by debbugs.gnu.org; 20 Nov 2024 20:55:36 +0000 Received: from localhost ([127.0.0.1]:47952 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tDrjb-00084c-Pe for submit@debbugs.gnu.org; Wed, 20 Nov 2024 15:55:36 -0500 Received: from mail-wr1-f48.google.com ([209.85.221.48]:57847) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tDrjZ-00084O-16 for 74445@debbugs.gnu.org; Wed, 20 Nov 2024 15:55:34 -0500 Received: by mail-wr1-f48.google.com with SMTP id ffacd0b85a97d-382423f4082so82685f8f.3 for <74445@debbugs.gnu.org>; Wed, 20 Nov 2024 12:55:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1732136067; x=1732740867; darn=debbugs.gnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=k/OWKo6enBDb6mGBDlb0YAbhhPic0sIcEqBCDxkmQIk=; b=YZd4urJ8L+EQ1oclHDRPXnNfiZKi6nFbRQPVRoy/2zhEkcfyjUgOfHBTkrYTAxHCxP FWp1k6DLnGyf9xOfkryUFjhx9kVZ8UCeMTP1X/UU1dXnRbRWjlkKYGhr+0PqOkK5pCUB rLWaBzp09/JyhWatfvlT5jCmS5UZwBw/61o23tUW/7UBLxyv6C+NsBpK18FsI3zXk/a8 yaWtlW2QjIVPss9UiqKEya3iPHxYfT/7tKCmGSyaMy64TdY2c54jPJcRpxDNkpxolPfh NFqQYzgZ+JjaAUe/H8VqCkGnWgJ+eLZesyDvA8Oj10NAUf7OAds0DfYUHvQXVsaBaLuV pmFw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1732136067; x=1732740867; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=k/OWKo6enBDb6mGBDlb0YAbhhPic0sIcEqBCDxkmQIk=; b=g2EC1swbUSQw91v7HKeLrhBEQtpUE15LhWDBRJDed/EDXfVJdQJMRZTdrl12fETuLk FCXTaxHj3L7RgR8F2s5dGS8JOucoIftQNHj5IZzKYEVw+K2RxOXArNq8T3k04UDQsRdu 6bUOmSU79ml+7fA71XWShxBV2Hb/rfjuwn+CAAdMn99thBhsv0EhJLol2clnxdAIzubF FYhryLDJD6yYkd9dY6DYR00skkNOhoAvY16gfWxOfiktEIsCKhFFMCJODH3Y4OWpL2fm l/py2EPF1horS7IhIEo8ztMTL2dGzgYegcTYwhNnYXA5rbyx6J9iJKsBztiphb7f3AKb gIKQ== X-Gm-Message-State: AOJu0YxPsmQMoC+9kv+X0rr7kYegSChDhUalLHamuSf20B4M9zBqWaKu ZqLQL10q9lz/Sddb0s9LevhPk5bupkTCH1W/iLnC8f7z6z8hZTIX1gIpODPuzfc= X-Gm-Gg: ASbGncu5XEAOf75NaM+I0AE2AxaIGN/filUOAVCpmWgos3Gfqw2SFHyI6Q7UNSKIFwD AiClAGEqUjMtvmUh6lS3mTMSJgbFwyRVJRpYaRWo42AygpekybjTznx2dEMAEmgoAsCawofS1l3 x/aWHyH9KfNeR7KZ4MHfAqUl2P0ieObkxKUSta4o54MnoxKHFqNl2+d+rkHgzTHN5Q2x3/Csgbd yUY/cwrisRmGOERoyaXA3L6Mzye7MdJwfznk9DEzDE3DJzxipmcXD/dPg1b7/P+YeULa5y+MlcH 4M3ZYi+hePu7mIu5QbHN3Acm6+fycNQVvQ57OY8DrA== X-Google-Smtp-Source: AGHT+IHQovZYO0+heS3oXSY8btF15eyYH8qH2EWKrVflzXGXbBgoKFFQ5gkCWJ7yb8ZapEL3bzUcGQ== X-Received: by 2002:a5d:584d:0:b0:382:4926:98d6 with SMTP id ffacd0b85a97d-38254b18033mr3112766f8f.36.1732136067059; Wed, 20 Nov 2024 12:54:27 -0800 (PST) Received: from guxtil.incerto.xyz (cpc100684-bagu15-2-0-cust967.1-3.cable.virginm.net. [86.8.111.200]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-3825494b974sm2991409f8f.108.2024.11.20.12.54.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Nov 2024 12:54:26 -0800 (PST) From: Sharlatan Hellseher Date: Wed, 20 Nov 2024 20:54:24 +0000 Message-ID: <7e70f59d92f55b3ad70baa428a2e301a20d967d3.1732135585.git.sharlatanus@gmail.com> X-Mailer: git-send-email 2.46.0 In-Reply-To: References: 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: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: bug-guix-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Queue-Id: 45931842E4 X-Migadu-Scanner: mx13.migadu.com X-Migadu-Spam-Score: -4.44 X-Spam-Score: -4.44 X-TUID: jh53DSaHAH1g Reported by Greg Hogan in #74445. * gnu/packages/astronomy.scm (python-asdf-astropy, python-astropy, python-photutils, python-poppy, python-regions, python-reproject, python-sunpy, python-spectral-cube, python-stdatamodels, python-pysiaf, python-sbpy, python-asdf-coordinates-schemas, python-roman-datamodels, python-webbpsf, python-yt): [arguments]: Adjust "-n" or "--numprocess" to respect "--cores" build argument. * gnu/packages/check.scm (python-crosshair): Likewise. * gnu/packages/databases.scm (python-fastparquet, python-pycurl, awscli, python-s3transfer): Likewise. * gnu/packages/python-xyz.scm (python-glymur, python-zarr, python-dask): Likewise. Change-Id: Ifbc6435e4ad22b0ae822b485bccca41eaa165cc5 --- gnu/packages/astronomy.scm | 31 ++++++++++++++++--------------- gnu/packages/check.scm | 2 +- gnu/packages/databases.scm | 2 +- gnu/packages/python-web.scm | 6 +++--- gnu/packages/python-xyz.scm | 6 +++--- 5 files changed, 24 insertions(+), 23 deletions(-) diff --git a/gnu/packages/astronomy.scm b/gnu/packages/astronomy.scm index 6cc5142370..296ac44dbf 100644 --- a/gnu/packages/astronomy.scm +++ b/gnu/packages/astronomy.scm @@ -1653,7 +1653,7 @@ (define-public python-asdf-astropy (arguments (list #:test-flags - #~(list "-n" "auto") + #~(list "--numprocesses" (number->string (parallel-job-count))) #:phases #~(modify-phases %standard-phases (add-before 'check 'set-home-env (lambda _ (setenv "HOME" "/tmp")))))) @@ -3034,7 +3034,7 @@ (define-public python-astropy (list #:test-flags #~(list "--pyargs" "astropy" - "--numprocesses" "auto" + "--numprocesses" (number->string (parallel-job-count)) "-k" (string-append ;; Skip tests that need remote data. "not remote_data" @@ -3924,7 +3924,7 @@ (define-public python-photutils (arguments (list #:test-flags - #~(list "--numprocesses" "auto") + #~(list "--numprocesses" (number->string (parallel-job-count))) #:phases #~(modify-phases %standard-phases (add-after 'unpack 'relax-requirements @@ -4085,7 +4085,7 @@ (define-public python-poppy (arguments (list #:test-flags - #~(list "-n" "auto"))) + #~(list "--numprocesses" (number->string (parallel-job-count))))) (propagated-inputs ;; XXX: With python-synphot (marked as optional) package added to the list ;; it tries to download from remote host during tests and fails. Overall @@ -4191,7 +4191,7 @@ (define-public python-regions (arguments (list #:test-flags - #~(list "--numprocesses" "auto") + #~(list "--numprocesses" (number->string (parallel-job-count))) #:phases #~(modify-phases %standard-phases ;; setup.py was removed in 84c80a280431adda00641cda5264c7de18b43b2f @@ -4295,7 +4295,7 @@ (define-public python-reproject #:test-flags #~(list "--arraydiff" "--arraydiff-default-format=fits" - "--numprocesses" "auto" + "--numprocesses" (number->string (parallel-job-count)) "--pyargs" "reproject") #:phases #~(modify-phases %standard-phases @@ -4399,7 +4399,7 @@ (define-public python-sunpy (arguments (list #:test-flags - #~(list "--numprocesses" "auto" + #~(list "--numprocesses" (number->string (parallel-job-count)) ;; Requries SpicePy not packed in Guix yet. "--ignore=sunpy/coordinates/tests/test_spice.py") #:phases @@ -4589,7 +4589,7 @@ (define-public python-spectral-cube ;; See . #:tests? #f #:test-flags - #~(list "-n" "auto"))) + #~(list "--numprocesses" (number->string (parallel-job-count))))) (propagated-inputs (list python-astropy ;; XXX: Currently failing in upstream as it's optional silent @@ -4981,7 +4981,7 @@ (define-public python-stdatamodels (arguments (list #:test-flags - #~(list "--numprocesses" "auto" + #~(list "--numprocesses" (number->string (parallel-job-count)) ;; Disable tests requiring access to CRDS servers to download ;; ~500MiB of data. "-k" "not test_crds_selectors_vs_datamodel") @@ -5450,7 +5450,7 @@ (define-public python-pysiaf (arguments (list #:test-flags - #~(list "--numprocesses" "auto" + #~(list "--numprocesses" (number->string (parallel-job-count)) ;; Disable 2 failing tests, see ;; "-k" (string-append "not test_write_jwst_siaf_xlsx" @@ -5543,7 +5543,8 @@ (define-public python-sbpy (build-system pyproject-build-system) (arguments (list - #:test-flags #~(list "--numprocesses" "auto") + #:test-flags + #~(list "--numprocesses" (number->string (parallel-job-count))) #:phases #~(modify-phases %standard-phases (add-before 'check 'set-home-env @@ -5835,7 +5836,7 @@ (define python-asdf-coordinates-schemas (arguments (list #:test-flags - #~(list "-n" "auto"))) + #~(list "--numprocesses" (number->string (parallel-job-count))))) (native-inputs (list python-pytest python-pytest-xdist @@ -6137,7 +6138,7 @@ (define-public python-roman-datamodels (arguments (list #:test-flags - #~(list "--numprocesses" "auto") + #~(list "--numprocesses" (number->string (parallel-job-count))) #:phases #~(modify-phases %standard-phases (add-after 'unpack 'set-env @@ -6295,7 +6296,7 @@ (define-public python-webbpsf (arguments (list #:test-flags - #~(list "--numprocesses" "auto" + #~(list "--numprocesses" (number->string (parallel-job-count)) "-k" (string-append ;; Test requiring network access "not test_monthly_trending_plot_auto_opdtable" @@ -6383,7 +6384,7 @@ (define-public python-yt (list #:build-backend "setuptools.build_meta" #:test-flags - #~(list "--numprocesses" "auto") + #~(list "--numprocesses" (number->string (parallel-job-count))) #:phases #~(modify-phases %standard-phases (add-after 'unpack 'relax-requirements diff --git a/gnu/packages/check.scm b/gnu/packages/check.scm index 6593eadf6a..ef1c08f8f3 100644 --- a/gnu/packages/check.scm +++ b/gnu/packages/check.scm @@ -2744,7 +2744,7 @@ (define-public python-crosshair (arguments (list #:test-flags - #~(list "--numprocesses" "auto" + #~(list "--numprocesses" (number->string (parallel-job-count)) ;; check_examples_test.py contains failing tests that ;; show what happens if a counterexample is found. "--ignore=crosshair/examples/check_examples_test.py" diff --git a/gnu/packages/databases.scm b/gnu/packages/databases.scm index 5f762eb5be..142f9090c5 100644 --- a/gnu/packages/databases.scm +++ b/gnu/packages/databases.scm @@ -5203,7 +5203,7 @@ (define-public python-fastparquet (arguments (list #:test-flags - #~(list "-n" "auto") + #~(list "--numprocesses" (number->string (parallel-job-count))) #:phases #~(modify-phases %standard-phases (add-after 'unpack 'relax-requirements diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm index c030deeb12..cf3c15857c 100644 --- a/gnu/packages/python-web.scm +++ b/gnu/packages/python-web.scm @@ -2026,7 +2026,7 @@ (define-public python-pycurl (build-system pyproject-build-system) (arguments '(#:test-flags - (list "-n" "auto" + (list "--n" (number->string (parallel-job-count)) "-k" (string-append ;; Disable hanginging tests "not test_multi_socket_select" @@ -4235,7 +4235,7 @@ (define-public awscli (arguments (list #:test-flags - #~(list "--numprocesses" "auto" + #~(list "--numprocesses" (number->string (parallel-job-count)) ;; Tests require networking. "--ignore" "tests/integration" ;; It strugles to set PYTHONPATH. @@ -4909,7 +4909,7 @@ (define-public python-s3transfer (arguments (list #:test-flags - #~(list "--numprocesses" "auto" + #~(list "--numprocesses" (number->string (parallel-job-count)) ;; Tests require networking. "--ignore" "tests/integration"))) (native-inputs diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index ceb122e08d..3872b511a1 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -2296,7 +2296,7 @@ (define-public python-glymur (arguments (list #:test-flags - #~(list "--numprocesses" "auto" + #~(list "--numprocesses" (number->string (parallel-job-count)) ;; Failing test due to inability of ctypes.util.find_library() ;; to determine library path, which is patched above. "--ignore=tests/test_config.py") @@ -28320,7 +28320,7 @@ (define-public python-zarr (arguments (list #:test-flags - #~(list "-n" "auto" + #~(list "--numprocesses" (number->string (parallel-job-count)) ;; This tests are flaky. The pass several times on my laptop ;; but occasionally fail. They fail pretty reliably on the ;; build farm. @@ -28845,7 +28845,7 @@ (define-public python-dask (list ;; Avoid coverage #:test-flags - #~(list "-n" "auto" + #~(list "--numprocesses" (number->string (parallel-job-count)) "-m" "not gpu and not slow and not network" ;; These all fail with different hashes. Doesn't seem ;; problematic. -- 2.46.0