Confirmed users
194
edits
| Line 156: | Line 156: | ||
* Modify the FQDN of the master and the port (e.g. dev-master01.build.mozilla.org) | * Modify the FQDN of the master and the port (e.g. dev-master01.build.mozilla.org) | ||
= Setting up a local master scheduler = | = Setting up and running a local master scheduler = | ||
<ol><li> Download new-project.sh to ~/</li> | |||
<li>./new-projects.sh Buildbot</li> | |||
<li>cd Buildbot; source bin/activate</li> | |||
<li>cd buildbot-configs; ./test-masters.sh</li> | |||
<li>cd ~</li> | |||
<li>cd BASEDIR/build-master/</li> | |||
<li>Modify line 2 of Makefile from BUILDBOT=$(PWD)/bin/buildbot to be BUILDBOT=$(PWD)/../bin/buildbot</li> | |||
<li>Modify line 11 of master_config.json so that 'release_branches' contains an empty list. It did contain ["mozilla-1.9.2", "mozilla-beta"] and they are unnecessary for local setup.</li> | |||
<li>make checkconfig | |||
* Should say: Config file is good!</li> | |||
<li>make start | |||
<ul><li> It will appear as if start has failed, but fear not! You'll see the message below, but this is simply because the buildbot process is launched as a dameon and buildmaster waits to give the all configuration is complete signal. However, Mozilla's configuration files are way to complicated to be dealt with in under 10 seconds, so it times out and you see the message below: | |||
<pre>(Buildbot)localhost:build-master jzeller$ make start | |||
cd master && /Users/jzeller/Buildbot/build-master/../bin/buildbot start $PWD | |||
Following twistd.log until startup finished.. | |||
2014-01-22 14:47:30-0800 [-] Log opened. | |||
2014-01-22 14:47:30-0800 [-] twistd 12.0.0 (/Users/jzeller/Buildbot/bin/python 2.6.7) starting up. | |||
2014-01-22 14:47:30-0800 [-] reactor class: twisted.internet.selectreactor.SelectReactor. | |||
2014-01-22 14:47:30-0800 [-] monkeypatch_twisted_cbLogin applied | |||
2014-01-22 14:47:30-0800 [-] Creating BuildMaster — buildbot.version: 0.8.2 | |||
2014-01-22 14:47:30-0800 [-] loading configuration from /Users/jzeller/Buildbot/build-master/master.cfg | |||
2014-01-22 14:47:30-0800 [-] unable to import dnotify, so Maildir will use polling instead | |||
2014-01-22 14:47:30-0800 [-] nextAWSSlave: start | |||
2014-01-22 14:47:30-0800 [-] nextAWSSlave: start | |||
2014-01-22 14:47:37-0800 [-] nextAWSSlave: start | |||
2014-01-22 14:47:37-0800 [-] nextAWSSlave: start | |||
The buildmaster took more than 10 seconds to start, so we were unable to | |||
confirm that it started correctly. Please 'tail twistd.log' and look for a | |||
line that says 'configuration update complete' to verify correct startup. | |||
make: *** [start] Error 1</pre></li></ul> | |||
<li>To doublecheck that the configuration was successful, just follow the directions and type: less twistd.log | grep "configuration update complete". As long as you see it pop up then you're good!</li> | |||
<li>Go to http://localhost:8501/</li> | |||
<li>If you see a page with "Welcome to the Buildbot for the Firefox project!" then you have been successful!</li> | |||
<li>You can now check out what buildbot has pending by going to http://localhost:8501/waterfall</li></ol> | |||
= Setting up a local slave = | = Setting up a local slave = | ||