| 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.WebRTC | 10 import master_site_config |
| 11 ActiveMaster = master_site_config.WebRTC |
| 11 | 12 |
| 12 c = BuildmasterConfig = {} | 13 c = BuildmasterConfig = {} |
| 13 c['change_source'] = [] | 14 c['change_source'] = [] |
| 14 c['schedulers'] = [] | 15 c['schedulers'] = [] |
| 15 c['builders'] = [] | 16 c['builders'] = [] |
| 16 c['status'] = [] | 17 c['status'] = [] |
| 17 | 18 |
| 18 config.DatabaseSetup(c, require_dbconfig=ActiveMaster.is_production_host) | 19 config.DatabaseSetup(c, require_dbconfig=ActiveMaster.is_production_host) |
| 19 | 20 |
| 20 import master_source_cfg | 21 import master_source_cfg |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 55 public_html='../master.chromium/public_html', | 56 public_html='../master.chromium/public_html', |
| 56 templates=['./templates', '../master.chromium/templates'], | 57 templates=['./templates', '../master.chromium/templates'], |
| 57 enable_http_status_push=ActiveMaster.is_production_host) | 58 enable_http_status_push=ActiveMaster.is_production_host) |
| 58 | 59 |
| 59 # Do it at the end to override values set by AutoSetupMaster, the default is | 60 # Do it at the end to override values set by AutoSetupMaster, the default is |
| 60 # too low. Must keep at least a few days worth of builds. | 61 # too low. Must keep at least a few days worth of builds. |
| 61 c['buildHorizon'] = 3000 | 62 c['buildHorizon'] = 3000 |
| 62 c['logHorizon'] = 3000 | 63 c['logHorizon'] = 3000 |
| 63 # Must be at least 2x the number of slaves. | 64 # Must be at least 2x the number of slaves. |
| 64 c['eventHorizon'] = 200 | 65 c['eventHorizon'] = 200 |
| OLD | NEW |