| 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.WebRTC | 11 ActiveMaster = master_site_config.WebRTC |
| 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 | 25 |
| 26 master_source_cfg.Update(config, c) | 26 master_source_cfg.Update(config, c) |
| 27 | 27 master_win_cfg.Update(c) |
| 28 svn_url = config.Master.webrtc_url | 28 master_mac_cfg.Update(c) |
| 29 master_win_cfg.ConfigureBuilders(c, svn_url=svn_url, branch='trunk') | 29 master_linux_cfg.Update(c) |
| 30 master_mac_cfg.ConfigureBuilders(c, svn_url=svn_url, branch='trunk') | |
| 31 master_linux_cfg.ConfigureBuilders(c, svn_url=svn_url, branch='trunk') | |
| 32 | 30 |
| 33 c['buildbotURL'] = 'http://build.chromium.org/p/client.webrtc/' | 31 c['buildbotURL'] = 'http://build.chromium.org/p/client.webrtc/' |
| 34 | 32 |
| 35 # Associate the slaves to the manual builders. The configuration is in | 33 # Associate the slaves to the manual builders. The configuration is in |
| 36 # slaves.cfg. | 34 # slaves.cfg. |
| 37 slaves = slaves_list.SlavesList('slaves.cfg', 'WebRTC') | 35 slaves = slaves_list.SlavesList('slaves.cfg', 'WebRTC') |
| 38 for builder in c['builders']: | 36 for builder in c['builders']: |
| 39 builder['slavenames'] = slaves.GetSlavesName(builder=builder['name']) | 37 builder['slavenames'] = slaves.GetSlavesName(builder=builder['name']) |
| 40 # Don't enable auto_reboot for people testing locally. | 38 # Don't enable auto_reboot for people testing locally. |
| 41 builder.setdefault('auto_reboot', ActiveMaster.is_production_host) | 39 builder.setdefault('auto_reboot', ActiveMaster.is_production_host) |
| (...skipping 14 matching lines...) Expand all Loading... |
| 56 public_html='../master.chromium/public_html', | 54 public_html='../master.chromium/public_html', |
| 57 templates=['./templates', '../master.chromium/templates'], | 55 templates=['./templates', '../master.chromium/templates'], |
| 58 enable_http_status_push=ActiveMaster.is_production_host) | 56 enable_http_status_push=ActiveMaster.is_production_host) |
| 59 | 57 |
| 60 # Do it at the end to override values set by AutoSetupMaster, the default is | 58 # Do it at the end to override values set by AutoSetupMaster, the default is |
| 61 # too low. Must keep at least a few days worth of builds. | 59 # too low. Must keep at least a few days worth of builds. |
| 62 c['buildHorizon'] = 3000 | 60 c['buildHorizon'] = 3000 |
| 63 c['logHorizon'] = 3000 | 61 c['logHorizon'] = 3000 |
| 64 # Must be at least 2x the number of slaves. | 62 # Must be at least 2x the number of slaves. |
| 65 c['eventHorizon'] = 200 | 63 c['eventHorizon'] = 200 |
| OLD | NEW |