[Buildbot-commits] [Buildbot] #2174: Metrics require that db_poll_interval is set to a non-None value

Buildbot nobody at buildbot.net
Thu Jan 12 13:32:46 UTC 2012


#2174: Metrics require that db_poll_interval is set to a non-None value
----------------------+-----------------------
Reporter:  iustin     |      Owner:
    Type:  undecided  |     Status:  new
Priority:  minor      |  Milestone:  undecided
 Version:  0.8.5      |   Keywords:  metrics
----------------------+-----------------------
 I'm following the docs for 0.8.5 and I've enabled the metrics system via:

 {{{
 c['metrics'] = dict(log_interval=600, periodic_interval=10)
 }}}

 However, doing just this in a single-master setup results int:
 {{{

 2012-01-12 13:26:54+0000 [-] Log observer <bound method
 MetricLogObserver.emit of <buildbot.process.metrics.MetricLogObserver
 instance at 0x57fe9e0>> failed.
         Traceback (most recent call last):
 …

           File "/usr/local/lib/python2.6/dist-
 packages/buildbot-0.8.5-py2.6.egg/buildbot/process/metrics.py", line 286,
 in run
             if t < 0.8 * db_poll_interval:
         exceptions.TypeError: unsupported operand type(s) for *: 'float'
 and 'NoneType'
 }}}

 This is trivially fixable by adding a `db_poll_interval`, however I don't
 know if this affects anything in a single-master setup (and what should be
 the value).

-- 
Ticket URL: <http://trac.buildbot.net/ticket/2174>
Buildbot <http://buildbot.net/>
Buildbot: build/test automation


More information about the Commits mailing list