| OLD | NEW |
| 1 # Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2011 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 | 11 |
| 11 ActiveMaster = config.Master.Omaha | 12 ActiveMaster = master_site_config.Omaha |
| 12 | 13 |
| 13 c = BuildmasterConfig = {} | 14 c = BuildmasterConfig = {} |
| 14 c['change_source'] = [] | 15 c['change_source'] = [] |
| 15 c['schedulers'] = [] | 16 c['schedulers'] = [] |
| 16 c['builders'] = [] | 17 c['builders'] = [] |
| 17 c['status'] = [] | 18 c['status'] = [] |
| 18 | 19 |
| 19 config.DatabaseSetup(c, require_dbconfig=ActiveMaster.is_production_host) | 20 config.DatabaseSetup(c, require_dbconfig=ActiveMaster.is_production_host) |
| 20 | 21 |
| 21 import master_source_cfg | 22 import master_source_cfg |
| (...skipping 17 matching lines...) Expand all Loading... |
| 39 # slaves registered to a builder. Remove dupes. | 40 # slaves registered to a builder. Remove dupes. |
| 40 c['slaves'] = master_utils.AutoSetupSlaves( | 41 c['slaves'] = master_utils.AutoSetupSlaves( |
| 41 c['builders'], | 42 c['builders'], |
| 42 config.Master.GetBotPassword(), | 43 config.Master.GetBotPassword(), |
| 43 missing_recipients=['buildbot@chromium-build-health.appspotmail.com']) | 44 missing_recipients=['buildbot@chromium-build-health.appspotmail.com']) |
| 44 master_utils.VerifySetup(c, slaves) | 45 master_utils.VerifySetup(c, slaves) |
| 45 | 46 |
| 46 # Adds common status and tools to this master. | 47 # Adds common status and tools to this master. |
| 47 master_utils.AutoSetupMaster(c, ActiveMaster, | 48 master_utils.AutoSetupMaster(c, ActiveMaster, |
| 48 enable_http_status_push=ActiveMaster.is_production_host) | 49 enable_http_status_push=ActiveMaster.is_production_host) |
| OLD | NEW |