Package buildbot :: Package status :: Module builder :: Class BuildStatus
[frames] | no frames]

Class BuildStatus

source code

twisted.persisted.styles.Versioned --+
                                     |
                                    BuildStatus

Instance Methods
 
__init__(self, parent, number) source code
 
__repr__(self) source code
BuilderStatus
getBuilder(self) source code
 
getProperty(self, propname) source code
 
getProperties(self) source code
 
getNumber(self) source code
 
getPreviousBuild(self) source code
 
getSourceStamp(self, absolute=False) source code
 
getReason(self) source code
 
getChanges(self) source code
 
getResponsibleUsers(self) source code
 
getInterestedUsers(self) source code
 
getSteps(self)
Return a list of IBuildStepStatus objects.
source code
 
getTimes(self) source code
 
getSummaryStatistic(self, name, summary_fn, initial_value=[])
Summarize the named statistic over all steps in which it exists, using combination_fn and initial_value to combine multiple results into a single result.
source code
 
isFinished(self) source code
 
waitUntilFinished(self) source code
 
getETA(self) source code
 
getCurrentStep(self) source code
 
getText(self) source code
 
getResults(self) source code
 
getSlavename(self) source code
 
getTestResults(self) source code
 
getLogs(self) source code
 
subscribe(self, receiver, updateInterval=None) source code
 
sendETAUpdate(self, receiver, updateInterval) source code
 
unsubscribe(self, receiver) source code
 
addStepWithName(self, name)
The Build is setting up, and has added a new BuildStep to its list.
source code
 
setProperty(self, propname, value, source) source code
 
addTestResult(self, result) source code
 
setSourceStamp(self, sourceStamp) source code
 
setReason(self, reason) source code
 
setBlamelist(self, blamelist) source code
 
setProgress(self, progress) source code
 
buildStarted(self, build)
The Build has been set up and is about to be started.
source code
 
setSlavename(self, slavename) source code
 
setText(self, text) source code
 
setResults(self, results) source code
 
buildFinished(self) source code
 
stepStarted(self, step) source code
 
pruneSteps(self) source code
 
generateLogfileName(self, stepname, logname)
Return a filename (relative to the Builder's base directory) where the logfile's contents can be stored uniquely.
source code
 
__getstate__(self)
Get state, adding a version number to it on its way out.
source code
 
__setstate__(self, d) source code
 
upgradeToVersion1(self) source code
 
upgradeToVersion2(self) source code
 
upgradeToVersion3(self) source code
 
upgradeLogfiles(self) source code
 
checkLogfiles(self) source code
 
saveYourself(self) source code
 
asDict(self) source code

Inherited from twisted.persisted.styles.Versioned: __providedBy__, versionUpgrade

Class Variables
  persistenceVersion = 3
  source = None
  reason = None
  changes = []
  blamelist = []
  progress = None
  started = None
  finished = None
  currentStep = None
  text = []
  results = None
  slavename = '???'
  watchers = []
  updates = {}
  finishedWatchers = []
  testResults = {}
  __implemented__ = <implementedBy buildbot.status.builder.Build...
  __provides__ = <zope.interface.declarations.ClassProvides obje...

Inherited from twisted.persisted.styles.Versioned: persistenceForgets

Method Details

__init__(self, parent, number)
(Constructor)

source code 
Parameters:

getSteps(self)

source code 

Return a list of IBuildStepStatus objects. For invariant builds (those which always use the same set of Steps), this should be the complete list, however some of the steps may not have started yet (step.getTimes()[0] will be None). For variant builds, this may not be complete (asking again later may give you more of them).

getSummaryStatistic(self, name, summary_fn, initial_value=[])

source code 

Summarize the named statistic over all steps in which it exists, using combination_fn and initial_value to combine multiple results into a single result. This translates to a call to Python's reduce:

   return reduce(summary_fn, step_stats_list, initial_value)

addStepWithName(self, name)

source code 

The Build is setting up, and has added a new BuildStep to its list. Create a BuildStepStatus object to which it can send status updates.

buildStarted(self, build)

source code 

The Build has been set up and is about to be started. It can now be safely queried, so it is time to announce the new build.

generateLogfileName(self, stepname, logname)

source code 

Return a filename (relative to the Builder's base directory) where the logfile's contents can be stored uniquely.

The base filename is made by combining our build number, the Step's name, and the log's name, then removing unsuitable characters. The filename is then made unique by appending _0, _1, etc, until it does not collide with any other logfile.

These files are kept in the Builder's basedir (rather than a per-Build subdirectory) because that makes cleanup easier: cron and find will help get rid of the old logs, but the empty directories are more of a hassle to remove.

__getstate__(self)

source code 

Get state, adding a version number to it on its way out.

Overrides: twisted.persisted.styles.Versioned.__getstate__
(inherited documentation)

__setstate__(self, d)

source code 
Overrides: twisted.persisted.styles.Versioned.__setstate__

Class Variable Details

__implemented__

Value:
<implementedBy buildbot.status.builder.BuildStatus>

__provides__

Value:
<zope.interface.declarations.ClassProvides object at 0x104b2d0>