[Buildbot-devel] Port reservation for functional testing
Dmitry Nezhevenko
dion at dion.org.ua
Mon May 28 11:59:41 UTC 2012
On Mon, May 28, 2012 at 01:22:57PM +0200, Georges Racinet wrote:
> Example use-case : launch a web application in build step #n, launch
> selenium tests in build step #(n+1). Imagine there can be dozens of
> other services, including several build slaves for different masters
> on the same host.
> We also have cases to test in which two applications have to
> communicate to finish their installation, before integration tests can
> be run.
>
> It wouldn't be too hard to have step #(n-1) bind to a port, free it
> and store the number in a property. A SetProperty step launching a
> small python script could do it. A lock to avoid race conditions in
> one given slave plus a range parameter to isolate slaves running on
> the same host should protect against race conditions.
There is also an issue with interrupted build. You need to somehow
"cleanup" everything and tear down all stuff started during previous
steps.
--
WBR, Dmitry
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://buildbot.net/pipermail/devel/attachments/20120528/b65480c4/attachment.bin>
More information about the devel
mailing list