[Buildbot-devel] Concurrent builds on different slaves
Jean-Paul Calderone
exarkun at divmod.com
Tue Nov 11 23:41:09 UTC 2008
Hey,
I've just added a new slave to my existing master configuration. I tried
to configure the slave to run all the builds another slave which already
existed is running.
Before I had something like this in my master.cfg:
oneCPULock = SlaveLock('cpu-1', maxCount=1)
slave = {
'slavenames': ['slave-foo'],
'locks': [oneCPULock]}
builderA = slave.copy()
builderA.update({
'name': "name-bar",
'builddir': "dir-bar",
'factory': SomeBuildFactory(),
'category': 'supported'})
builders.append(builderA)
builderB = slave.copy()
builderB.update({
'name': "name-bar",
'builddir': "dir-bar",
'factory': SomeBuildFactory(),
'category': 'supported'})
builders.append(builderB)
Naively, I thought I could add my new slave by changing the definition of
`slave´ to this:
slave = {
'slavenames': ['slave-foo', 'slave-bar'],
'locks': [oneCPULock]}
However, when I do this, builds across the two builders seem to end up
serialized instead of parallelised. However, just to make things complicated,
*some* builds will run in parallel. I cannot discern what pattern these
builds follow, though.
What's up?
Jean-Paul
More information about the devel
mailing list