[Buildbot-devel] [Reconfig] Other ways to trigger - Available under Win32?

Tristan Carel tristan.carel at gmail.com
Sun Feb 24 02:29:38 UTC 2008


Hi folks,

I'm trying to find a way to easily launch the `reconfig' step of a
master without logging to the server, usable for people who do not
feel comfortable in front of a terminal. I need your knowledge and
experience to tell me if these methods can work and so are worth being
developed.

- Add a HTMLResource to the WebStatus which call the method
`_handleSIGHUP' on the instance of `BuildMaster', the one called when
a SIGHUP signal is received.
The resource could be configured to handle such request:
http://bbmaster.org/reconfig?password=foobar
  BTW can I get the botmaster instance in such context? (got lost when
browsing the code while trying to traverse both inheritance and
variable graphs at the same time:)

- Add a builder which execute the command `buildbot reconfig BASEDIR'
  I have seen more secure but just for curiosity.

Of course, If you know others ...


I can read everywhere that `reconfig' feature is not available under
Windows platform, and I guess the only 2 reasons are:
1. The only way to reconfig a master is to send a SIGHUP signal to the process
  ==> use the HTMLResource described above.
2. Maybe some critical calls to os.kill(, SIGKILL), for example to
anihilate the previous master process when all its jobs are done.
  ==> use ctypes (Python >=2.5) or pywin32
(http://sourceforge.net/projects/pywin32/) to make a TerminateProcess.

So I guess this could be available under Windows. It's probably more
complicated than that so ... what do I miss?

Thx for this awesome tool ... Love it, so do my crew!
-- 
Tristan Carel
Music with dinner is an insult both to the cook and the violinist.




More information about the devel mailing list