Home
heviosso
09 January 2008 @ 03:06 am
Just found out that one of our (slind) recent night builds failed to the point of destroying the repository on the main server (that is, rsyncing up an empty repository). Which in itself is not much of a problem, but still sets it several days back and not to mention the bandwidth. This, however is not why we're here.

Investigation of the problem that caused said failure was much shorter than I dreaded and the problem itself turned out to be pretty simple. Each time the build starts, one of the scripts involved downloads a database file, which is most important for the build infrastructure. It used to do so by issuing 'curl $URL'. Pretty simple, but not safe against network and/or server failures. Then, one of our engineers decided to make it safer by patching it like this (these snippets are simplified, see below for original code):

- curl $URL
+ curl $URL || die "Failed to download a very important file!"


...which is a nice try, except that curl will always exit with 0 code regardless of HTTP response code, unless given -f/--fail option. IOW, we still have incorrect code, but this one gives us false sense of security.
And of course, if -f was there the night before, the repository wouldn't have been destroyed at all.

P.S. And the commit in question is here.
 
 
Mood: sleepy
Now listening: amorphis -- the white swan
 
 
heviosso
21 December 2007 @ 10:04 pm
It turns out so that in OSS projects of small to medium size (in terms of contributors involved), a developer working alone in a certain area might feel abandoned and lonely and sometimes might even resort to using bugzilla to attract others' attention.
Slind bug #62. Note the 'reporter', 'assignee' and me in carbon list.
 
 
Mood: bitchy
 
 
heviosso
07 December 2007 @ 12:48 am
QotD  
Pretty much expresses my feeling towards slind.
We are here on Earth to do good to others. What the others are here for, I don't know.
© W. H. Auden
 
 
heviosso
27 November 2006 @ 06:12 pm
...is sysvinit_yxo0
Credits go to mktemp utility.
Tags: ,
 
 
Mood: geeky
Now listening: in flames -- vanishing light
 
 
heviosso
29 August 2006 @ 08:50 pm

via sloganizer.net
 
 
Mood: accomplished
Now listening: Nazareth -- Dressed to Kill