all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* guix challenge exit status
@ 2016-04-17  6:51 John Darrington
  2016-04-27 21:50 ` Ludovic Courtès
  0 siblings, 1 reply; 2+ messages in thread
From: John Darrington @ 2016-04-17  6:51 UTC (permalink / raw)
  To: guix-devel

[-- 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 --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: guix challenge exit status
  2016-04-17  6:51 guix challenge exit status John Darrington
@ 2016-04-27 21:50 ` Ludovic Courtès
  0 siblings, 0 replies; 2+ messages in thread
From: Ludovic Courtès @ 2016-04-27 21:50 UTC (permalink / raw)
  To: John Darrington; +Cc: guix-devel

John Darrington <john@darrington.wattle.id.au> skribis:

> 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.

Good idea.  I pushed something along these lines as
a17417a812614eee2a7e39155712d7efe814f559.

Thanks,
Ludo’.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2016-04-27 21:50 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-04-17  6:51 guix challenge exit status John Darrington
2016-04-27 21:50 ` Ludovic Courtès

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.