"Fossies" - the Fresh Open Source Software Archive  

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

workers.py  (buildbot-3.0.2):workers.py  (buildbot-3.1.0)
skipping to change at line 101 skipping to change at line 101
def get(self, resultSpec, kwargs): def get(self, resultSpec, kwargs):
paused = resultSpec.popBooleanFilter('paused') paused = resultSpec.popBooleanFilter('paused')
graceful = resultSpec.popBooleanFilter('graceful') graceful = resultSpec.popBooleanFilter('graceful')
workers_dicts = yield self.master.db.workers.getWorkers( workers_dicts = yield self.master.db.workers.getWorkers(
builderid=kwargs.get('builderid'), builderid=kwargs.get('builderid'),
masterid=kwargs.get('masterid'), masterid=kwargs.get('masterid'),
paused=paused, paused=paused,
graceful=graceful) graceful=graceful)
return [self.db2data(w) for w in workers_dicts] return [self.db2data(w) for w in workers_dicts]
class MasterBuilderEntityType(types.Entity):
masterid = types.Integer()
builderid = types.Integer()
class MasterIdEntityType(types.Entity):
masterid = types.Integer()
class Worker(base.ResourceType): class Worker(base.ResourceType):
name = "worker" name = "worker"
plural = "workers" plural = "workers"
endpoints = [WorkerEndpoint, WorkersEndpoint] endpoints = [WorkerEndpoint, WorkersEndpoint]
keyFields = ['workerid'] keyFields = ['workerid']
eventPathPatterns = """ eventPathPatterns = """
/workers/:workerid /workers/:workerid
""" """
class EntityType(types.Entity): class EntityType(types.Entity):
workerid = types.Integer() workerid = types.Integer()
name = types.String() name = types.String()
connected_to = types.List(of=types.Dict( connected_to = types.List(of=MasterIdEntityType("master_id"))
masterid=types.Integer())) configured_on = types.List(of=MasterBuilderEntityType("master_builder"))
configured_on = types.List(of=types.Dict(
masterid=types.Integer(),
builderid=types.Integer()))
workerinfo = types.JsonObject() workerinfo = types.JsonObject()
paused = types.Boolean() paused = types.Boolean()
graceful = types.Boolean() graceful = types.Boolean()
entityType = EntityType(name) entityType = EntityType(name)
@base.updateMethod @base.updateMethod
# returns a Deferred that returns None # returns a Deferred that returns None
def workerConfigured(self, workerid, masterid, builderids): def workerConfigured(self, workerid, masterid, builderids):
return self.master.db.workers.workerConfigured( return self.master.db.workers.workerConfigured(
workerid=workerid, workerid=workerid,
 End of changes. 2 change blocks. 
5 lines changed or deleted 9 lines changed or added

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