[Buildbot-devel] errors after upgrading 0.7.4 -> 0.7.6

Benoit Sigoure tsuna at lrde.epita.fr
Fri Nov 16 20:48:38 UTC 2007


On Nov 16, 2007, at 9:13 PM, Timothee Besset wrote:

> I upgraded my bbot install to 0.7.6 and restarted my masters:
>
> First had to figure out that I needed to copy the new public_html/
> directory. There should be an 'upgrading' section somewhere mentioning
> that kind of stuff.

Hi Timothee,
I went through this update (0.7.4 -> 0.7.6) last week or so, so here  
is what you need to do:

   - The build steps have moved, they used to be under  
buildbot.process.step and are now under buildbot.steps.<category>.   
Most of the time, doing `from buildbot.steps import shell as step'  
will solve most of the problems except for the VC-checkout step (if  
you use SVN, do `from buildbot.steps import source as scm' and then  
use `scm.SVN' instead of `step.SVN')
   - Change `c['sources']' to `c['change_source']'
   - Change `c['bots']' to `c['slaves']' and change the value  
associated to this key (it used to be a couple `('bot-name',  
'passwd')' whereas now it must be a BuildSlave instance.  So  
basically, you must now use `BuildSlave('bot-name', 'passwd')' instead)
   - In c['status'], use a `html.WebStatus' instance instead of a  
`html.Waterfall'.  This new class doesn't accept a `css' argument but  
you can tweak the `buildbot.css' under the `public_html' directory)

In order to create the `public_html' directory and check your  
configuration, you should run `buildbot upgrade-master <master- 
directory>'.

> Next I had an error when clicking on one of my builders:
>
>           File
> "/usr/lib/python2.4/site-packages/buildbot/status/web/builder.py",  
> line
> 71, in body
>             data += " <li>" + self.make_line(req, build, False) +  
> "</li>\n"
>           File
> "/usr/lib/python2.4/site-packages/buildbot/status/web/base.py", line
> 318, in make_line
>             values = {'class': css_classes[results],
>         exceptions.KeyError:
>
> that's in the rendering of the builder page. results is None, probably
> because some builds where timing out or got killed and never  
> registered
> a result.

I did not run in this issue but I guess that if you use the  
`html.WebStatus' instead of the now-deprecated `html.Waterfall', the  
problem will go away.  Don't worry, the `WebStatus' thing still  
contains the waterfall.

Hope this helps.

Cheers,

-- 
Benoit Sigoure aka Tsuna
EPITA Research and Development Laboratory


-------------- next part --------------
A non-text attachment was scrubbed...
Name: PGP.sig
Type: application/pgp-signature
Size: 186 bytes
Desc: This is a digitally signed message part
URL: <http://buildbot.net/pipermail/devel/attachments/20071116/6d216ad3/attachment.bin>


More information about the devel mailing list