1 ===================================================================
2 How To Add Your Build Configuration To LLVM Buildbot Infrastructure
3 ===================================================================
8 This document contains information about adding a build configuration and
9 buildslave to private slave builder to LLVM Buildbot Infrastructure.
14 There are two buildmasters running.
16 * The main buildmaster at `<http://lab.llvm.org:8011>`_. All builders attached
17 to this machine will notify commit authors every time they break the build.
18 * The staging buildbot at `<http://lab.llvm.org:8014>`_. All builders attached
19 to this machine will be completely silent by default when the build is broken.
20 Builders for experimental backends should generally be attached to this
23 Steps To Add Builder To LLVM Buildbot
24 =====================================
25 Volunteers can provide their build machines to work as build slaves to
28 Here are the steps you can follow to do so:
30 #. Check the existing build configurations to make sure the one you are
31 interested in is not covered yet or gets built on your computer much
32 faster than on the existing one. We prefer faster builds so developers
33 will get feedback sooner after changes get committed.
35 #. The computer you will be registering with the LLVM buildbot
36 infrastructure should have all dependencies installed and you can
37 actually build your configuration successfully. Please check what degree
38 of parallelism (-j param) would give the fastest build. You can build
39 multiple configurations on one computer.
41 #. Install buildslave (currently we are using buildbot version 0.8.5).
42 Depending on the platform, buildslave could be available to download and
43 install with your package manager, or you can download it directly from
44 `<http://trac.buildbot.net>`_ and install it manually.
46 #. Create a designated user account, your buildslave will be running under,
47 and set appropriate permissions.
49 #. Choose the buildslave root directory (all builds will be placed under
50 it), buildslave access name and password the build master will be using
51 to authenticate your buildslave.
53 #. Create a buildslave in context of that buildslave account. Point it to
54 the **lab.llvm.org** port **9990** (see `Buildbot documentation,
56 <http://docs.buildbot.net/current/tutorial/firstrun.html#creating-a-slave>`_
57 for more details) by running the following command:
61 $ buildslave create-slave <buildslave-root-directory> \
63 <buildslave-access-name> <buildslave-access-password>
65 #. Fill the buildslave description and admin name/e-mail. Here is an
66 example of the buildslave description::
69 Core i7 (2.66GHz), 16GB of RAM
71 g++.exe (TDM-1 mingw32) 4.4.0
74 Microsoft(R) 32-bit C/C++ Optimizing Compiler Version 16.00.40219.01 for 80x86
76 #. Make sure you can actually start the buildslave successfully. Then set
77 up your buildslave to start automatically at the start up time. See the
78 buildbot documentation for help. You may want to restart your computer
81 #. Send a patch which adds your build slave and your builder to zorg.
83 * slaves are added to ``buildbot/osuosl/master/config/slaves.py``
84 * builders are added to ``buildbot/osuosl/master/config/builders.py``
86 Please make sure your builder name and its builddir are unique through the file.
88 It is possible to whitelist email addresses to unconditionally receive notifications
89 on build failure; for this you'll need to add an ``InformativeMailNotifier`` to
90 ``buildbot/osuosl/master/config/status.py``. This is particularly useful for the
91 staging buildmaster which is silent otherwise.
93 #. Send the buildslave access name and the access password directly to
94 `Galina Kistanova <mailto:gkistanova@gmail.com>`_, and wait till she
95 will let you know that your changes are applied and buildmaster is
98 #. Check the status of your buildslave on the `Waterfall Display
99 <http://lab.llvm.org:8011/waterfall>`_ to make sure it is connected, and
100 ``http://lab.llvm.org:8011/buildslaves/<your-buildslave-name>`` to see
101 if administrator contact and slave information are correct.
103 #. Wait for the first build to succeed and enjoy.