[Buildbot-devel] Duplicate slaves?

Brian Warner warner-buildbot at lothar.com
Thu Nov 22 00:09:21 UTC 2007


On Thu, 8 Nov 2007 14:11:30 -0800
Aaron Maxwell <amax at snaplogic.org> wrote:

> Is there a way to configure buildbot to keep a pool of identical dependent 
> slaves, and farm out new build jobs to the first one available?

That's the default behavior. When you configure the builder, you can either
give a single slavename or a list of slavenames, and each new build will go
to a randomly selected (and otherwise idle) slave:

c['builders'] = [
  {'name':'test-i386',
   'slavenames': ['bot1-i386', 'bot2-i386', 'bot3-i386'], # three identical
   'builddir':'test-i386',
   'factory':f },
  {'name':'test-ppc',
   'slavename':'bot-ppc', # only one ppc slave
   'builddir':'test-ppc',
   'factory':f },
 ]


Of course, it's important to make sure that those buildslaves actually *are*
identical, otherwise you'll get confusing results as a build passes on one
that fails on another. Each build is marked with the name of the buildslave
that performed the build, so you might have a chance to figure out the
problem afterwards, but it's best to keep them the same.

cheers,
 -Brian




More information about the devel mailing list