From: John Darrington <john@darrington.wattle.id.au>
To: guix-devel@gnu.org
Subject: guix challenge exit status
Date: Sun, 17 Apr 2016 08:51:59 +0200 [thread overview]
Message-ID: <20160417065159.GA6165@jocasta.intra> (raw)
[-- Attachment #1: Type: text/plain, Size: 2068 bytes --]
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*
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 contents differ:
local hash: 057h2zjp5ppziqq2g0c098rghkc9y2dsh2s2kvmywj06k29khhmc
http://mirror.hydra.gnu.org/nar/ffs9llk3jrvq5qriwhx8swqz4pklzrwr-perl-algorithm-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/0sdvdn9cjc1qikmgyh8qhi4r7lfnam18-pspp-0.10.1'
guix challenge: error: no substitutes for '/gnu/store/0sdvdn9cjc1qikmgyh8qhi4r7lfnam18-pspp-0.10.1'
1
...
Guix> guix build pspp
...
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'
--
Avoid eavesdropping. Send strong encryted email.
PGP Public key ID: 1024D/2DE827B3
fingerprint = 8797 A26D 0854 2EAB 0285 A290 8A67 719C 2DE8 27B3
See http://sks-keyservers.net or any PGP keyserver for public key.
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 181 bytes --]
next reply other threads:[~2016-04-17 6:52 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-04-17 6:51 John Darrington [this message]
2016-04-27 21:50 ` guix challenge exit status Ludovic Courtès
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20160417065159.GA6165@jocasta.intra \
--to=john@darrington.wattle.id.au \
--cc=guix-devel@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 external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.