OLD | NEW |
1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2012 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 # These modules come from scripts/master, which must be in the PYTHONPATH. | 5 # These modules come from scripts/master, which must be in the PYTHONPATH. |
6 from master import master_utils | 6 from master import master_utils |
7 from master import slaves_list | 7 from master import slaves_list |
8 | 8 |
9 import config | 9 import config |
10 | 10 |
11 ActiveMaster = config.Master.ChromiumMemory | 11 ActiveMaster = config.Master.ChromiumMemory |
12 | 12 |
13 # Only the production Chromium Buildbot acts as the tree gatekeeper. | 13 # Only the production Chromium Buildbot acts as the tree gatekeeper. |
14 TREE_GATE_KEEPER = ActiveMaster.is_production_host | 14 TREE_GATE_KEEPER = ActiveMaster.is_production_host |
15 | 15 |
16 c = BuildmasterConfig = {} | 16 c = BuildmasterConfig = {} |
17 c['change_source'] = [] | 17 c['change_source'] = [] |
18 c['schedulers'] = [] | 18 c['schedulers'] = [] |
19 c['builders'] = [] | 19 c['builders'] = [] |
20 c['status'] = [] | 20 c['status'] = [] |
21 | 21 |
22 config.DatabaseSetup(c, require_dbconfig=ActiveMaster.is_production_host) | 22 config.DatabaseSetup(c, require_dbconfig=ActiveMaster.is_production_host) |
23 | 23 |
24 import master_source_cfg | 24 import master_source_cfg |
25 import master_linux_cfg | 25 import master_linux_cfg |
26 import master_mac_cfg | 26 import master_mac_cfg |
27 import master_chromeos_cfg | 27 import master_chromeos_cfg |
| 28 import master_win_cfg |
28 | 29 |
29 master_source_cfg.Update(config, ActiveMaster, c) | 30 master_source_cfg.Update(config, ActiveMaster, c) |
30 master_linux_cfg.Update(config, ActiveMaster, c) | 31 master_linux_cfg.Update(config, ActiveMaster, c) |
31 master_mac_cfg.Update(config, ActiveMaster, c) | 32 master_mac_cfg.Update(config, ActiveMaster, c) |
32 master_chromeos_cfg.Update(config, ActiveMaster, c) | 33 master_chromeos_cfg.Update(config, ActiveMaster, c) |
| 34 master_win_cfg.Update(config, ActiveMaster, c) |
33 | 35 |
34 if TREE_GATE_KEEPER: | 36 if TREE_GATE_KEEPER: |
35 import master_gatekeeper_cfg | 37 import master_gatekeeper_cfg |
36 master_gatekeeper_cfg.Update(config, ActiveMaster, c) | 38 master_gatekeeper_cfg.Update(config, ActiveMaster, c) |
37 | 39 |
38 c['logCompressionLimit'] = False | 40 c['logCompressionLimit'] = False |
39 c['projectName'] = ActiveMaster.project_name | 41 c['projectName'] = ActiveMaster.project_name |
40 c['projectURL'] = config.Master.project_url | 42 c['projectURL'] = config.Master.project_url |
41 c['buildbotURL'] = 'http://build.chromium.org/p/chromium.memory/' | 43 c['buildbotURL'] = 'http://build.chromium.org/p/chromium.memory/' |
42 | 44 |
43 # Associate the slaves to the manual builders. The configuration is in | 45 # Associate the slaves to the manual builders. The configuration is in |
44 # slaves.cfg. | 46 # slaves.cfg. |
45 slaves = slaves_list.SlavesList('slaves.cfg', 'ChromiumMemory') | 47 slaves = slaves_list.SlavesList('slaves.cfg', 'ChromiumMemory') |
46 for builder in c['builders']: | 48 for builder in c['builders']: |
47 builder['slavenames'] = slaves.GetSlavesName(builder=builder['name']) | 49 builder['slavenames'] = slaves.GetSlavesName(builder=builder['name']) |
48 | 50 |
49 # The 'slaves' list defines the set of allowable buildslaves. List all the | 51 # The 'slaves' list defines the set of allowable buildslaves. List all the |
50 # slaves registered to a builder. Remove dupes. | 52 # slaves registered to a builder. Remove dupes. |
51 c['slaves'] = master_utils.AutoSetupSlaves( | 53 c['slaves'] = master_utils.AutoSetupSlaves( |
52 c['builders'], | 54 c['builders'], |
53 config.Master.GetBotPassword(), | 55 config.Master.GetBotPassword(), |
54 missing_recipients=['buildbot@chromium-build-health.appspotmail.com']) | 56 missing_recipients=['buildbot@chromium-build-health.appspotmail.com']) |
55 master_utils.VerifySetup(c, slaves) | 57 master_utils.VerifySetup(c, slaves) |
56 | 58 |
57 # Adds common status and tools to this master. | 59 # Adds common status and tools to this master. |
58 master_utils.AutoSetupMaster(c, ActiveMaster, | 60 master_utils.AutoSetupMaster(c, ActiveMaster, |
59 public_html='../master.chromium/public_html', | 61 public_html='../master.chromium/public_html', |
60 templates=['../master.chromium/templates'], | 62 templates=['../master.chromium/templates'], |
61 enable_http_status_push=ActiveMaster.is_production_host) | 63 enable_http_status_push=ActiveMaster.is_production_host) |
OLD | NEW |