[Buildbot-devel] Can't get timeout to work..

boffyflow boffyflow at gmail.com
Fri Sep 12 00:15:06 UTC 2008


> Hi,
>
> I can't get any effect from the 'timeout' value on my ShellCommands,
> this is with BuildBot 0.7.6, Python 2.4 and Windows XP (Slave and Master
> on same machine.
>
> I've searched quite a bit (google & buildbot trac/news), but I couldn't
> find anyone with a similar problem.
>
> I have created my own helper function that looks like this:
>
> def ant(buildfile, args=[], desc='build',
>          locks=[], timeout=3600):
>      cmd = ['call', 'ant', '-buildfile', buildfile]
>      cmd.extend(args)
>      sh = shell.ShellCommand(command=cmd, description=desc + '...',
>           descriptionDone=desc, locks=locks, env=my_env,
>
>           timeout=timeout)
>      return sh
>
> That I use, in this manner:
>
> f.addStep(ant('BuildSystem\\build.xml', ['rescan', 'BuildSystem.doc',
>        '-Ddoc.tpd=true', '-Dquick_build=true'],
>        timeout=None, locks=[fullbuildlock, distlock]))
>
> But I still get the following error (for the step above):
>
>> command timed out: 1200 seconds without output
>
> And I can't find where that 1200 is coming from. I've searched the code
> quite a bit.
>
> Any ideas or pointers?
>
> I also get the following right after the above, which I assume is some
> Win32-incompatibility issue:
>
> SIGKILL failed to kill process
> using fake rc=-1
> program finished with exit code -1
> ...
>
> Cheers,
> /Marcus
>

Hi,

I am having exactly the same issue. 1200s seems to be the default. I tried the 2
configurations:
 - linux buildmaster, 0.76 with python 2.5
     windows slave with 0.7.8 with python 2.5

 - linux buildmaster, 0.76 with python 2.5
     windows slave with 0.7.6 with python 2.4

I tried both approaches described in ticket 150. It always displays 1200s in
stdio. But I am not completely sure whether this may be a display problem in
stdio. I have the feeling that config #2 does actually work it is just that only
the default value is streamed to stdio. My build takes around 20min and
sometimes it comes through. No python experience to go much deeper into the
issue and confirm my observation.

Thanks.
Robert




More information about the devel mailing list