[Buildbot-devel] Pause build idea

Douglas Hubler douglas at hubler.us
Sat Aug 1 18:02:51 UTC 2009


Douglas Hubler <douglas at ...> writes:
> I was thinking of implementing a BuildStep that would pause the build process
> for specified time if there was a failure in the previous step. I need this
> so I can  preserve the test environment for debugging before it's torn down. 

I implemented this and it's been working great for us.  A build step that sends
messages to IRC bot and lets you hold and free a build from the bot if a step
fails

Patch:
http://github.com/dhubler/buildbot/commit/024210be14c21694fdb23fb184d9d1b0d298d62c

I didn't know how to integrate it with IRC bot, but i did the best I could. 

Here's a sample, IRC dialog:  The IRC bot's nickname is "bb" and my name is
"x"
=======================================

x: bb:help hold

bb: Usage: hold [<build step>] [<time to hold e.g. 1h>] ... - Hold, rehold a 
build or list all held builds. Pass no arguments for a list of all the 
currently held builds. If you hold an already held system, it will reset the
timeout. Examples of time can be an integer immediately followed by d, h, m 
or s with no space in between.

x: bb:help free

bb: Usage: free <build step> ... - Free the build allowing it to go 
immediately to the next build step.

x: bb:hold

bb: No held builds

x: bb:force build nop

bb: build #55 forced

bb: I'll give a shout when the build finishes

(this is where build step "setup" just failed for some reason)

bb: Holding nop until 08/01/2009 01:40:35 AM

x: bb:hold nop 3h

bb: Holding nop until 08/01/2009 03:56:22 AM

x: bb:hold

bb: Holding nop until 08/01/2009 03:56:22 AM

(this is where you go and fix the build environment)

x: bb:free nop

bb: Releasing held build nop

bb: build #55 of nop is complete: Failure [failed setup]  Build details 
are at http://_______:8010/builders/nop/builds/55

bb: Hey! build nop #55 is complete: Failure [failed setup]

bb: Build details are at http://_______:8010/builders/nop/builds/55







More information about the devel mailing list