darcs

Issue 1269 Bug: predist exit status is ignored

Title Bug: predist exit status is ignored
Priority bug Status resolved
Milestone Resolved in
Superseder Nosy List benmos, cygnus, darcs-devel, dmitry.kurochkin, jaredj, kowey, thorkilnaur
Assigned To benmos
Topics ProbablyEasy

Created on 2008-12-17.09:43:07 by cygnus1, last changed 2009-10-24.00:30:46 by admin.

Files
File name Uploaded Type Edit Remove
raw-darcs-email.txt benmos, 2009-03-04.07:05:15 text/plain
Messages
msg6828 (view) Author: cygnus Date: 2008-12-17.09:43:05
Greetings,

This is to report an apparent bug in the behavior of the "predist"
preference; if the "predist" program exists with a non-zero status, it
is ignored by "darcs dist" and the dist continues on to generate the
dist tarball instead of exiting immediately.  This caused a serious
problem in a production environment and it seems to be an oversight.
Suggested fix is to exit immediately from dist -- if a hook exits
non-zero -- with the same exit status.

Thanks!

Platform: Ubuntu Linux 8.10

$ darcs --exact-version
darcs compiled on Sep 29 2008, at 21:58:25
# configured Sat Jul 26 14:09:28 CEST 2008
./configure /usr/local/share/config.site /usr/local/etc/config.site

Context:

[TAG debian: 2.0.2-2
me@mornfall.net**20080726120856]
msg6973 (view) Author: thorkilnaur Date: 2009-01-05.13:32:24
Thank you for this report. It appears to be a bug that should be relatively easy 
to fix, so I would like some volunteer to look at it. Initially, a confirmation 
of this behavior, a test case perhaps, would be useful.

Thanks and best regards
Thorkil
msg7367 (view) Author: benmos Date: 2009-03-01.14:02:43
Patches submitted.
msg7370 (view) Author: kowey Date: 2009-03-01.20:20:24
Hi Ben,

> benmos <ben@moseley.name> added the comment:
> 
> Patches submitted.

Thanks!  But I haven't received this yet.  Does darcs send work for you
with other projects?  Is sendmail (or the equivalent) configured on your
machine?
msg7376 (view) Author: benmos Date: 2009-03-02.08:13:14
Apologies for that. I /think/ 'darcs send' should be working ok - I'm on OS X 
10.5, started postfix manually (sudo postfix start), and it all seemed to work 
ok when I used "--to" to send the patch to myself.

What I guess I may have done wrong is to forget to specify a sensible "from" 
address - so possibly the patches fell prey to spam filters. I've resent using 
an explicit "--from" this time. If that still doesn't work, and we can't think 
of anything else to check, I'll mail them by hand.
msg7394 (view) Author: kowey Date: 2009-03-03.20:37:49
On Mon, Mar 02, 2009 at 08:13:17 -0000, benmos wrote:
> What I guess I may have done wrong is to forget to specify a sensible "from" 
> address - so possibly the patches fell prey to spam filters. I've resent using 
> an explicit "--from" this time. If that still doesn't work, and we can't think 
> of anything else to check, I'll mail them by hand.

Hmm, still nothing!  I vaguely recall that the darcs-users lists is very
picky about who it accepts mail from.  I don't remember the exact
details, though...

On the Mac, I've taken to using 'send sendmail-command msmtp -t %<'
msg7396 (view) Author: benmos Date: 2009-03-04.07:05:15
I've sent them manually now (forwarded them both to "darcs-users@darcs.net" and 
to you personally Eric just-in-case).

Just for the record, I'm attaching a file with the raw email contents which I 
generated when I did the darcs send to myself - the "from:" address seems to be 
ok, but maybe there's some other problem.

The console output of me doing the actual send (first to myself - as in the 
attachment - and then for real):

patrick-moseleys-macbook-pro:me-darcs ben$ darcs send --to ben@moseley.name --
from ben@moseley.name
Creating patch to "/Users/ben/darcsHacking/unstable"...
Sun Mar  1 11:07:05 GMT 2009  ben@moseley.name
 * Adding test for setpref predist bug 1269
Shall I send this patch? (1/2)  [ynWsfvplxdaqjk], or ? for help: y
Sun Mar  1 12:26:29 GMT 2009  ben@moseley.name
 * resolve issue1269: setpref predist - exitcode ignored bug
Shall I send this patch? (2/2)  [ynWvplxdaqjk], or ? for help: y
Successfully sent patch bundle to: ben@moseley.name.

patrick-moseleys-macbook-pro:me-darcs ben$ darcs send --from 
ben@moseley.nameCreating patch to "/Users/ben/darcsHacking/unstable"...
Patch bundle will be sent to: darcs-users@darcs.net
Sun Mar  1 11:07:05 GMT 2009  ben@moseley.name
 * Adding test for setpref predist bug 1269
Shall I send this patch? (1/2)  [ynWsfvplxdaqjk], or ? for help: y
Sun Mar  1 12:26:29 GMT 2009  ben@moseley.name
 * resolve issue1269: setpref predist - exitcode ignored bug
Shall I send this patch? (2/2)  [ynWvplxdaqjk], or ? for help: y
Successfully sent patch bundle to: darcs-users@darcs.net.
patrick-moseleys-macbook-pro:me-darcs ben$
Attachments
msg7578 (view) Author: benmos Date: 2009-04-06.01:44:52
The following patch updated the status of issue1269 to be resolved:

* resolve issue1269: setpref predist - exitcode ignored bug 
Ignore-this: 37c7f6e0061896c457cb7eeefb1d1937
History
Date User Action Args
2008-12-17 09:43:08cygnus1create
2009-01-05 13:32:29thorkilnaursetpriority: bug
status: unread -> needs-reproduction
topic: + ProbablyEasy
messages: + msg6973
nosy: + jaredj
2009-02-28 13:13:49benmossetstatus: needs-reproduction -> has-patch
nosy: + benmos
assignedto: benmos
2009-03-01 14:02:46benmossetstatus: has-patch -> testing
nosy: kowey, simon, thorkilnaur, jaredj, dmitry.kurochkin, cygnus1, benmos
messages: + msg7367
2009-03-01 20:20:27koweysetnosy: kowey, simon, thorkilnaur, jaredj, dmitry.kurochkin, cygnus1, benmos
messages: + msg7370
2009-03-02 08:13:17benmossetnosy: kowey, simon, thorkilnaur, jaredj, dmitry.kurochkin, cygnus1, benmos
messages: + msg7376
2009-03-03 20:37:54koweysetnosy: kowey, simon, thorkilnaur, jaredj, dmitry.kurochkin, cygnus1, benmos
messages: + msg7394
2009-03-04 07:05:26benmossetfiles: + raw-darcs-email.txt
nosy: kowey, simon, thorkilnaur, jaredj, dmitry.kurochkin, cygnus1, benmos
messages: + msg7396
2009-04-06 01:44:54benmossetstatus: testing -> resolved
nosy: kowey, simon, thorkilnaur, jaredj, dmitry.kurochkin, cygnus1, benmos
messages: + msg7578
2009-08-25 17:36:16adminsetnosy: + darcs-devel, - simon
2009-08-27 14:16:25adminsetnosy: kowey, darcs-devel, thorkilnaur, jaredj, dmitry.kurochkin, cygnus1, benmos
2009-10-24 00:30:46adminsetnosy: + cygnus, - cygnus1