From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:56588) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gJr5A-0001mM-6r for guix-patches@gnu.org; Mon, 05 Nov 2018 21:27:09 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gJr55-0003eI-6X for guix-patches@gnu.org; Mon, 05 Nov 2018 21:27:08 -0500 Received: from debbugs.gnu.org ([208.118.235.43]:59844) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gJr54-0003cn-7h for guix-patches@gnu.org; Mon, 05 Nov 2018 21:27:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1gJr54-0004h7-0o for guix-patches@gnu.org; Mon, 05 Nov 2018 21:27:02 -0500 Subject: [bug#33284] [PATCH] python: Honor '--cores=...' in tests. Resent-Message-ID: Received: from eggs.gnu.org ([2001:4830:134:3::10]:55439) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gJr47-000136-Pj for guix-patches@gnu.org; Mon, 05 Nov 2018 21:26:08 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gJr1w-0007nC-HI for guix-patches@gnu.org; Mon, 05 Nov 2018 21:23:53 -0500 Received: from mail.onyx.syn-alias.com ([206.152.134.66]:54019 helo=smtp.centurylink.net) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gJr1w-0007ks-AL for guix-patches@gnu.org; Mon, 05 Nov 2018 21:23:48 -0500 Date: Mon, 5 Nov 2018 20:23:44 -0600 From: Eric Bavier Message-ID: <20181105202344.0cab8e1e@centurylink.net> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; boundary="Sig_/7cQ39yOA70/2xVn8e0r9PSy"; protocol="application/pgp-signature" List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: 33284@debbugs.gnu.org --Sig_/7cQ39yOA70/2xVn8e0r9PSy Content-Type: multipart/mixed; boundary="MP_/bZ+.F2xVgHj.pl/fKmPrAXE" --MP_/bZ+.F2xVgHj.pl/fKmPrAXE Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Hello Guix, I noticed building 'python-minimal' that its tests seemed to have poor memory performance, i.e. using *a lot* of RAM. I thought maybe dropping --cores=3D... would help, but it did not; the tests use all available cores by default. The attached patch fixes this issue, though, the package still uses all cores while building some extension libraries. I suppose this patch would go to core-updates? Cheers, `~Eric --MP_/bZ+.F2xVgHj.pl/fKmPrAXE Content-Type: text/x-patch Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename=0001-python-Honor-cores-.-in-tests.patch =46rom 076d2f7f32a51f90f85be3da836d208987e9c678 Mon Sep 17 00:00:00 2001 From: Eric Bavier Date: Thu, 1 Nov 2018 21:18:41 -0500 Subject: [PATCH] python: Honor '--cores=3D...' in tests. * gnu/packages/python.scm (python-2.7)[arguments]: Add #:make-flags. --- gnu/packages/python.scm | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index fbb280224..9a8b9dfcf 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -206,6 +206,9 @@ "--enable-unicode=3Ducs4" (string-append "LDFLAGS=3D-Wl,-rpath=3D" (assoc-ref %outputs "out") "/lib")) + ;; With no -j argument tests use all available cpus, so provide one. + #:make-flags + (list (format #f "EXTRATESTOPTS=3D-j~d" (parallel-job-count))) =20 #:modules ((ice-9 ftw) (ice-9 match) (guix build utils) (guix build gnu-build-system)) --=20 2.19.1 --MP_/bZ+.F2xVgHj.pl/fKmPrAXE-- --Sig_/7cQ39yOA70/2xVn8e0r9PSy Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEEoMXjUi7471xkzbfw/XPKxxnTJWYFAlvg+zAACgkQ/XPKxxnT JWaQJhAAnK19/Gseg2vroo+GPgnUIrKK61Nsa55pbr0G0h0fPZTxSOABO2QkTt0W ZYqAwFtaSpxbebwRWUrZEAJpxqHST4KDsAaiHAryDyue/oxojNIhUvZfpgpVG1Dh sNxkkS4uX0ru/yVtPwpRhw3SXmZb62EKAGT09R4Vn3oC8GRVTpfKeRjQMDY42zPD dLfSN2lUx/WbwE0oAfnDOUQtX0JwuFdErHJ4wXNiiRqedw0FWNrdeMS0mImSK0ol 2tIHUUMC57CmozcXuemyB2o6Acn6UTyie1XjqpDlfKKbuheI9THLKcGrmha/6UU/ epgtjcH/2K+Q0aoepr7obCocAUuIEtJwiRyLstsyGK5SqVOfQUGhC9BEGrj83uJy BswnD9iT5UNkNfBxQDBvdEhKAInvJDjNbt5XR2OGcdzGKF9ePrfahpWP/cijIKOG JD069Zezv8bPaKTXh58pMHEu/+4RE+ClimdJqMdseJX6vOg6xFhpV0xO8xW4jnD8 SZYkqlP3StATyLit8Lro89ZrbJ6HRjmqiDFjFJz7f7yW3Zen4LyFmFrigWzr0Dub qMtfUASji+87tRiAe+qezilOWy2TER2Ly0SfzVz90LbD4kFUFYALIKDSgc0ABZ+R JQnEBHrlivwjWGWh4dchqhB6MW/f3d6Te1f1BUC8KUHZ0tZIswE= =MFCC -----END PGP SIGNATURE----- --Sig_/7cQ39yOA70/2xVn8e0r9PSy--