[Buildbot-devel] buildslave making up branch and failing on compile

Dustin J. Mitchell dustin at zmanda.com
Fri May 7 18:53:16 UTC 2010


On Thu, May 6, 2010 at 6:30 AM, Kyle Hubbard
<kyle.hubbard at luminultra.com> wrote:
> I think I may have borked the thing when adding my own code to
> steps/shell.py, and running “python setup.py install” to move the change so
> buildbot would use it. Is this a no-no? Is my only recourse to copy
> state.sqlite and master.cfg, and re-install buildbot? The other buildslave
> has been operating as normal, but the second one repeatedly fails on
> compile, despite my attempts to fix it.

I'm not entirely sure what this means, but it sounds like yes, you
should reinstall buildbot.  That really should mean just running
'python setup.py install' from a clean checkout/tarball - you won't
need to re-create the master.  But back it up just in case :)

If you're adding your own code for purposes of your buildbot install,
you should be adding it in files that are somewhere else in the python
path.  If it's short, you can just add the new classes directly in
master.cfg.  You shouldn't modify buildbot files directly, as that
will make upgrades hard.

On hte other hand, if you're fixing our broken code in preparation to
send me a patch, then have at it!  It's usually faster to just edit
the files under the python install, rather than running setup.py
install.  Also, consider using virtualenv for this purpose (and
setup.py develop).

Dustin

-- 
Open Source Storage Engineer
http://www.zmanda.com




More information about the devel mailing list