| OLD | NEW |
| 1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 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 | 11 |
| 12 MASTER='ChromiumOSChromium' | 12 MASTER='ChromiumOSChromium' |
| 13 ActiveMaster = master_site_config.ChromiumOSChromium | 13 ActiveMaster = master_site_config.ChromiumOSChromium |
| 14 | 14 |
| 15 # Only the production Chromium Buildbot acts as the tree gatekeeper. | 15 # Only the production Chromium Buildbot acts as the tree gatekeeper. |
| 16 TREE_GATE_KEEPER = ActiveMaster.is_production_host | 16 TREE_GATE_KEEPER = ActiveMaster.is_production_host |
| 17 | 17 |
| 18 c = BuildmasterConfig = {} | 18 c = BuildmasterConfig = {} |
| 19 c['change_source'] = [] | 19 c['change_source'] = [] |
| 20 c['schedulers'] = [] | 20 c['schedulers'] = [] |
| 21 c['builders'] = [] | 21 c['builders'] = [] |
| 22 c['status'] = [] | 22 c['status'] = [] |
| 23 | 23 |
| 24 config.DatabaseSetup(c, require_dbconfig=ActiveMaster.is_production_host) | 24 config.DatabaseSetup(c) |
| 25 | 25 |
| 26 import master_source_cfg | 26 import master_source_cfg |
| 27 import master_chromium_cfg | 27 import master_chromium_cfg |
| 28 import master_asan_cfg | 28 import master_asan_cfg |
| 29 import master_perf_cfg | 29 import master_perf_cfg |
| 30 | 30 |
| 31 master_source_cfg.Update(config, ActiveMaster, c) | 31 master_source_cfg.Update(config, ActiveMaster, c) |
| 32 master_chromium_cfg.Update(config, ActiveMaster, c) | 32 master_chromium_cfg.Update(config, ActiveMaster, c) |
| 33 master_asan_cfg.Update(config, ActiveMaster, c) | 33 master_asan_cfg.Update(config, ActiveMaster, c) |
| 34 master_perf_cfg.Update(config, ActiveMaster, c) | 34 master_perf_cfg.Update(config, ActiveMaster, c) |
| (...skipping 20 matching lines...) Expand all Loading... |
| 55 c['builders'], | 55 c['builders'], |
| 56 config.Master.GetBotPassword()) | 56 config.Master.GetBotPassword()) |
| 57 master_utils.VerifySetup(c, slaves) | 57 master_utils.VerifySetup(c, slaves) |
| 58 | 58 |
| 59 # Adds common status and tools to this master. | 59 # Adds common status and tools to this master. |
| 60 master_utils.AutoSetupMaster(c, ActiveMaster, | 60 master_utils.AutoSetupMaster(c, ActiveMaster, |
| 61 public_html='../master.chromium/public_html', | 61 public_html='../master.chromium/public_html', |
| 62 templates=['../master.chromium/templates'], | 62 templates=['../master.chromium/templates'], |
| 63 tagComparator=getattr(c['change_source'][0], 'comparator', None), | 63 tagComparator=getattr(c['change_source'][0], 'comparator', None), |
| 64 enable_http_status_push=ActiveMaster.is_production_host) | 64 enable_http_status_push=ActiveMaster.is_production_host) |
| OLD | NEW |