| 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 import master_site_config | 10 import master_site_config |
| 11 ActiveMaster = master_site_config.ChromiumWebRTCFYI | 11 ActiveMaster = master_site_config.ChromiumWebRTCFYI |
| 12 | 12 |
| 13 c = BuildmasterConfig = {} | 13 c = BuildmasterConfig = {} |
| 14 c['change_source'] = [] | 14 c['change_source'] = [] |
| 15 c['schedulers'] = [] | 15 c['schedulers'] = [] |
| 16 c['builders'] = [] | 16 c['builders'] = [] |
| 17 c['status'] = [] | 17 c['status'] = [] |
| 18 | 18 |
| 19 config.DatabaseSetup(c, require_dbconfig=ActiveMaster.is_production_host) | 19 config.DatabaseSetup(c, require_dbconfig=ActiveMaster.is_production_host) |
| 20 | 20 |
| 21 import master_source_cfg | 21 import master_source_cfg |
| 22 import master_win_cfg | 22 import master_win_cfg |
| 23 import master_mac_cfg | 23 import master_mac_cfg |
| 24 import master_linux_cfg | 24 import master_linux_cfg |
| 25 import master_android_cfg |
| 25 import master_cros_cfg | 26 import master_cros_cfg |
| 26 | 27 |
| 27 master_source_cfg.Update(config, c) | 28 master_source_cfg.Update(config, c) |
| 28 master_win_cfg.Update(config, ActiveMaster, c) | 29 master_win_cfg.Update(config, ActiveMaster, c) |
| 29 master_mac_cfg.Update(config, ActiveMaster, c) | 30 master_mac_cfg.Update(config, ActiveMaster, c) |
| 30 master_linux_cfg.Update(config, ActiveMaster, c) | 31 master_linux_cfg.Update(config, ActiveMaster, c) |
| 32 master_android_cfg.Update(config, ActiveMaster, c) |
| 31 master_cros_cfg.Update(config, ActiveMaster, c) | 33 master_cros_cfg.Update(config, ActiveMaster, c) |
| 32 | 34 |
| 33 c['buildbotURL'] = 'http://build.chromium.org/p/chromium.webrtc.fyi/' | 35 c['buildbotURL'] = 'http://build.chromium.org/p/chromium.webrtc.fyi/' |
| 34 | 36 |
| 35 # Associate the slaves to the manual builders. The configuration is in | 37 # Associate the slaves to the manual builders. The configuration is in |
| 36 # slaves.cfg. | 38 # slaves.cfg. |
| 37 slaves = slaves_list.SlavesList('slaves.cfg', 'ChromiumWebRTCFYI') | 39 slaves = slaves_list.SlavesList('slaves.cfg', 'ChromiumWebRTCFYI') |
| 38 for builder in c['builders']: | 40 for builder in c['builders']: |
| 39 builder['slavenames'] = slaves.GetSlavesName(builder=builder['name']) | 41 builder['slavenames'] = slaves.GetSlavesName(builder=builder['name']) |
| 40 # Disable auto_reboot when testing locally, but don't change for production. | 42 # Disable auto_reboot when testing locally, but don't change for production. |
| (...skipping 24 matching lines...) Expand all Loading... |
| 65 extraRecipients=[ActiveMaster.from_address], | 67 extraRecipients=[ActiveMaster.from_address], |
| 66 mode='problem', | 68 mode='problem', |
| 67 relayhost=config.Master.smtp)) | 69 relayhost=config.Master.smtp)) |
| 68 | 70 |
| 69 # Do it at the end to override values set by AutoSetupMaster, the default is | 71 # Do it at the end to override values set by AutoSetupMaster, the default is |
| 70 # too low. Must keep at least a few days worth of builds. | 72 # too low. Must keep at least a few days worth of builds. |
| 71 c['buildHorizon'] = 3000 | 73 c['buildHorizon'] = 3000 |
| 72 c['logHorizon'] = 3000 | 74 c['logHorizon'] = 3000 |
| 73 # Must be at least 2x the number of slaves. | 75 # Must be at least 2x the number of slaves. |
| 74 c['eventHorizon'] = 200 | 76 c['eventHorizon'] = 200 |
| OLD | NEW |