Package buildbot :: Package process :: Module builder :: Class Builder
[frames] | no frames]

Class Builder

source code

       config.ReconfigurableServiceMixin --+
                                           |
  twisted.spread.jelly.Jellyable --+       |
                                   |       |
 twisted.spread.flavors.Serializable --+   |
                                       |   |
    twisted.spread.flavors.Referenceable --+
                                           |
 twisted.application.service.Service --+   |
                                       |   |
twisted.application.service.MultiService --+
                                           |
                                          Builder

Instance Methods
 
__init__(self, name, _addServices=True) source code
 
reconfigService(self, new_config) source code
 
stopService(self) source code
 
__repr__(self) source code
 
getOldestRequestTime(*args, **kwargs)
Returns the submitted_at of the oldest unclaimed build request for this builder, or None if there are no build requests.
source code
 
reclaimAllBuilds(self) source code
 
getBuild(self, number) source code
 
addLatentSlave(self, slave) source code
twisted.internet.defer.Deferred
attached(self, slave, remote, commands)
This is invoked by the BuildSlave when the self.slavename bot registers their builder.
source code
 
detached(self, slave)
This is called when the connection to the bot is lost.
source code
 
updateBigStatus(self) source code
 
setupProperties(self, props) source code
 
buildFinished(self, build, sb, bids)
This is called when the Build has finished (either success or failure).
source code
 
setExpectations(self, progress)
Mark the build as successful and update expectations for the next build.
source code
 
maybeStartBuild(*args, **kwargs) source code

Inherited from config.ReconfigurableServiceMixin: __providedBy__, __provides__

Inherited from twisted.spread.flavors.Referenceable: jellyFor, remoteMessageReceived

Inherited from twisted.spread.flavors.Serializable: processUniqueID

Inherited from twisted.spread.jelly.Jellyable: getStateFor

Inherited from twisted.application.service.MultiService: __iter__, addService, getServiceNamed, privilegedStartService, removeService, startService

Inherited from twisted.application.service.Service: __getstate__, disownServiceParent, setName, setServiceParent

Class Variables
  reconfig_priority = 196

Inherited from config.ReconfigurableServiceMixin: __implemented__

Inherited from twisted.spread.flavors.Referenceable: perspective

Inherited from twisted.application.service.Service: name, parent, running

Method Details

__init__(self, name, _addServices=True)
(Constructor)

source code 
Overrides: twisted.application.service.MultiService.__init__

reconfigService(self, new_config)

source code 
Overrides: config.ReconfigurableServiceMixin.reconfigService

stopService(self)

source code 
Overrides: twisted.application.service.Service.stopService

getOldestRequestTime(*args, **kwargs)

source code 

Returns the submitted_at of the oldest unclaimed build request for this builder, or None if there are no build requests.

Returns:
datetime instance or None, via Deferred
Decorators:
  • @defer.inlineCallbacks

attached(self, slave, remote, commands)

source code 

This is invoked by the BuildSlave when the self.slavename bot registers their builder.

Parameters:
  • slave (buildbot.buildslave.BuildSlave) - the BuildSlave that represents the buildslave as a whole
  • remote (twisted.spread.pb.RemoteReference) - a reference to the buildbot.slave.bot.SlaveBuilder
  • commands (dict: string -> string, or None) - provides the slave's version of each RemoteCommand
Returns: twisted.internet.defer.Deferred
a Deferred that fires (with 'self') when the slave-side builder is fully attached and ready to accept commands.

buildFinished(self, build, sb, bids)

source code 

This is called when the Build has finished (either success or failure). Any exceptions during the build are reported with results=FAILURE, not with an errback.

setExpectations(self, progress)

source code 

Mark the build as successful and update expectations for the next build. Only call this when the build did not fail in any way that would invalidate the time expectations generated by it. (if the compile failed and thus terminated early, we can't use the last build to predict how long the next one will take).

maybeStartBuild(*args, **kwargs)

source code 
Decorators:
  • @defer.inlineCallbacks