[Buildbot] #3214: Document all Data API messages

Buildbot trac trac at buildbot.net
Fri Dec 25 01:08:22 UTC 2015


#3214: Document all Data API messages
------------------------+-----------------------
Reporter:  dustin       |       Owner:
    Type:  enhancement  |      Status:  assigned
Priority:  major        |   Milestone:  0.9.0
 Version:  master       |  Resolution:
Keywords:  mq           |
------------------------+-----------------------

Comment (by dustin):

 {{{
 dustin at euclid ~/code/buildbot/t/buildbot [master] $ grep -E
 '(produceEvent|mq\.produce)' master/buildbot/data/*.py
 master/buildbot/data/base.py:    def produceEvent(self, msg, event):
 master/buildbot/data/base.py:
 self.master.mq.produce(routingKey, msg)
 master/buildbot/data/builders.py:
 self.master.mq.produce(('builders', str(builderid), 'stopped'),
 master/buildbot/data/builders.py:
 self.master.mq.produce(('builders', str(builderid), 'started'),
 master/buildbot/data/buildrequests.py:
 self.master.mq.produce(("control", "builds", str(b['buildid']), "stop"),
 master/buildbot/data/buildrequests.py:            self.produceEvent(br,
 event)
 master/buildbot/data/buildsets.py:        self.produceEvent(msg, "new")
 master/buildbot/data/buildsets.py:        self.produceEvent(msg,
 "complete")
 master/buildbot/data/buildslaves.py:        self.produceEvent(bs,
 'connected')
 master/buildbot/data/buildslaves.py:        self.produceEvent(bs,
 'disconnected')
 master/buildbot/data/builds.py:        self.master.mq.produce(("control",
 "builds",
 master/buildbot/data/builds.py:        self.produceEvent(build, event)
 master/buildbot/data/changes.py:        self.produceEvent(change, 'new')
 master/buildbot/data/connector.py:    def produceEvent(self, rtype, msg,
 event):
 master/buildbot/data/connector.py:        return rsrc.produceEvent(msg,
 event)
 master/buildbot/data/logs.py:        self.produceEvent(build, event)
 master/buildbot/data/masters.py:            self.produceEvent(
 master/buildbot/data/masters.py:        self.produceEvent(
 master/buildbot/data/properties.py:        # This event cannot use the
 produceEvent mecanism, as the properties resource type is a bit specific
 master/buildbot/data/properties.py:        return
 self.master.mq.produce(routingKey, newprops)
 master/buildbot/data/steps.py:        self.produceEvent(step, event)
 }}}

--
Ticket URL: <http://trac.buildbot.net/ticket/3214#comment:4>
Buildbot <http://buildbot.net/>
Buildbot: build/test automation


More information about the bugs mailing list