[Buildbot-devel] Increase Timeout value for master

Dustin J. Mitchell dustin at zmanda.com
Tue Feb 12 19:37:36 UTC 2008


That's not so much of a hack after all!  With the addition of a test
case and some documentation, I think this would make a good addition
to buildbot.  Aaron, do you want to revise?

Dustin

On Feb 12, 2008 2:21 PM,  <Aaron_Hsieh at playstation.sony.com> wrote:
>
> I've also had this problem where some of the scripts that my group runs have
> no output for a very long time, and these run times are only getting longer
> as we add more tests to the script.  We could add a verbose mode, but that
> would serve as a double-edged sword since it would cause our developers to
> completely ignore our logs altogether if we try to get too verbose with our
> tests.  So, instead, I implemented a little hack-y way to disable the
> timeout option if needed in a master configuration file.  This patch would
> have to be done on the slave side to work though:
>
> --- slave/commands_bak.py       2008-02-12 11:08:24.000000000 -0800
> +++ slave/commands.py   2008-02-12 11:09:50.000000000 -0800
> @@ -336,7 +336,10 @@
>          # then comes the secondary information
>          msg = " in dir %s" % (self.workdir,)
>          if self.timeout:
> -            msg += " (timeout %d secs)" % (self.timeout,)
> +           if self.timeout < 0:
> +               msg += " (no timeout)"
> +           else:
> +               msg += " (timeout %d secs)" % (self.timeout,)
>          log.msg(" " + msg)
>          self.sendStatus({'header': msg+"\n"})
>
> @@ -385,7 +388,10 @@
>          # which would let us connect stdin to /dev/null .
>
>          if self.timeout:
> -            self.timer = reactor.callLater(self.timeout, self.doTimeout)
> +           if self.timeout < 0:
> +               pass
> +           else:
> +               self.timer = reactor.callLater(self.timeout, self.doTimeout)
>
>          for w in self.logFileWatchers:
>              w.start()
>
>
> Again, this is probably not the best way to do it, but it's the best I could
> come up with given the time I had to work on this.
>
> What I usually do with this is if I only wanted to temporarily disable a
> timeout, I would throw in a "-" in front of an existing timeout that I have,
> and keep it there for as long as needed.  If I ever want to restore the old
> timeout, it's as simple as removing the "-" from the existing timeout.  It's
> nothing fancy, but I thought I would like to share this little hack I've
> been using for a bit.
>
> Aaron
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2008.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> _______________________________________________
> Buildbot-devel mailing list
> Buildbot-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/buildbot-devel
>
>



-- 
Storage Software Engineer
http://www.zmanda.com




More information about the devel mailing list