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

Side by Side Diff: masters/master.chromium.mojo/master.cfg

Issue 782043003: Add a new chromium.mojo master (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/build
Patch Set: Created 6 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
OLDNEW
1 # Copyright 2014 The Chromium Authors. All rights reserved. 1 # Copyright 2014 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 # This file is used by scripts/tools/buildbot-tool to generate master configs. 5 # This file was generated from
6 # scripts/tools/buildbot_tool_templates/master.cfg
7 # by scripts/tools/buildbot-tool.
8 # DO NOT EDIT BY HAND!
9
6 10
7 # These modules come from scripts/master, which must be in the PYTHONPATH. 11 # These modules come from scripts/master, which must be in the PYTHONPATH.
8 from master import master_utils 12 from master import master_utils
9 from master import slaves_list 13 from master import slaves_list
10 from master.factory import annotator_factory 14 from master.factory import annotator_factory
11 from buildbot.schedulers.basic import SingleBranchScheduler 15 from buildbot.schedulers.basic import SingleBranchScheduler
12 from buildbot.status.mail import MailNotifier 16 from buildbot.status.mail import MailNotifier
13 17
14 import config 18 import config
15 import master_site_config 19 import master_site_config
16 ActiveMaster = master_site_config.%(master_classname)s 20 ActiveMaster = master_site_config.ChromiumMojo
17 21
18 m_annotator = annotator_factory.AnnotatorFactory() 22 m_annotator = annotator_factory.AnnotatorFactory()
19 23
20 c = BuildmasterConfig = {} 24 c = BuildmasterConfig = {}
21 c['change_source'] = [] 25 c['change_source'] = []
22 c['schedulers'] = [] 26 c['schedulers'] = []
23 c['builders'] = [] 27 c['builders'] = []
24 c['status'] = [] 28 c['status'] = []
25 29
26 %(builders_block)s 30 c['builders'].append({
31 'name': 'Chromium Mojo Linux',
32 'factory': m_annotator.BaseFactory('chromium_mojo'),
33 'slavebuilddir': 'chromium_mojo'})
34
27 35
28 config.DatabaseSetup(c, require_dbconfig=ActiveMaster.is_production_host) 36 config.DatabaseSetup(c, require_dbconfig=ActiveMaster.is_production_host)
29 37
30 import master_source_cfg 38 import master_source_cfg
31 39
32 master_source_cfg.Update(config, ActiveMaster, c) 40 master_source_cfg.Update(config, ActiveMaster, c)
33 41
34 c['schedulers'].extend([ 42 c['schedulers'].extend([
35 SingleBranchScheduler(name='source', 43 SingleBranchScheduler(name='source',
36 branch='master', 44 branch='master',
37 treeStableTimer=60, 45 treeStableTimer=60,
38 builderNames=[b['name'] for b in c['builders']]) 46 builderNames=[b['name'] for b in c['builders']])
39 ]) 47 ])
40 48
41 c['logCompressionLimit'] = False 49 c['logCompressionLimit'] = False
42 c['projectName'] = ActiveMaster.project_name 50 c['projectName'] = ActiveMaster.project_name
43 c['projectURL'] = config.Master.project_url 51 c['projectURL'] = config.Master.project_url
44 # Must come before AutoSetupMaster(). 52 # Must come before AutoSetupMaster().
45 c['buildbotURL'] = ActiveMaster.buildbot_url 53 c['buildbotURL'] = ActiveMaster.buildbot_url
46 54
47 # Associate the slaves to the manual builders. The configuration is in 55 # Associate the slaves to the manual builders. The configuration is in
48 # slaves.cfg. 56 # slaves.cfg.
49 slaves = slaves_list.SlavesList('slaves.cfg', '%(master_classname)s') 57 slaves = slaves_list.SlavesList('slaves.cfg', 'ChromiumMojo')
50 for builder in c['builders']: 58 for builder in c['builders']:
51 builder['slavenames'] = slaves.GetSlavesName(builder=builder['name']) 59 builder['slavenames'] = slaves.GetSlavesName(builder=builder['name'])
52 60
53 # The 'slaves' list defines the set of allowable buildslaves. List all the 61 # The 'slaves' list defines the set of allowable buildslaves. List all the
54 # slaves registered to a builder. Remove dupes. 62 # slaves registered to a builder. Remove dupes.
55 c['slaves'] = master_utils.AutoSetupSlaves( 63 c['slaves'] = master_utils.AutoSetupSlaves(
56 c['builders'], 64 c['builders'],
57 config.Master.GetBotPassword(), 65 config.Master.GetBotPassword(),
58 missing_recipients=['buildbot@chromium-build-health.appspotmail.com']) 66 missing_recipients=['buildbot@chromium-build-health.appspotmail.com'])
59 master_utils.VerifySetup(c, slaves) 67 master_utils.VerifySetup(c, slaves)
60 68
61 # Adds common status and tools to this master. 69 # Adds common status and tools to this master.
62 master_utils.AutoSetupMaster(c, ActiveMaster, 70 master_utils.AutoSetupMaster(c, ActiveMaster,
63 public_html='../master.chromium/public_html', 71 public_html='../master.chromium/public_html',
64 templates=['../master.chromium/templates'], 72 templates=['../master.chromium/templates'],
65 tagComparator=getattr(c['change_source'][0], 'comparator', None), 73 tagComparator=getattr(c['change_source'][0], 'comparator', None),
66 enable_http_status_push=ActiveMaster.is_production_host) 74 enable_http_status_push=ActiveMaster.is_production_host)
67 75
68 c['status'].append(MailNotifier(fromaddr=ActiveMaster.from_address, 76 c['status'].append(MailNotifier(fromaddr=ActiveMaster.from_address,
69 mode='problem', 77 mode='problem',
70 relayhost=config.Master.smtp)) 78 relayhost=config.Master.smtp))
71 79
72 # Do it at the end to override values set by AutoSetupMaster, the default is 80 # Do it at the end to override values set by AutoSetupMaster, the default is
73 # too low. Must keep at least a few days worth of builds. 81 # too low. Must keep at least a few days worth of builds.
74 c['buildHorizon'] = 3000 82 c['buildHorizon'] = 3000
75 c['logHorizon'] = 3000 83 c['logHorizon'] = 3000
76 # Must be at least 2x the number of slaves. 84 # Must be at least 2x the number of slaves.
77 c['eventHorizon'] = 200 85 c['eventHorizon'] = 200
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698