1 .. _how_to_add_a_builder:
3 ===================================================================
4 How To Add Your Build Configuration To LLVM Buildbot Infrastructure
5 ===================================================================
10 This document contains information about adding a build configuration and
11 buildslave to private slave builder to LLVM Buildbot Infrastructure
12 `<http://lab.llvm.org:8011>`_.
15 Steps To Add Builder To LLVM Buildbot
16 =====================================
17 Volunteers can provide their build machines to work as build slaves to
20 Here are the steps you can follow to do so:
22 #. Check the existing build configurations to make sure the one you are
23 interested in is not covered yet or gets built on your computer much
24 faster than on the existing one. We prefer faster builds so developers
25 will get feedback sooner after changes get committed.
27 #. The computer you will be registering with the LLVM buildbot
28 infrastructure should have all dependencies installed and you can
29 actually build your configuration successfully. Please check what degree
30 of parallelism (-j param) would give the fastest build. You can build
31 multiple configurations on one computer.
33 #. Install buildslave (currently we are using buildbot version 0.8.5).
34 Depending on the platform, buildslave could be available to download and
35 install with your packet manager, or you can download it directly from
36 `<http://trac.buildbot.net>`_ and install it manually.
38 #. Create a designated user account, your buildslave will be running under,
39 and set appropriate permissions.
41 #. Choose the buildslave root directory (all builds will be placed under
42 it), buildslave access name and password the build master will be using
43 to authenticate your buildslave.
45 #. Create a buildslave in context of that buildslave account. Point it to
46 the **lab.llvm.org** port **9990** (see `Buildbot documentation,
48 <http://buildbot.net/buildbot/docs/current/full.html#creating-a-slave>`_
49 for more details) by running the following command:
53 $ buildslave create-slave <buildslave-root-directory> \
55 <buildslave-access-name> <buildslave-access-password>
57 #. Fill the buildslave description and admin name/e-mail. Here is an
58 example of the buildslave description::
61 Core i7 (2.66GHz), 16GB of RAM
63 g++.exe (TDM-1 mingw32) 4.4.0
66 Microsoft(R) 32-bit C/C++ Optimizing Compiler Version 16.00.40219.01 for 80x86
68 #. Make sure you can actually start the buildslave successfully. Then set
69 up your buildslave to start automatically at the start up time. See the
70 buildbot documentation for help. You may want to restart your computer
73 #. Send a patch which adds your build slave and your builder to zorg.
75 * slaves are added to ``buildbot/osuosl/master/config/slaves.py``
76 * builders are added to ``buildbot/osuosl/master/config/builders.py``
78 #. Send the buildslave access name and the access password directly to
79 `Galina Kistanova <mailto:gkistanova@gmail.com>`_, and wait till she
80 will let you know that your changes are applied and buildmaster is
83 #. Check the status of your buildslave on the `Waterfall Display
84 <http://lab.llvm.org:8011/waterfall>`_ to make sure it is connected, and
85 ``http://lab.llvm.org:8011/buildslaves/<your-buildslave-name>`` to see
86 if administrator contact and slave information are correct.
88 #. Wait for the first build to succeed and enjoy.