| 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 from buildbot.scheduler import Triggerable | 5 from buildbot.scheduler import Triggerable |
| 6 from buildbot.scheduler import Scheduler | 6 from buildbot.scheduler import Scheduler |
| 7 | 7 |
| 8 from common import chromium_utils | 8 from common import chromium_utils |
| 9 | 9 |
| 10 # These modules come from scripts/master, which must be in the PYTHONPATH. | 10 # These modules come from scripts/master, which must be in the PYTHONPATH. |
| 11 from master import gitiles_poller | 11 from master import gitiles_poller |
| 12 from master import master_config | 12 from master import master_config |
| 13 from master import master_utils | 13 from master import master_utils |
| 14 from master import slaves_list | 14 from master import slaves_list |
| 15 | 15 |
| 16 from master.factory import annotator_factory | 16 from master.factory import annotator_factory |
| 17 from master.factory import chromium_factory | 17 from master.factory import chromium_factory |
| 18 | 18 |
| 19 import config | 19 import config |
| 20 import master_site_config | 20 import master_site_config |
| 21 | 21 |
| 22 ActiveMaster = master_site_config.ChromiumMemoryFYI | 22 ActiveMaster = master_site_config.ChromiumMemoryFYI |
| 23 | 23 |
| 24 c = BuildmasterConfig = {} | 24 c = BuildmasterConfig = {} |
| 25 c['logCompressionLimit'] = False | 25 c['logCompressionLimit'] = False |
| 26 | 26 |
| 27 config.DatabaseSetup(c, require_dbconfig=ActiveMaster.is_production_host) | 27 config.DatabaseSetup(c) |
| 28 | 28 |
| 29 ####### CHANGESOURCES | 29 ####### CHANGESOURCES |
| 30 | 30 |
| 31 master_poller = gitiles_poller.GitilesPoller( | 31 master_poller = gitiles_poller.GitilesPoller( |
| 32 'https://chromium.googlesource.com/chromium/src') | 32 'https://chromium.googlesource.com/chromium/src') |
| 33 | 33 |
| 34 c['change_source'] = [master_poller] | 34 c['change_source'] = [master_poller] |
| 35 | 35 |
| 36 | 36 |
| 37 ####### SCHEDULERS | 37 ####### SCHEDULERS |
| (...skipping 683 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 721 # Adds common status and tools to this master. | 721 # Adds common status and tools to this master. |
| 722 master_utils.AutoSetupMaster(c, ActiveMaster, | 722 master_utils.AutoSetupMaster(c, ActiveMaster, |
| 723 public_html='../master.chromium/public_html', | 723 public_html='../master.chromium/public_html', |
| 724 templates=['../master.chromium/templates'], | 724 templates=['../master.chromium/templates'], |
| 725 tagComparator=master_poller.comparator, | 725 tagComparator=master_poller.comparator, |
| 726 enable_http_status_push=ActiveMaster.is_production_host) | 726 enable_http_status_push=ActiveMaster.is_production_host) |
| 727 | 727 |
| 728 if ActiveMaster.is_production_host: | 728 if ActiveMaster.is_production_host: |
| 729 import notifier_cfg | 729 import notifier_cfg |
| 730 notifier_cfg.Update(config, ActiveMaster, c) | 730 notifier_cfg.Update(config, ActiveMaster, c) |
| OLD | NEW |