[Buildbot-devel] the retry parameter of source.Git in buildbot.steps does not work at all

Guo Hongruan camelguo at gmail.com
Sun Jan 17 08:12:33 UTC 2010


I try to test openembedded using buildbot and the connection to git server  
of openembedded is very flaky on my site, so the retry parameter is very  
useful for me.

When my buildslaver first tried to checkout source code from git server  
and failed to do that, it will create a directory (named build). Then due  
to the retry parameter, the buildslaver will try to checkout source code  
again. But now, it will first try to create directory named build. because  
it has been existed, buildslave will throw an exception, which caused the  
whole building failed.



在 Sun, 17 Jan 2010 13:45:58 +0800,Dustin J. Mitchell <dustin at zmanda.com>  
写道:

> On Fri, Jan 15, 2010 at 6:46 AM, Guo Hongruan <camelguo at gmail.com> wrote:
>>   I found that the retry parameter of source.Git in buildbot.steps does
>> not work at all. If the buildbot failed to checkout source code from  
>> Git,
>> it can not retry the next time. Instead of retry to checkout source  
>> code,
>> the buildbot throw out an exception and causes the builder failed.
>
> Can you file a bug?  I didn't realize there *was* retry behavior -
> what is the purpose of this?  To support checkouts over flaky
> connections?
>
> It looks like the immediate bug could be fixed (only os.mkdir(..) if
> not os.path.exists(..)), but it really should be tested, and there
> might be larger problems beyond this one.
>
> Dustin
>


-- 
Guo Hongruan, Embedded Linux Consultant
Skype: camelguo
Twitter: camelguo
http://www.gulessoft.com




More information about the devel mailing list