[Buildbot-devel] buildbot doesn't fully reconfigure on SIGHUP?
tom.prince at ualberta.net
Wed Oct 3 21:21:30 UTC 2012
Dan Kegel <dank at kegel.com> writes:
> The manual claims buildbot reloads config files when you send it a SIGHUP,
> but I'm not seeing that here. I mean, sure, it says it's doing it, but
> if the config file adds a new buildslave, that won't show up until
> you actually stop the buildbot and start it again.
> Has anyone else seen that? I don't see an exact match in the bug tracker.
My guess is that you import some file that defines the buildslaves.
buildbot's reconfig is implemented by rerunning the code in the
master.cfg file. The nature of python is such that an import only
loads the indicated file the first time it is run (so if you change the
file, python won't see it). This can be somewhat worked around by
calling reload, although the behavior of that can be tricky.
More information about the devel