[Buildbot-devel] Port reservation for functional testing

Georges Racinet gracinet at anybox.fr
Tue May 29 16:52:50 UTC 2012

On May 28, 2012, at 9:23 PM, P. Christeas wrote:

> On Monday 28 May 2012, Dustin J. Mitchell wrote:
>> then you could use some simple mechanism to "reserve" a port number,
>> e.g., by creating /var/run/webapp/$port.port with O_EXCL|O_CREAT.
> Let me just inform you that we've been doing that in OpenERP tests:  
> the
> buildstep (which is a single one) aquires a port from a pool of  
> resources, and
> then feeds it to the build script.
> https://github.com/xrg/openerp-buildbot/blob/bbot-
> v3/openerp_buildbot_master/bbot_oe/buildsteps/openerp.py#L226
> And the re-usable class is defined in the 'openerp-libclient' project:
> https://github.com/xrg/openerp-
> libcli/blob/master/openerp_libclient/utils.py#L37

Interesting… I wasn't aware of your work at all, although we had a  
brief exchange on OpenERP's mailing-list if I recall correctly.

Your builbot openerp setup seems to go much deeper and be more  
advanced than mine, which is merely a configurator (http://pypi.python.org/packages/anybox.buildbot.openerp 
), but I'm not sure they share exactly the same goals.
I'd certainly be glad to discuss this elsewhere with you, as this  
probably will be quite off-topic here.

Funnily enough, the first functional testing case I was thinking of in  
this port reservation thread is not related to OpenERP (later ones  
surely will).


More information about the devel mailing list