[Buildbot-devel] Changing the master config dynamically
Mikhail Sobolev
mss at mawhrin.net
Wed Oct 8 19:01:59 UTC 2014
Hi Karoly,
On Wed, Oct 08, 2014 at 07:20:48PM +0200, Karoly Kamaras wrote:
> I would like to be able to edit the master configuration dynamically
> without hurting the currently running builds. I know i can reconfigure the
> master without restart, but i also saw that if the configuration is built
> up by smaller components, like builders, buildsteps, schedulers, etc. in
> different python files, then changing one file might not affect the
> reconfig in the expected way.
This is a "problem" that comes from the Python import system.
The meta-Buildbot (Buildbot that runs behind
http://buildbot.buildbot.net) might be a good example how to address it.
To put it shortly every time you import your bit:
import bit
You need to make sure that it's updated in memory:
import bit
reload(bit)
This way every time you run `buildbot checkconfig` or `buildbot
reconfig` you'll get the latest content of your spread configuration
bits.
(The complete content of meta-bb is availble at
https://github.com/buildbot/metabbotcfg/blob/master/master.cfg)
Hope this helps,
--
Misha
More information about the devel
mailing list