[Buildbot-devel] Trac plugin for buildbot

Christophe de Vienne cdevienne at alphacent.com
Thu Mar 13 14:06:41 UTC 2008


Hi,

This plugins looks really great, but I cannot make it work with a
patched builtbot 0.7.6.

I have this error in the logs :
2008/03/13 15:01 CET [HTTPChannel,1,192.168.1.4] getLastBuilds:
continuous-build - 1
2008/03/13 15:01 CET [HTTPChannel,1,192.168.1.4] Traceback (most recent
call last):
          File "/usr/lib/python2.4/site-packages/twisted/web/server.py",
line 160, in process
            self.render(resrc)
          File "/usr/lib/python2.4/site-packages/twisted/web/server.py",
line 167, in render
            body = resrc.render(self)
          File
"/usr/lib/python2.4/site-packages/buildbot-0.7.6-py2.4.egg/buildbot/status/web/xmlrpc.py",
line 17, in render
            return xmlrpc.XMLRPC.render(self, req)
          File "/usr/lib/python2.4/site-packages/twisted/web/xmlrpc.py",
line 117, in render
            defer.maybeDeferred(function, *args).addErrback(
        --- <exception caught here> ---
          File
"/usr/lib/python2.4/site-packages/twisted/internet/defer.py", line 107,
in maybeDeferred
            result = f(*args, **kw)
          File
"/usr/lib/python2.4/site-packages/buildbot-0.7.6-py2.4.egg/buildbot/status/web/xmlrpc.py",
line 60, in xmlrpc_getLastBuilds
            answer = (builder_name,
        exceptions.TypeError: list indices must be integers

The relevant line is actually line 65 :

 60             answer = (builder_name,
 61                     build.getNumber(),
 62                     build_end,
 63                     branch,
 64                     revision,
 65                     Results[build.getResults()],
 66                     build.getText(),
 67                     )

Could it mean that xmlrpc.diff is not complete enough ?

Thanks,

Christophe

Etienne PIERRE a écrit :
> A few weeks ago, I asked if it was possible to add a few xmlrpc
> functions to buildbot which Justin kindly did. In case it can interest
> anybody, I've developed a small Trac plugin to integrate buildbot into
> it. It currently has very basic functionalities :
> - list all the builders with the status of the last build (currently
> only success or failure)
> - for each builder, you can get access to the list of the 5 last
> builds, its status (currently only success or failure again) and a
> link to the corresponding page on the buildbot web page
> - it links to a few pages of the buildbot server.
>
> If you'd like to test it, it's available at
> http://trac-hacks.org/wiki/TracBuildbotIntegration
>
> Note that you'll need a patched version of buildbot (only the
> xmlrpc.py file changes), but it's explained on the site.
>
>
> Etienne
> ------------------------------------------------------------------------
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2008.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> ------------------------------------------------------------------------
>
> _______________________________________________
> Buildbot-devel mailing list
> Buildbot-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/buildbot-devel
>   






More information about the devel mailing list