[Buildbot-devel] Problems manually adding a change

Andrew Melo andrew.melo at gmail.com
Mon Jun 14 14:18:18 UTC 2010


Hello, all

I've got a fork of buildbot on my github, and I'm having some trouble
getting it to work right. I basically am writing a handler for the webstatus
stuff that will accept GET/POST requests to /change_hook, parse the request
and send an addChange to the ChangeMaster, triggering a build. There's a
couple changes in the base web stuff, but the biggest part is at:

http://github.com/PerilousApricot/buildbot/blob/master/master/buildbot/status/web/change_hook.py

However, when I submit a simple request, I end up with the output below.

Can anyone point out the error of my ways?

Thanks
Andrew

2010-06-14 05:44:23-0500 [HTTPChannel,0,128.141.232.65] adding change, who
['meloam'], 0 files, rev=['999'], branch=None, repository=None, comments
['test'], category None
2010-06-14 05:44:23-0500 [HTTPChannel,0,128.141.232.65]
ERROR:root:Encountered an exception in change_hook:
2010-06-14 05:44:23-0500 [HTTPChannel,0,128.141.232.65] ERROR:root:Traceback
(most recent call last):
2010-06-14 05:44:23-0500 [HTTPChannel,0,128.141.232.65] ERROR:root:File
"/home/meloam/lib/python2.4/site-packages/buildbot-latest-py2.4.egg/buildbot/status/web/change_hook.py",
line 47, in render_POST
2010-06-14 05:44:23-0500 [HTTPChannel,0,128.141.232.65]
self.submitChanges( changes, request )
2010-06-14 05:44:23-0500 [HTTPChannel,0,128.141.232.65] ERROR:root:File
"/home/meloam/lib/python2.4/site-packages/buildbot-latest-py2.4.egg/buildbot/status/web/change_hook.py",
line 96, in submitChanges
2010-06-14 05:44:23-0500 [HTTPChannel,0,128.141.232.65]
changeMaster.addChange( onechange )
2010-06-14 05:44:23-0500 [HTTPChannel,0,128.141.232.65] ERROR:root:File
"/home/meloam/lib/python2.4/site-packages/buildbot-latest-py2.4.egg/buildbot/changes/manager.py",
line 113, in addChange
2010-06-14 05:44:23-0500 [HTTPChannel,0,128.141.232.65]
self.parent.addChange(change)
2010-06-14 05:44:23-0500 [HTTPChannel,0,128.141.232.65] ERROR:root:File
"/home/meloam/lib/python2.4/site-packages/buildbot-latest-py2.4.egg/buildbot/master.py",
line 1087, in addChange
2010-06-14 05:44:23-0500 [HTTPChannel,0,128.141.232.65]
self.db.addChangeToDatabase(change)
2010-06-14 05:44:23-0500 [HTTPChannel,0,128.141.232.65] ERROR:root:File
"/home/meloam/lib/python2.4/site-packages/buildbot-latest-py2.4.egg/buildbot/db/connector.py",
line 308, in addChangeToDatabase
2010-06-14 05:44:23-0500 [HTTPChannel,0,128.141.232.65]
self.runInteractionNow(self._txn_addChangeToDatabase, change)
2010-06-14 05:44:23-0500 [HTTPChannel,0,128.141.232.65] ERROR:root:File
"/home/meloam/lib/python2.4/site-packages/buildbot-latest-py2.4.egg/buildbot/db/connector.py",
line 212, in runInteractionNow
2010-06-14 05:44:23-0500 [HTTPChannel,0,128.141.232.65]     return
self._runInteractionNow(interaction, *args, **kwargs)
2010-06-14 05:44:23-0500 [HTTPChannel,0,128.141.232.65] ERROR:root:File
"/home/meloam/lib/python2.4/site-packages/buildbot-latest-py2.4.egg/buildbot/db/connector.py",
line 237, in _runInteractionNow
2010-06-14 05:44:23-0500 [HTTPChannel,0,128.141.232.65]     result =
interaction(c, *args, **kwargs)
2010-06-14 05:44:23-0500 [HTTPChannel,0,128.141.232.65] ERROR:root:File
"/home/meloam/lib/python2.4/site-packages/buildbot-latest-py2.4.egg/buildbot/db/connector.py",
line 326, in _txn_addChangeToDatabase
2010-06-14 05:44:23-0500 [HTTPChannel,0,128.141.232.65]     t.execute(q,
values)
2010-06-14 05:44:23-0500 [HTTPChannel,0,128.141.232.65] ERROR:root:File
"/home/meloam/lib/python2.4/site-packages/buildbot-latest-py2.4.egg/buildbot/db/dbspec.py",
line 105, in execute
2010-06-14 05:44:23-0500 [HTTPChannel,0,128.141.232.65]     result =
self.cursor.execute(*args, **kw)
2010-06-14 05:44:23-0500 [HTTPChannel,0,128.141.232.65]
ERROR:root:InterfaceError: Error binding parameter 0 - probably unsupported
type.



-- 
--
Andrew Melo
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://buildbot.net/pipermail/devel/attachments/20100614/4e65729b/attachment.html>


More information about the devel mailing list