"Fossies" - the Fresh Open Source Software Archive  

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

steps.py  (buildbot-3.0.2):steps.py  (buildbot-3.1.0)
skipping to change at line 89 skipping to change at line 89
else: else:
buildid = yield self.getBuildid(kwargs) buildid = yield self.getBuildid(kwargs)
if buildid is None: if buildid is None:
return None return None
steps = yield self.master.db.steps.getSteps(buildid=buildid) steps = yield self.master.db.steps.getSteps(buildid=buildid)
results = [] results = []
for dbdict in steps: for dbdict in steps:
results.append((yield self.db2data(dbdict))) results.append((yield self.db2data(dbdict)))
return results return results
class UrlEntityType(types.Entity):
name = types.String()
url = types.String()
class Step(base.ResourceType): class Step(base.ResourceType):
name = "step" name = "step"
plural = "steps" plural = "steps"
endpoints = [StepEndpoint, StepsEndpoint] endpoints = [StepEndpoint, StepsEndpoint]
keyFields = ['builderid', 'stepid'] keyFields = ['builderid', 'stepid']
eventPathPatterns = """ eventPathPatterns = """
/builds/:buildid/steps/:stepid /builds/:buildid/steps/:stepid
/steps/:stepid /steps/:stepid
""" """
skipping to change at line 111 skipping to change at line 115
stepid = types.Integer() stepid = types.Integer()
number = types.Integer() number = types.Integer()
name = types.Identifier(50) name = types.Identifier(50)
buildid = types.Integer() buildid = types.Integer()
started_at = types.NoneOk(types.DateTime()) started_at = types.NoneOk(types.DateTime())
complete = types.Boolean() complete = types.Boolean()
complete_at = types.NoneOk(types.DateTime()) complete_at = types.NoneOk(types.DateTime())
results = types.NoneOk(types.Integer()) results = types.NoneOk(types.Integer())
state_string = types.String() state_string = types.String()
urls = types.List( urls = types.List(
of=types.Dict( of=UrlEntityType("Url"))
name=types.String(),
url=types.String()
))
hidden = types.Boolean() hidden = types.Boolean()
entityType = EntityType(name) entityType = EntityType(name)
@defer.inlineCallbacks @defer.inlineCallbacks
def generateEvent(self, stepid, event): def generateEvent(self, stepid, event):
step = yield self.master.data.get(('steps', stepid)) step = yield self.master.data.get(('steps', stepid))
self.produceEvent(step, event) self.produceEvent(step, event)
@base.updateMethod @base.updateMethod
@defer.inlineCallbacks @defer.inlineCallbacks
 End of changes. 2 change blocks. 
4 lines changed or deleted 5 lines changed or added

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