From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Darrington Subject: guix challenge exit status Date: Sun, 17 Apr 2016 08:51:59 +0200 Message-ID: <20160417065159.GA6165@jocasta.intra> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="XsQoSWH+UP9D9v3l" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:39278) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1argZ3-0002xY-NC for guix-devel@gnu.org; Sun, 17 Apr 2016 02:52:14 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1argZ0-0006WT-Et for guix-devel@gnu.org; Sun, 17 Apr 2016 02:52:13 -0400 Received: from de.cellform.com ([88.217.224.109]:48237 helo=jocasta.intra) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1argZ0-0006Rw-6c for guix-devel@gnu.org; Sun, 17 Apr 2016 02:52:10 -0400 Received: from jocasta.intra (localhost [127.0.0.1]) by jocasta.intra (8.14.4/8.14.4/Debian-8) with ESMTP id u3H6pxHt013093 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Sun, 17 Apr 2016 08:52:00 +0200 Received: (from john@localhost) by jocasta.intra (8.14.4/8.14.4/Submit) id u3H6pxNQ013092 for guix-devel@gnu.org; Sun, 17 Apr 2016 08:51:59 +0200 Content-Disposition: inline List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: guix-devel@gnu.org --XsQoSWH+UP9D9v3l Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Ludo recently fixed a problem with the exit status of "guix challenge". So now it (correctly) returns zero if the challenge is succesfull, and non-zero otherwise. It would be very useful however, if it would return a *different*=20 non-zero if the challenge fails from when the challenge is inconclusive. For example, the current behaviour seems to be: Unsuccessful Challenge: ---------------------- guix challenge perl-algorithm-diff ; echo $? updating list of substitutes from 'http://mirror.hydra.gnu.org'... 100.0% updating list of substitutes from 'http://hydra.gnu.org'... 100.0% /gnu/store/ffs9llk3jrvq5qriwhx8swqz4pklzrwr-perl-algorithm-diff-1.1903 cont= ents differ: local hash: 057h2zjp5ppziqq2g0c098rghkc9y2dsh2s2kvmywj06k29khhmc http://mirror.hydra.gnu.org/nar/ffs9llk3jrvq5qriwhx8swqz4pklzrwr-perl-alg= orithm-diff-1.1903: 0w6xvsnh9rn8h42xlc7v1m508g129b5zi2p6p2nizrxcyam9s4nk http://hydra.gnu.org/nar/ffs9llk3jrvq5qriwhx8swqz4pklzrwr-perl-algorithm-= diff-1.1903: 0w6xvsnh9rn8h42xlc7v1m508g129b5zi2p6p2nizrxcyam9s4nk 1 Inconclusive Challenge: ---------------------- Guix> guix challenge pspp ; echo $? updating list of substitutes from 'http://mirror.hydra.gnu.org'... 100.0% updating list of substitutes from 'http://hydra.gnu.org'... 100.0% guix challenge: warning: no local build for '/gnu/store/0sdvdn9cjc1qikmgyh8= qhi4r7lfnam18-pspp-0.10.1' guix challenge: error: no substitutes for '/gnu/store/0sdvdn9cjc1qikmgyh8qh= i4r7lfnam18-pspp-0.10.1' 1 =2E.. Guix> guix build pspp =2E.. Succesfull Challenge: -------------------- Guix> guix challenge pspp ; echo $? updating list of substitutes from 'http://mirror.hydra.gnu.org'... 100.0% updating list of substitutes from 'http://hydra.gnu.org'... 100.0% 0 I suggest returning 2 in the inconclusive case. J' --=20 Avoid eavesdropping. Send strong encryted email. PGP Public key ID: 1024D/2DE827B3=20 fingerprint =3D 8797 A26D 0854 2EAB 0285 A290 8A67 719C 2DE8 27B3 See http://sks-keyservers.net or any PGP keyserver for public key. --XsQoSWH+UP9D9v3l Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iEYEARECAAYFAlcTMo8ACgkQimdxnC3oJ7N5TQCcDnK+Ufq+30Gbn5ERJCKzrPb+ +9QAnj4F73VSwQ7t6Sdh4FEwbDJZmhkU =vjRW -----END PGP SIGNATURE----- --XsQoSWH+UP9D9v3l--