c.b.s.BuildManager(object) : class documentation

Part of canonical.buildd.slave View In Hierarchy

Known subclasses: canonical.buildd.debian.DebianBuildManager

Build Daemon slave build manager abstract parent
Method __init__ Create a BuildManager.
Method runSubProcess Run a sub process capturing the results in the log.
Method doUnpack Unpack the build chroot.
Method doCleanup Remove the build tree etc.
Method doMounting Mount things in the chroot, e.g. proc.
Method doUnmounting Unmount the chroot.
Method initiate Initiate a build given the input files.
Method iterate Perform an iteration of the slave.
Method abort Abort the build by killing the subprocess.
Method kill Send SIGKILL to child process
def __init__(self, slave, buildid):
Create a BuildManager.
ParametersslaveA BuildDSlave.
buildidIdentifying string for this build.
def runSubProcess(self, command, args):
Run a sub process capturing the results in the log.
def doUnpack(self):
Unpack the build chroot.
def doCleanup(self):
Remove the build tree etc.
def doMounting(self):
Mount things in the chroot, e.g. proc.
def doUnmounting(self):
Unmount the chroot.
def initiate(self, files, chroot, extra_args):
Initiate a build given the input files.

Please note: the 'extra_args' dictionary may contain a boolean value keyed under the 'archive_private' string. If that value evaluates to True the build at hand is for a private archive.

def iterate(self, success):
Perform an iteration of the slave.

The BuildManager tends to work by invoking several subprocesses in order. the iterate method is called by the object created by runSubProcess to gather the results of the sub process.

def abort(self):
Abort the build by killing the subprocess.
def kill(self):
Send SIGKILL to child process

Mask exception generated when the child process has already exited.

API Documentation for Launchpad, generated by pydoctor at 2010-09-27 00:00:11.