# HG changeset patch # User Jeff Hammel # Date 1295972613 28800 # Node ID 700693fad00a2cec46c32d776c72c097f88b213e # Parent 03536656932afa7d7dec3da78052977335b1f466 cleanup a few things found in testing multiple builders diff -r 03536656932a -r 700693fad00a autobot/changes/poller.py --- a/autobot/changes/poller.py Mon Jan 24 18:28:12 2011 -0800 +++ b/autobot/changes/poller.py Tue Jan 25 08:23:33 2011 -0800 @@ -60,7 +60,7 @@ if not self.workdir: self.workdir = tempfile.mkdtemp() - self.name = self.__class__.__name__ + self.name = '%s: %s#%s' % (self.__class__.__name__, repourl, branch) # def startService(self): diff -r 03536656932a -r 700693fad00a autobot/config.py --- a/autobot/config.py Mon Jan 24 18:28:12 2011 -0800 +++ b/autobot/config.py Tue Jan 25 08:23:33 2011 -0800 @@ -37,12 +37,14 @@ slave_dict = self.master.copy() slave_dict.update(self.section_dict(section)) assert 'password' in slave_dict, 'Slave %s: must provide a password' - factories = slave_dict.get('factories', '') - factories = factories.split() - if factories == ['']: - factories = [] + _factories = slave_dict.get('factories', '') + _factories = _factories.split() + if _factories == ['']: + _factories = [] + if _factories == ['*']: + _factories = factories.keys() self.slaves[name] = {'password': slave_dict['password'], - 'factories': factories } + 'factories': _factories } continue # get factories diff -r 03536656932a -r 700693fad00a autobot/template/master/master.cfg --- a/autobot/template/master/master.cfg Mon Jan 24 18:28:12 2011 -0800 +++ b/autobot/template/master/master.cfg Tue Jan 25 08:23:33 2011 -0800 @@ -57,7 +57,7 @@ from buildbot.changes.gitpoller import GitPoller from autobot.changes.poller import HgPoller -pollInterval = 30 +pollInterval = int(config.master.get('pollInterval', 60)) for repourl, branch in sources['git']: c['change_source'].append(GitPoller( @@ -79,7 +79,7 @@ buildernames = [i['name'] for i in builders] c['schedulers'] = [] -treeStableTimer = 1 +treeStableTimer = int(config.master.get('treeStableTimer', 60)) for (source, branch), buildernames in builder_sources.items(): change_filter = ChangeFilter(repository=source, branch=branch) diff -r 03536656932a -r 700693fad00a autobot/template/master/master.ini --- a/autobot/template/master/master.ini Mon Jan 24 18:28:12 2011 -0800 +++ b/autobot/template/master/master.ini Tue Jan 25 08:23:33 2011 -0800 @@ -3,5 +3,7 @@ password = {{passwd}} slaveport = {{slaveport}} htmlport = {{htmlport}} +pollInterval = 30 +treeStableTimer = 30 [slave:{{slave}}] \ No newline at end of file