"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "buildbot/process/builder.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.

builder.py  (buildbot-3.0.2):builder.py  (buildbot-3.1.0)
skipping to change at line 167 skipping to change at line 167
@defer.inlineCallbacks @defer.inlineCallbacks
def getNewestCompleteTime(self): def getNewestCompleteTime(self):
"""Returns the complete_at of the latest completed build request for """Returns the complete_at of the latest completed build request for
this builder, or None if there are no such build requests. this builder, or None if there are no such build requests.
@returns: datetime instance or None, via Deferred @returns: datetime instance or None, via Deferred
""" """
bldrid = yield self.getBuilderId() bldrid = yield self.getBuilderId()
completed = yield self.master.data.get( completed = yield self.master.data.get(
('builders', bldrid, 'buildrequests'), ('builders', bldrid, 'buildrequests'),
[resultspec.Filter('complete', 'eq', [False])], [resultspec.Filter('complete', 'eq', [True])],
order=['-complete_at'], limit=1) order=['-complete_at'], limit=1)
if completed: if completed:
return completed[0]['complete_at'] return completed[0]['complete_at']
else: else:
return None return None
def getBuild(self, number): def getBuild(self, number):
for b in self.building: for b in self.building:
if b.number == number: if b.number == number:
return b return b
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

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