Package buildbot :: Module scheduler :: Class AnyBranchScheduler
[frames | no frames]

Class AnyBranchScheduler

ComparableMixin --+        
                  |        
    Service --+   |        
              |   |        
   MultiService --+        
                  |        
      BaseScheduler --+    
                      |    
  BaseUpstreamScheduler --+
                          |
                         AnyBranchScheduler


This Scheduler will handle changes on a variety of branches. It will accumulate Changes for each branch separately. It works by creating a separate Scheduler for each new branch it sees.
Method Summary
  __init__(self, name, branches, treeStableTimer, builderNames, fileIsImportant, properties)
  __repr__(self)
  addChange(self, change)
  getPendingBuildTimes(self)
  listBuilderNames(self)
    Inherited from BaseUpstreamScheduler
  buildSetFinished(self, bss)
  submitBuildSet(self, bs)
  subscribeToSuccessfulBuilds(self, watcher)
  unsubscribeToSuccessfulBuilds(self, watcher)
    Inherited from MultiService
  __iter__(self)
  addService(self, service)
  getServiceNamed(self, name)
  privilegedStartService(self)
  removeService(self, service)
  startService(self)
  stopService(self)
    Inherited from Service
  __getstate__(self)
  disownServiceParent(self)
  setName(self, name)
  setServiceParent(self, parent)
    Inherited from ComparableMixin
  __cmp__(self, them)
  __hash__(self)

Instance Variable Summary
    Inherited from BaseScheduler
  name: name of the scheduler
Properties object properties: additional properties specified in this scheduler's configuration

Class Variable Summary
tuple compare_attrs = ('name', 'branches', 'treeStableTimer', ...
NoneType fileIsImportant = None                                                                  
classobj schedulerFactory = buildbot.scheduler.Scheduler
    Inherited from BaseUpstreamScheduler
Implements __implemented__ = <implementedBy buildbot.scheduler.Base...
ClassProvides __provides__ = <zope.interface.declarations.ClassProvide...
    Inherited from MultiService
_implementsTuple __implements__ = (<MetaInterface twisted.application.ser...
    Inherited from Service
ClassProvides __providedBy__ = <zope.interface.declarations.ClassProvi...
NoneType parent = None                                                                  
int running = 0                                                                     

Method Details

__init__(self, name, branches, treeStableTimer, builderNames, fileIsImportant=None, properties={})
(Constructor)

Parameters:
name - the name of this Scheduler
branches - The branch names that the Scheduler should pay attention to. Any Change that is not on one of these branches will be ignored. It can be set to None to accept changes from any branch. Don't use [] (an empty list), because that means we don't pay attention to *any* branches, so we'll never build anything.
treeStableTimer - the duration, in seconds, for which the tree must remain unchanged before a build will be triggered. This is intended to avoid builds of partially-committed fixes.
builderNames - a list of Builder names. When this Scheduler decides to start a set of builds, they will be run on the Builders named by this list.
fileIsImportant - A callable which takes one argument (a Change instance) and returns True if the change is worth building, and False if it is not. Unimportant Changes are accumulated until the build is triggered by an important change. The default value of None means that all Changes are important.
properties - properties to apply to all builds started from this scheduler
Overrides:
buildbot.scheduler.BaseUpstreamScheduler.__init__

Class Variable Details

compare_attrs

Type:
tuple
Value:
('name',
 'branches',
 'treeStableTimer',
 'builderNames',
 'fileIsImportant',
 'properties')                                                         

fileIsImportant

Type:
NoneType
Value:
None                                                                  

Generated by Epydoc 2.1 on Tue Sep 16 09:16:00 2008 http://epydoc.sf.net