<div dir="ltr"><div>>You can run more than one build at a time with a single worker.<br>>You can run more than one builder at a time on a single worker...<br><br></div>Really? How? Why does a worker only run one build at a time by default?<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, May 24, 2017 at 8:21 PM, Bill Deegan <span dir="ltr"><<a href="mailto:bill@baddogconsulting.com" target="_blank">bill@baddogconsulting.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div><div><div><div><div><div>Why a second worker?<br></div>You can run more than one build at a time with a single worker.<br></div></div>You can run more than one builder at a time on a single worker...<br></div><br></div>Putting all that aside, you can use the buildbot property 'workername' to do this.<br></div>via command line arg, or set an environment variable, etc..<br><a href="http://docs.buildbot.net/latest/manual/cfg-buildsteps.html#using-shellcommands" target="_blank">http://docs.buildbot.net/<wbr>latest/manual/cfg-buildsteps.<wbr>html#using-shellcommands</a><br></div>search for env=<br><br></div>-Bill<br><div><div><div><div><div><div><br><div><div><div class="gmail_extra"><br><div class="gmail_quote"><div><div class="h5">On Wed, May 24, 2017 at 3:12 PM, Chris Spencer <span dir="ltr"><<a href="mailto:chrisspen@gmail.com" target="_blank">chrisspen@gmail.com</a>></span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div><div class="h5"><div dir="ltr"><div><div><div><div>I'm trying to setup a second worker on a server, and I'm running into some issues with Firefox+Selenium+Xvfb used with some GUI tests.<br><br></div>I'm currently spinning up an instance of Xvfb, since the server is headless, but now that I have two workers, they're breaking each others tests because each tries to cleanup the other's instance of Xvfb.<br><br></div>Is there any way, from inside the Python test, to determine the worker that's executing it? If I can identify some unique property of the process, I can use that to set separate port numbers. I was thinking of just using the process ID, but that alone wouldn't tell me which of the Nth workers the process is running as.<br><br></div>The idea is if my test knows it's running as "worker1", it can strip out the 1, and append that to a base port number, e.g. 8000+1, to use for Xfvb, and only manage the Xvfb process using that port.<br></div></div>
<br></div></div>______________________________<wbr>_________________<br>
users mailing list<br>
<a href="mailto:users@buildbot.net" target="_blank">users@buildbot.net</a><br>
<a href="https://lists.buildbot.net/mailman/listinfo/users" rel="noreferrer" target="_blank">https://lists.buildbot.net/mai<wbr>lman/listinfo/users</a><br></blockquote></div><br></div></div></div></div></div></div></div></div></div></div>
</blockquote></div><br></div>