[Buildbot-commits] [Buildbot] #2379: Setting 'when' when submitting web hook results in a 500 error
Buildbot
nobody at buildbot.net
Tue Oct 2 18:47:36 UTC 2012
#2379: Setting 'when' when submitting web hook results in a 500 error
------------------------+-----------------------
Reporter: mitcholiver | Owner:
Type: undecided | Status: new
Priority: major | Milestone: undecided
Version: 0.8.6p1 | Keywords:
------------------------+-----------------------
Whenever the "when" property is set when submitting a WebStatus change
hook (base language), the following exception results in a 500 error:
Traceback (most recent call last):
File "/usr/lib/python2.6/site-packages/Twisted-12.0.0-py2.6
-linux-x86_64.egg/twisted/web/server.py", line 167, in render
body = resrc.render(self)
File "/usr/lib/python2.6/site-packages/Twisted-12.0.0-py2.6
-linux-x86_64.egg/twisted/web/resource.py", line 216, in render
return m(request)
File "/usr/lib/python2.6/site-
packages/buildbot-0.8.6p1-py2.6.egg/buildbot/status/web/change_hook.py",
line 77, in render_POST
d = self.submitChanges( changes, request, src )
File "/usr/lib/python2.6/site-packages/Twisted-12.0.0-py2.6
-linux-x86_64.egg/twisted/internet/defer.py", line 989, in unwindGenerator
return _deferGenerator(f(*args, **kwargs), Deferred())
--- <exception caught here> ---
File "/usr/lib/python2.6/site-packages/Twisted-12.0.0-py2.6
-linux-x86_64.egg/twisted/internet/defer.py", line 891, in _deferGenerator
result = g.next()
File "/usr/lib/python2.6/site-
packages/buildbot-0.8.6p1-py2.6.egg/buildbot/status/web/change_hook.py",
line 135, in submitChanges
wfd = defer.waitForDeferred(master.addChange(src=src,
**chdict))
File "/usr/lib/python2.6/site-
packages/buildbot-0.8.6p1-py2.6.egg/buildbot/master.py", line 444, in
addChange
converter=epoch2datetime)
File "/usr/lib/python2.6/site-
packages/buildbot-0.8.6p1-py2.6.egg/buildbot/master.py", line 432, in
handle_deprec
return converter(old)
File "/usr/lib/python2.6/site-
packages/buildbot-0.8.6p1-py2.6.egg/buildbot/util/__init__.py", line 173,
in epoch2datetime
return datetime.datetime.fromtimestamp(epoch, tz=UTC)
exceptions.TypeError: a float is required
--
Ticket URL: <http://trac.buildbot.net/ticket/2379>
Buildbot <http://buildbot.net/>
Buildbot: build/test automation
More information about the Commits
mailing list