[Buildbot-commits] [Buildbot] #1832: GitPoller unhandled error on adding a change

Buildbot nobody at buildbot.net
Wed Feb 23 06:35:15 UTC 2011


#1832: GitPoller unhandled error on adding a change
----------------------------+----------------------------
Reporter:  davidholsgrove   |      Owner:
    Type:  support-request  |     Status:  new
Priority:  major            |  Milestone:  undecided
 Version:  0.8.3p1          |   Keywords:  git, gitpoller
----------------------------+----------------------------
 Hi,

 I have implemented a set of 4 gitpoller's, pointing to different local git
 repos (eventually to be hosted) which point to 3 lists of builders (2 of
 the repos point to the same set of builders - ie these builders should
 build if there are changes to either repo).

 The gitpollers all have their own workdir and point to the 4 different
 repo_urls, giving an arrangement like this;

 {{{
    GitPoller 1   |   GitPoller 2   |   GitPoller 3   |   GitPoller 4
         |                    \           /                    |
     builder 1                  builder 2                  builder 3
 }}}
 The gitpollers register the correct changesources and appear to be
 processing any changes correctly;

 {{{
 2011-02-23 16:20:42+1000 [-] adding 4 new changesources, removing 0
 2011-02-23 16:20:42+1000 [-] gitpoller: polling git repo at
 file:///home/buildbot/petalinux_modular/bld_components/gnu_tools/.git
 2011-02-23 16:20:42+1000 [-] gitpoller: polling git repo at
 file:///home/buildbot/petalinux_modular/bld_components/toolchains/.git
 2011-02-23 16:20:42+1000 [-] gitpoller: polling git repo at
 file:///home/buildbot/petalinux_modular/bld_components/qemu/.git
 2011-02-23 16:20:42+1000 [-] gitpoller: polling git repo at
 file:///home/buildbot/petalinux_modular/bld_components/gdb/.git

 2011-02-23 16:20:42+1000 [-] gitpoller: processing 0 changes: [] in
 "/tmp/gitpoller_work/CENTOSx86/GNU_Tools/master"
 2011-02-23 16:20:42+1000 [-] gitpoller: no changes, no catch_up
 2011-02-23 16:20:42+1000 [-] gitpoller: processing 0 changes: [] in
 "/tmp/gitpoller_work/CENTOSx86/Toolchains/master"
 2011-02-23 16:20:42+1000 [-] gitpoller: no changes, no catch_up
 2011-02-23 16:20:42+1000 [-] gitpoller: processing 0 changes: [] in
 "/tmp/gitpoller_work/CENTOSx86/QEMU/master"
 2011-02-23 16:20:42+1000 [-] gitpoller: no changes, no catch_up
 2011-02-23 16:20:42+1000 [-] gitpoller: processing 0 changes: [] in
 "/tmp/gitpoller_work/CENTOSx86/GDB/master"
 2011-02-23 16:20:42+1000 [-] gitpoller: no changes, no catch_up
 }}}

 but a change does occur on a repo, the following is seen in the logs;

 {{{
 2011-02-23 16:30:53+1000 [-] gitpoller: processing 1 changes:
 ['7e41cd8aca3fe3c522adbae34fff0425ce8c1a34'] in
 "/tmp/gitpoller_work/CENTOSx86/GNU_Tools/master"
 2011-02-23 16:30:53+1000 [-] gitpoller: _add_change results: "[(True,
 1298442055.0), (True, 'buildbot at dholsgrove-Ubuntu104.(none)'), (True,
 ['src/busybox/Makefile']), (True, 'Add empty line to trigger build via git
 poller')]", rev: "7e41cd8aca3fe3c522adbae34fff0425ce8c1a34" in
 "/tmp/gitpoller_work/CENTOSx86/GNU_Tools/master"
 2011-02-23 16:30:53+1000 [-] gitpoller: change
 "<buildbot.changes.changes.Change instance at 0xa1036ec>" in
 "/tmp/gitpoller_work/CENTOSx86/GNU_Tools/master"
 2011-02-23 16:30:53+1000 [-] adding change, who buildbot at dholsgrove-
 Ubuntu104.(none), 1 files, rev=7e41cd8aca3fe3c522adbae34fff0425ce8c1a34,
 branch=master,
 repository=file:///home/buildbot/petalinux_modular/bld_components/gnu_tools/.git,
 comments Add empty line to trigger build via git poller, category None,
 project ['GNU_Tools [CENTOSx86 - master branch]']
 2011-02-23 16:30:53+1000 [-] gitpoller: repo poll failed
 2011-02-23 16:30:53+1000 [-] Unhandled Error
         Traceback (most recent call last):
           File "/usr/local/lib/python2.6/dist-
 packages/Twisted-10.2.0-py2.6-linux-i686.egg/twisted/internet/defer.py",
 line 361, in callback
             self._startRunCallbacks(result)
           File "/usr/local/lib/python2.6/dist-
 packages/Twisted-10.2.0-py2.6-linux-i686.egg/twisted/internet/defer.py",
 line 455, in _startRunCallbacks
             self._runCallbacks()
           File "/usr/local/lib/python2.6/dist-
 packages/Twisted-10.2.0-py2.6-linux-i686.egg/twisted/internet/defer.py",
 line 542, in _runCallbacks
             current.result = callback(current.result, *args, **kw)
           File "/usr/local/lib/python2.6/dist-
 packages/Twisted-10.2.0-py2.6-linux-i686.egg/twisted/internet/defer.py",
 line 891, in gotResult
             _deferGenerator(g, deferred)
         --- <exception caught here> ---
           File "/usr/local/lib/python2.6/dist-
 packages/Twisted-10.2.0-py2.6-linux-i686.egg/twisted/internet/defer.py",
 line 866, in _deferGenerator
             result = g.next()
           File "/usr/local/lib/python2.6/dist-
 packages/buildbot-0.8.3p1-py2.6.egg/buildbot/changes/gitpoller.py", line
 207, in _process_changes_in_output
             wfd.getResult()
           File "/usr/local/lib/python2.6/dist-
 packages/Twisted-10.2.0-py2.6-linux-i686.egg/twisted/internet/defer.py",
 line 845, in getResult
             self.result.raiseException()
           File "/usr/local/lib/python2.6/dist-
 packages/Twisted-10.2.0-py2.6-linux-i686.egg/twisted/internet/defer.py",
 line 542, in _runCallbacks
             current.result = callback(current.result, *args, **kw)
           File "/usr/local/lib/python2.6/dist-
 packages/buildbot-0.8.3p1-py2.6.egg/buildbot/changes/gitpoller.py", line
 223, in _add_change
             self.parent.addChange(c)
           File "/usr/local/lib/python2.6/dist-
 packages/buildbot-0.8.3p1-py2.6.egg/buildbot/changes/manager.py", line 88,
 in addChange
             self.parent.addChange(change)
           File "/usr/local/lib/python2.6/dist-
 packages/buildbot-0.8.3p1-py2.6.egg/buildbot/master.py", line 1246, in
 addChange
             self.db.addChangeToDatabase(change)
           File "/usr/local/lib/python2.6/dist-
 packages/buildbot-0.8.3p1-py2.6.egg/buildbot/db/connector.py", line 282,
 in addChangeToDatabase
             self.runInteractionNow(self._txn_addChangeToDatabase, change)
           File "/usr/local/lib/python2.6/dist-
 packages/buildbot-0.8.3p1-py2.6.egg/buildbot/db/connector.py", line 188,
 in runInteractionNow
             return self._runInteractionNow(interaction, *args, **kwargs)
           File "/usr/local/lib/python2.6/dist-
 packages/buildbot-0.8.3p1-py2.6.egg/buildbot/db/connector.py", line 213,
 in _runInteractionNow
             result = interaction(c, *args, **kwargs)
           File "/usr/local/lib/python2.6/dist-
 packages/buildbot-0.8.3p1-py2.6.egg/buildbot/db/connector.py", line 300,
 in _txn_addChangeToDatabase
             t.execute(q, values)
           File "/usr/local/lib/python2.6/dist-
 packages/buildbot-0.8.3p1-py2.6.egg/buildbot/db/dbspec.py", line 81, in
 execute
             result = self.cursor.execute(*args, **kw)
         sqlite3.InterfaceError: Error binding parameter 9 - probably
 unsupported type.

 2011-02-23 16:30:53+1000 [-] gitpoller: catching up to FETCH_HEAD
 }}}


 What could cause such an unhandled error? I've previously used svnpoller
 in a similar manner and it was fine?

 thanks,

 david

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


More information about the Commits mailing list