ReleaseEngineering/How To/Setup Personal Development Master: Difference between revisions

Jump to navigation Jump to search
tweaks for the newer config.json method
(tweaks for the newer config.json method)
Line 29: Line 29:
== Create a build master ==
== Create a build master ==


Use [https://hg.mozilla.org/users/john.hopkins_mozillamessaging.com/misc/file/default/buildbot-scripts/create-staging-master this automation script] to create a build master, or follow the manual steps below. Add <code>'try'</code> to the list of <code>ACTIVE_BRANCHES</code> in <code>master/master_localconfig.py</code>.
Use [https://hg.mozilla.org/users/john.hopkins_mozillamessaging.com/misc/file/default/buildbot-scripts/create-staging-master this automation script] to create a build master, or follow the manual steps below.
 
Add <code>'try'</code> to the list of <code>ACTIVE_BRANCHES</code> in <code>master/master_localconfig.py</code>.
 


<code>create_master.sh</code>
<code>create_master.sh</code>
Line 68: Line 71:


= Customize your configs =
= Customize your configs =
* In <code>master_localconfig.py</code>, adjust ports for <code>slavePortnum</code>, <code>webstatus</code> & <code>manhole</code>
* In <code>master/master_config.json</code>, adjust ports for <code>slavePortnum</code>, <code>webstatus</code> & <code>manhole</code>
** Check [http://slavealloc.build.mozilla.org/ui/#masters slavealloc] to see what ports are in use by others. Search for 'staging-pers' and be sure to Show all Entries.
** Check [http://slavealloc.build.mozilla.org/ui/#masters slavealloc] to see what ports are in use by others. Search for 'staging-pers' and be sure to Show all Entries.
** Try to use similar ports, i.e. if you choose 9099 for slavePortnum, use 8099 for your webstatus and 1299 for your manhole.
** Try to use similar ports, i.e. if you choose 9099 for slavePortnum, use 8099 for your webstatus and 1299 for your manhole.
Line 84: Line 87:
</pre>
</pre>
* modify your master/master_localconfig.py so that QUEUEDIR points to your new dir:
* modify your master/master_localconfig.py so that QUEUEDIR points to your new dir:
QUEUEDIR = "/dev/shm/${WHO}/queue"
      QUEUEDIR = "/dev/shm/${WHO}/queue"
 
* or (newer) <tt>master/master_config.json</tt> to add the line:
      "queuedir": "/dev/shm/${WHO}/queue"
   
= Does it work? =
= Does it work? =
* If you want production schedulers to run, then "<tt>cd $BASEDIR/master; ln -sf ../buildbot-configs/mozilla/universal_master_sqlite.cfg master.cfg; cd -</tt>" (build master) or "<tt>cd $BASEDIR/master; ln -sf ../buildbot-configs/mozilla-tests/universal_master_sqlite.cfg master.cfg; cd -</tt>" (tests master). <small>Note: the default scheduler <code>builder_master.cfg</code> is usually fine.</small>
* If you want production schedulers to run, then "<tt>cd $BASEDIR/master; ln -sf ../buildbot-configs/mozilla/universal_master_sqlite.cfg master.cfg; cd -</tt>" (build master) or "<tt>cd $BASEDIR/master; ln -sf ../buildbot-configs/mozilla-tests/universal_master_sqlite.cfg master.cfg; cd -</tt>" (tests master). <small>Note: the default scheduler <code>builder_master.cfg</code> is usually fine.</small>
Confirmed users
1,364

edits

Navigation menu