[Buildbot-devel] Web hook changesources

Nicolas Alvarez nicolas.alvarez at gmail.com
Sun Dec 27 05:40:05 UTC 2009


Hello fellow buildbot devs and buildmaster herders.

A while ago, I wrote a ChangeSource that handles web hooks from Google Code. 
It works by creating a twisted webserver (twisted.web.server.Site) on a 
configurable TCP port and responding to POST requests on /gcode-hook (not 
configurable yet).

Note that this is not an external process that talks to the master via PB, 
like most scripts in contrib/ do. The webserver runs inside the buildmaster 
process.

However, I'm now planning to build other projects from the same buildmaster, 
separating ChangeSources, Schedulers and Builders with categories. I'd have 
multiple web-hook-based ChangeSources; but I don't want to create yet 
another webserver on yet another TCP port for each...

I'm thinking of creating some sort of WebHookListener object (which would be 
the webserver), on which you can connect several "hook-based ChangeSources" 
(which would be POSTable Resources on different URLs). Does this approach 
seem reasonable?

For my particular situation, it would be even better if it was a FastCGI 
server (maybe on a Unix socket!) instead of a webserver. But I don't even 
know if twisted has a FCGI server that can be used with web.server.Site...

-- 
Nicolas

I read mailing lists through Gmane. Please don't Cc me on replies; it makes 
me get one message on my newsreader and another on email.





More information about the devel mailing list