[Buildbot-devel] Concurrent builds on different slaves

Jean-Paul Calderone exarkun at divmod.com
Wed Nov 12 00:32:39 UTC 2008


On Tue, 11 Nov 2008 19:30:34 -0500, Jean-Paul Calderone <exarkun at divmod.com> wrote:
>On Tue, 11 Nov 2008 19:27:49 -0500, "Dustin J. Mitchell" <dustin at zmanda.com> wrote:
>>On Tue, Nov 11, 2008 at 6:41 PM, Jean-Paul Calderone <exarkun at divmod.com> wrote:
>>>        '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.
>>
>>Your "slave.copy()" is a shallow copy, so those slaves are sharing a
>>single lock object.
>
>Completely true.  Is that bad?  My reading of the documentation is that
>this is fine.  I suppose I could see how the exact opposite interpretation
>could be extracted, though, now that you point out that this might be a
>bad thing.
>

Ah.  Also, I've been sharing locks between different slaves like this
for a long time and it's never resulted in behavior like I'm now observing.
The only thing I haven't done before is use a lock with a builder which has
multiple slaves associated with it.

Jean-Paul




More information about the devel mailing list