"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "buildbot/process/botmaster.py" between
buildbot-3.0.2.tar.gz and buildbot-3.1.0.tar.gz

About: Buildbot is a continuous integration testing framework (Python-based). It supports also automation of complex build systems, application deployment, and management of sophisticated software-release processes.

botmaster.py  (buildbot-3.0.2):botmaster.py  (buildbot-3.1.0)
skipping to change at line 200 skipping to change at line 200
return [b for b in self.builders.values() return [b for b in self.builders.values()
if workername in b.config.workernames] if workername in b.config.workernames]
def getBuildernames(self): def getBuildernames(self):
return self.builderNames return self.builderNames
def getBuilders(self): def getBuilders(self):
return list(self.builders.values()) return list(self.builders.values())
@defer.inlineCallbacks @defer.inlineCallbacks
def getBuilderById(self, builderid):
for builder in self.getBuilders():
if builderid == (yield builder.getBuilderId()):
return builder
return None
@defer.inlineCallbacks
def startService(self): def startService(self):
@defer.inlineCallbacks @defer.inlineCallbacks
def buildRequestAdded(key, msg): def buildRequestAdded(key, msg):
builderid = msg['builderid'] builderid = msg['builderid']
buildername = None builder = yield self.getBuilderById(builderid)
# convert builderid to buildername if builder is not None:
for builder in self.builders.values(): self.maybeStartBuildsForBuilder(builder.name)
if builderid == (yield builder.getBuilderId()):
buildername = builder.name
break
if buildername:
self.maybeStartBuildsForBuilder(buildername)
# consume both 'new' and 'unclaimed' build requests # consume both 'new' and 'unclaimed' build requests
startConsuming = self.master.mq.startConsuming startConsuming = self.master.mq.startConsuming
self.buildrequest_consumer_new = yield startConsuming( self.buildrequest_consumer_new = yield startConsuming(
buildRequestAdded, buildRequestAdded,
('buildrequests', None, "new")) ('buildrequests', None, "new"))
self.buildrequest_consumer_unclaimed = yield startConsuming( self.buildrequest_consumer_unclaimed = yield startConsuming(
buildRequestAdded, buildRequestAdded,
('buildrequests', None, 'unclaimed')) ('buildrequests', None, 'unclaimed'))
yield super().startService() yield super().startService()
 End of changes. 2 change blocks. 
8 lines changed or deleted 10 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)