[Buildbot-devel] Builders that use latent slaves start in a state "building"

Mantas Mikaitis Mantas.Mikaitis at arm.com
Thu Apr 16 10:14:58 UTC 2015


Hello,

To explain the problem in simpler terms I will give an example:

*Current state*:
A builder is offline.
A latent slave that is attached to above builder is offline.

*Scenario*:
Build request comes in.
Builder starts latent slave, removes request from "Pending" list and 
changes it's state to "building".
Latent slave is still connecting.
Connecting...
2minutes later it connects and the build appears in the waterfall.

Is this functionality intended that while the latent is slave is 
connecting the build request is not in the "Pending" list and not in the 
JSON API list of builds and additionally a builder is marked "building" 
even though it is not technically building while the slave is preparing.

Does anyone have any ideas about this issue?

Kind regards,
Mantas M.

On 15/04/15 10:11, Mantas Mikaitis wrote:
> Hi,
>
> I am using latent slaves on my Buildbot configuration and inside
> LatentSlave object I have start_instance that returns a deferred which
> calls back only when the slave is ready to build.
>
> However when a builder chooses above kind of slave using
> nextSlave=choose_slave the status goes to yellow and it says "building"
> but no build appears due to the fact that the LatentSlave is still
> trying to connect (The time between calling start_instance and the slave
> connecting is around 1min normally). Additionally the new build is also
> removed from "Pending builds" list.
>
> Anyone could point me to the right direction how to make my builds
> "pending" while the LatentSlave is connecting instead of being in an
> undefined (Not pending and not in the waterfall) state while the slave
> connects?
>
> Thank you,
> Mantas M.
>
>
> ------------------------------------------------------------------------------
> BPM Camp - Free Virtual Workshop May 6th at 10am PDT/1PM EDT
> Develop your own process in accordance with the BPMN 2 standard
> Learn Process modeling best practices with Bonita BPM through live exercises
> http://www.bonitasoft.com/be-part-of-it/events/bpm-camp-virtual- event?utm_
> source=Sourceforge_BPM_Camp_5_6_15&utm_medium=email&utm_campaign=VA_SF
> _______________________________________________
> Buildbot-devel mailing list
> Buildbot-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/buildbot-devel
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://buildbot.net/pipermail/devel/attachments/20150416/fc8a6b98/attachment.html>


More information about the devel mailing list