[Buildbot-devel] Buildbot 1.0: The Shimmering Vision

Dustin J. Mitchell dustin at zmanda.com
Tue Aug 12 18:09:09 UTC 2008


On Tue, Aug 12, 2008 at 11:18 AM, Ben Hearsum <bhearsum at mozilla.com> wrote:
> This is more of a Python issue than a Buildbot one. One way to work
> around it is to import/reload, like this:
>
> import buildbot.process.factory
> reload(buildbot.process.factory)
> from buildbot.process import factory
>
> It sucks that it takes up so much space, especially when you import
> from many modules, but it does the trick. We use this to load all of
> our custom Buildbot code.

I've been thinking of hooking import to try to make such reloading
"automatic" for user-supplied modules.  But that (especially coupled
with the reload mechanics) becomes a lot of sneaky Python to maintain.
I've also been thinking of simply not supporting runtime reloads, and
using a stateless client/server protocol, so that restart is both fast
and effective.  Thoughts either way?

Dustin

-- 
Storage Software Engineer
http://www.zmanda.com




More information about the devel mailing list