Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(486)

Side by Side Diff: master.nacl.ppapi/master.cfg

Issue 5329006: Delete obsolete masters from tools/buildbot (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/buildbot/
Patch Set: Created 10 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « master.nacl.ppapi/buildbot.tac ('k') | master.nacl.ppapi/public_html/announce.html » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 # -*- python -*-
2 # ex: set syntax=python:
3
4 # Copyright (c) 2006-2010 The Chromium Authors. All rights reserved.
5 # Use of this source code is governed by a BSD-style license that can be
6 # found in the LICENSE file.
7
8 # This is the buildmaster config file for the 'nacl' bot. It must
9 # be installed as 'master.cfg' in your buildmaster's base directory
10 # (although the filename can be changed with the --basedir option to
11 # 'mktap buildbot master').
12
13 # It has one job: define a dictionary named BuildmasterConfig. This
14 # dictionary has a variety of keys to control different aspects of the
15 # buildmaster. They are documented in docs/config.xhtml .
16
17 # This file follows this naming convention:
18 # Factories: f_nacl_[dbg/opt/sdk]_[os]
19 # Builders: b_nacl_[dbg/opt/sdk]_[os]
20 # BuildDir: [dbg/opt/sdk]-[os]
21 #
22 # os = xp/linux/mac
23
24 from buildbot import locks
25 from buildbot.changes import svnpoller
26 from buildbot.scheduler import Dependent
27 from buildbot.scheduler import Scheduler
28 from buildbot.scheduler import Triggerable
29
30 # Reload all the python files under master and common
31 import master
32 reload(master)
33 import common
34 reload(common)
35
36 # These modules come from scripts/master, which must be in the PYTHONPATH.
37 import build_utils
38 import chromium_step
39 import master_utils
40 from master.factory import nacl_factory
41 from master.factory import gclient_factory
42 import slaves_list
43
44 # These modules come from scripts/common, which must be in the PYTHONPATH.
45 import chromium_config as config
46 import chromium_utils
47
48 ActiveMaster = config.Master.NativeClientPPAPI
49
50 TREE_GATE_KEEPER = ActiveMaster.is_production_host
51
52 # This is the dictionary that the buildmaster pays attention to. We also use
53 # a shorter alias to save typing.
54 c = BuildmasterConfig = {}
55
56 # 'slavePortnum' defines the TCP port to listen on. This must match the value
57 # configured into the buildslaves (with their --master option)
58 c['slavePortnum'] = ActiveMaster.slave_port
59
60
61 ####### CHANGESOURCES
62
63 # the 'change_source' list tells the buildmaster how it should find out about
64 # source code changes. Any class which implements IChangeSource can be added
65 # to this list: there are several in buildbot/changes/*.py to choose from.
66 def NativeClientTreeFileSplitter(path):
67 return ('ppapi', path)
68
69 # Polls config.Master.nacl_trunk_url for changes
70 trunk_poller = svnpoller.SVNPoller(
71 svnurl='http://ppapi.googlecode.com/svn/trunk',
72 split_file=NativeClientTreeFileSplitter,
73 pollinterval=10)
74
75 c['change_source'] = [trunk_poller]
76
77
78 ####### BUILDERS
79
80 # buildbot/process/factory.py provides several BuildFactory classes you can
81 # start with, which implement build processes for common targets (GNU
82 # autoconf projects, CPAN perl modules, etc). The factory.BuildFactory is the
83 # base class, and is configured with a series of BuildSteps. When the build
84 # is run, the appropriate buildslave is told to execute each Step in turn.
85
86 # the first BuildStep is typically responsible for obtaining a copy of the
87 # sources. There are source-obtaining Steps in buildbot/process/step.py for
88 # CVS, SVN, and others.
89
90
91 # ----------------------------------------------------------------------------
92 # FACTORIES
93
94 m_linux = nacl_factory.NativeClientFactory(
95 'native_client', 'linux2', use_supplement=True,
96 custom_deps_list = [
97 ('ppapi', 'http://ppapi.googlecode.com/svn/trunk'),
98 ],
99 )
100 # Add an extra frivilous checkout of part of ppapi so console view can make
101 # sense of the world.
102 m_linux._solutions.insert(0, gclient_factory.GClientSolution(
103 'http://ppapi.googlecode.com/svn/trunk/c', name='console_junk'))
104
105
106 # Some shortcut to simplify the code below.
107 F_LINUX = m_linux.NativeClientFactory
108
109
110 # The identifier of the factory is the build configuration. If two factories
111 # are using the same build configuration, they should have the same identifier.
112
113 factories = []
114
115 # Linux
116 ver = 'lucid'
117 for mode in ('dbg', 'opt'):
118 name = 'lucid64-m32-n32-%s' % mode
119 tests = [
120 'nacl_small_tests',
121 'nacl_medium_tests',
122 'nacl_large_tests',
123 'nacl_selenium',
124 ]
125 factories.append([name, '1Lucid', F_LINUX(name, clobber=True,
126 target='%s-linux,nacl,doc' % mode,
127 tests=tests,
128 options=nacl_factory.generic_m32_n32_options,
129 factory_properties={'archive_build': False})])
130
131
132 ####### SCHEDULERS
133 ## configure the Schedulers
134 # Main scheduler for all changes in trunk.
135 primary_builders = []
136 for f in factories:
137 primary_builders.append(f[0])
138 s_nacl = Scheduler(
139 name='nacl',
140 branch='ppapi',
141 treeStableTimer=60,
142 builderNames=primary_builders,
143 )
144
145 c['schedulers'] = [
146 s_nacl,
147 ]
148
149
150 # Setup a per slave lock to prevent more than one thing running at once on
151 # a single slave.
152 slave_lock = locks.SlaveLock('overload_lock', maxCount=1)
153
154
155
156 # ----------------------------------------------------------------------------
157 # BUILDER DEFINITIONS
158
159 # The 'builders' list defines the Builders. Each one is configured with a
160 # dictionary, using the following keys:
161 # name (required): the name used to describe this bilder
162 # slavename (required): which slave to use, must appear in c['slaves']
163 # builddir (required): which subdirectory to run the builder in
164 # factory (required): a BuildFactory to define how the build is run
165 # periodicBuildTime (optional): if set, force a build every N seconds
166 # category (optional): it is not used in the normal 'buildbot' meaning. It is
167 # used by gatekeeper to determine which steps it should
168 # look for to close the tree.
169 #
170
171 c['builders'] = []
172 slaves = slaves_list.SlavesList('slaves.cfg', 'NativeClientPPAPI')
173 for f in factories:
174 c['builders'].append({
175 'name': f[0],
176 'slavenames': slaves.GetSlavesName(builder=f[0]),
177 'builddir': f[0],
178 'factory': f[2],
179 'category': '%s' % f[1],
180 'locks': [slave_lock],
181 'auto_reboot': False,
182 })
183
184
185 ####### BUILDSLAVES
186
187 # The 'slaves' list defines the set of allowable buildslaves. List all the
188 # slaves registered to a builder. Remove dupes.
189 c['slaves'] = master_utils.AutoSetupSlaves(c['builders'],
190 config.Master.GetBotPassword())
191
192 # Make sure everything works together.
193 master_utils.VerifySetup(c, slaves)
194
195
196 ####### STATUS TARGETS
197
198 # Adds common status and tools to this master.
199 master_utils.AutoSetupMaster(c, ActiveMaster)
200
201 # Add more.
202
203 if TREE_GATE_KEEPER:
204 import gatekeeper
205 # This is the list of the builder categories and the corresponding critical
206 # steps. If one critical step fails, gatekeeper will close the tree
207 # automatically.
208 categories_steps = {
209 '': [
210 'update scripts', 'update',
211 'clobber', 'clobber_packages',
212 ],
213 'info': [],
214 'closer': [
215 'update scripts', 'update',
216 'clobber', 'clobber_packages', 'precompile', 'scons_compile',
217 'gyp_compile', 'gyp_tests', 'build_packages',
218 'cooking_tarball', 'selenium',
219 'small_tests', 'medium_tests', 'large_tests',
220 'hand_tests', 'smoke_tests',
221 'backup_plugin', 'install_plugin', 'start_vncserver',
222 'stop_vncserver', 'restore_plugin',
223 'archived_build', 'extract_archive', 'setting_acls',
224 ],
225 }
226 exclusions = { }
227 forgiving_steps = ['update scripts', 'update', 'svnkill', 'taskkill',
228 'archived_build', 'extract_archive', 'setting_acls'],
229 c['status'].append(gatekeeper.GateKeeper(
230 fromaddr=ActiveMaster.from_address,
231 categories_steps=categories_steps,
232 exclusions=exclusions,
233 relayhost=config.Master.smtp,
234 subject='buildbot %(result)s in %(projectName)s on %(builder)s, '
235 'revision %(revision)s',
236 extraRecipients=ActiveMaster.tree_closing_notification_recipients,
237 tree_status_url=ActiveMaster.tree_status_url,
238 lookup='google.com',
239 forgiving_steps=forgiving_steps))
240
241
242 ####### PROJECT IDENTITY
243
244 # the 'projectName' string will be used to describe the project that this
245 # buildbot is working on. For example, it is used as the title of the
246 # waterfall HTML page. The 'projectURL' string will be used to provide a link
247 # from buildbot HTML pages to your project's home page.
248
249 c['projectName'] = ActiveMaster.project_name
250 c['projectURL'] = config.Master.project_url
251
252 # the 'buildbotURL' string should point to the location where the buildbot's
253 # internal web server (usually the html.Waterfall page) is visible. This
254 # typically uses the port number set in the Waterfall 'status' entry, but
255 # with an externally-visible host name which the buildbot cannot figure out
256 # without some help.
257
258 c['buildbotURL'] = 'http://buildbot.jail.google.com/buildbot/nacl/'
259
OLDNEW
« no previous file with comments | « master.nacl.ppapi/buildbot.tac ('k') | master.nacl.ppapi/public_html/announce.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698