l.b.i.BuilderInteractor(object) : class documentation

Part of lp.buildmaster.interactor View In Hierarchy

No class docstring
Static Method makeSlaveFromVitals Undocumented
Static Method getBuildBehaviour Undocumented
Class Method resumeSlaveHost Resume the slave host to a known good condition.
Class Method cleanSlave Prepare a slave for a new build.
Class Method findAndStartJob Find a job to run and send it to the buildd slave.
Static Method extractBuildStatus Read build status name.
Class Method updateBuild Verify the current build job status.
Class Method _startBuild Start a build on this builder.
Static Method _getSlaveScannerLogger Return the logger instance from buildd-slave-scanner.py.
@staticmethod
def makeSlaveFromVitals(vitals):
Undocumented
@staticmethod
def getBuildBehaviour(queue_item, builder, slave):
Undocumented
@classmethod
def resumeSlaveHost(cls, vitals, slave):
Resume the slave host to a known good condition.

Issues 'builddmaster.vm_resume_command' specified in the configuration to resume the slave.

ReturnsA Deferred that fires when the resume operation finishes, whose value is a (stdout, stderr) tuple for success, or a Failure whose value is a CannotResumeHost exception.
RaisesCannotResumeHost: if builder is not virtual or if the configuration command has failed.
@classmethod
@defer.inlineCallbacks
def cleanSlave(cls, vitals, slave, builder_factory):
Prepare a slave for a new build.
ReturnsA Deferred that fires when this stage of the resume operations finishes. If the value is True, the slave is now clean. If it's False, the clean is still in progress and this must be called again later.
@classmethod
@defer.inlineCallbacks
def _startBuild(cls, build_queue_item, vitals, builder, slave, behaviour, logger):
Start a build on this builder.
Parametersbuild_queue_itemA BuildQueueItem to build.
loggerA logger to be used to log diagnostic information.
ReturnsA Deferred that fires after the dispatch has completed whose value is None, or a Failure that contains an exception explaining what went wrong.
@classmethod
@defer.inlineCallbacks
def findAndStartJob(cls, vitals, builder, slave):
Find a job to run and send it to the buildd slave.
ReturnsA Deferred whose value is the IBuildQueue instance found or None if no job was found.
@staticmethod
def extractBuildStatus(slave_status):
Read build status name.
Parametersslave_statusbuild status dict from BuilderSlave.status.
Returnsthe unqualified status name, e.g. "OK".
@classmethod
@defer.inlineCallbacks
def updateBuild(cls, vitals, slave, slave_status, builder_factory, behaviour_factory):
Verify the current build job status.

Perform the required actions for each state.

ReturnsA Deferred that fires when the slave dialog is finished.
@staticmethod
def _getSlaveScannerLogger():
Return the logger instance from buildd-slave-scanner.py.
API Documentation for Launchpad, generated by pydoctor at 2022-06-16 00:00:12.