| 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 ActiveMaster = config.Master.ChromiumWebRTC | 10 ActiveMaster = config.Master.ChromiumWebRTCFYI |
| 11 | 11 |
| 12 c = BuildmasterConfig = {} | 12 c = BuildmasterConfig = {} |
| 13 c['change_source'] = [] | 13 c['change_source'] = [] |
| 14 c['schedulers'] = [] | 14 c['schedulers'] = [] |
| 15 c['builders'] = [] | 15 c['builders'] = [] |
| 16 c['status'] = [] | 16 c['status'] = [] |
| 17 | 17 |
| 18 config.DatabaseSetup(c, require_dbconfig=ActiveMaster.is_production_host) | 18 config.DatabaseSetup(c, require_dbconfig=ActiveMaster.is_production_host) |
| 19 | 19 |
| 20 import master_source_cfg | 20 import master_source_cfg |
| 21 import master_win_cfg | 21 import master_win_cfg |
| 22 import master_mac_cfg | 22 import master_mac_cfg |
| 23 import master_linux_cfg | 23 import master_linux_cfg |
| 24 import master_cros_cfg | 24 import master_cros_cfg |
| 25 | 25 |
| 26 master_source_cfg.Update(config, c) | 26 master_source_cfg.Update(config, c) |
| 27 master_win_cfg.Update(config, ActiveMaster, c) | 27 master_win_cfg.Update(config, ActiveMaster, c) |
| 28 master_mac_cfg.Update(config, ActiveMaster, c) | 28 master_mac_cfg.Update(config, ActiveMaster, c) |
| 29 master_linux_cfg.Update(config, ActiveMaster, c) | 29 master_linux_cfg.Update(config, ActiveMaster, c) |
| 30 master_cros_cfg.Update(config, ActiveMaster, c) | 30 master_cros_cfg.Update(config, ActiveMaster, c) |
| 31 | 31 |
| 32 c['buildbotURL'] = 'http://build.chromium.org/p/chromium.webrtc/' | 32 c['buildbotURL'] = 'http://build.chromium.org/p/chromium.webrtc.fyi/' |
| 33 | 33 |
| 34 # Associate the slaves to the manual builders. The configuration is in | 34 # Associate the slaves to the manual builders. The configuration is in |
| 35 # slaves.cfg. | 35 # slaves.cfg. |
| 36 slaves = slaves_list.SlavesList('slaves.cfg', 'ChromiumWebRTC') | 36 slaves = slaves_list.SlavesList('slaves.cfg', 'ChromiumWebRTCFYI') |
| 37 for builder in c['builders']: | 37 for builder in c['builders']: |
| 38 builder['slavenames'] = slaves.GetSlavesName(builder=builder['name']) | 38 builder['slavenames'] = slaves.GetSlavesName(builder=builder['name']) |
| 39 # Don't enable auto_reboot for our bots. | 39 # Don't enable auto_reboot for our bots. |
| 40 builder['auto_reboot'] = False | 40 builder['auto_reboot'] = False |
| 41 | 41 |
| 42 # The 'slaves' list defines the set of allowable buildslaves. List all the | 42 # The 'slaves' list defines the set of allowable buildslaves. List all the |
| 43 # slaves registered to a builder. Remove dupes. | 43 # slaves registered to a builder. Remove dupes. |
| 44 c['slaves'] = master_utils.AutoSetupSlaves( | 44 c['slaves'] = master_utils.AutoSetupSlaves( |
| 45 c['builders'], | 45 c['builders'], |
| 46 config.Master.GetBotPassword(), | 46 config.Master.GetBotPassword(), |
| 47 missing_recipients=['buildbot@chromium-build-health.appspotmail.com']) | 47 missing_recipients=['buildbot@chromium-build-health.appspotmail.com']) |
| 48 master_utils.VerifySetup(c, slaves) | 48 master_utils.VerifySetup(c, slaves) |
| 49 | 49 |
| 50 # Adds common status and tools to this master. | 50 # Adds common status and tools to this master. |
| 51 master_utils.AutoSetupMaster(c, ActiveMaster, mail_notifier=True, | 51 master_utils.AutoSetupMaster(c, ActiveMaster, mail_notifier=True, |
| 52 public_html='../master.chromium/public_html', | 52 public_html='../master.chromium/public_html', |
| 53 templates=['../master.client.webrtc/templates', | 53 templates=['../master.client.webrtc/templates', |
| 54 '../master.chromium/templates'], | 54 '../master.chromium/templates'], |
| 55 enable_http_status_push=ActiveMaster.is_production_host) | 55 enable_http_status_push=ActiveMaster.is_production_host) |
| OLD | NEW |