| OLD | NEW |
| 1 # -*- python -*- | 1 # -*- python -*- |
| 2 # ex: set syntax=python: | 2 # ex: set syntax=python: |
| 3 | 3 |
| 4 # Copyright 2016 The Chromium Authors. All rights reserved. | 4 # Copyright 2016 The Chromium Authors. All rights reserved. |
| 5 # Use of this source code is governed by a BSD-style license that can be | 5 # Use of this source code is governed by a BSD-style license that can be |
| 6 # found in the LICENSE file. | 6 # found in the LICENSE file. |
| 7 | 7 |
| 8 from buildbot.schedulers.basic import SingleBranchScheduler | 8 from buildbot.schedulers.basic import SingleBranchScheduler |
| 9 | 9 |
| 10 from master import gitiles_poller | 10 from master import gitiles_poller |
| 11 from master import master_utils | 11 from master import master_utils |
| 12 from master import slaves_list | 12 from master import slaves_list |
| 13 from master.factory import annotator_factory | 13 from master.factory import annotator_factory |
| 14 | 14 |
| 15 import config | 15 import config |
| 16 import master_site_config | 16 import master_site_config |
| 17 | 17 |
| 18 ActiveMaster = master_site_config.V8Ports | 18 ActiveMaster = master_site_config.V8Ports |
| 19 MAIL_NOTIFIER = ActiveMaster.is_production_host | 19 MAIL_NOTIFIER = ActiveMaster.is_production_host |
| 20 | 20 |
| 21 # This is the dictionary that the buildmaster pays attention to. We also use | 21 # This is the dictionary that the buildmaster pays attention to. We also use |
| 22 # a shorter alias to save typing. | 22 # a shorter alias to save typing. |
| 23 c = BuildmasterConfig = {} | 23 c = BuildmasterConfig = {} |
| 24 c['status'] = [] | 24 c['status'] = [] |
| 25 | 25 |
| 26 | 26 |
| 27 ####### DATABASE | 27 ####### DATABASE |
| 28 | 28 |
| 29 config.DatabaseSetup(c, require_dbconfig=ActiveMaster.is_production_host) | 29 config.DatabaseSetup(c) |
| 30 | 30 |
| 31 | 31 |
| 32 ####### CHANGESOURCES | 32 ####### CHANGESOURCES |
| 33 | 33 |
| 34 comparator = gitiles_poller.GitilesRevisionComparator() | 34 comparator = gitiles_poller.GitilesRevisionComparator() |
| 35 c['change_source'] = [ | 35 c['change_source'] = [ |
| 36 gitiles_poller.GitilesPoller( | 36 gitiles_poller.GitilesPoller( |
| 37 'https://chromium.googlesource.com/v8/v8', | 37 'https://chromium.googlesource.com/v8/v8', |
| 38 branches=['master'], | 38 branches=['master'], |
| 39 pollInterval=20, | 39 pollInterval=20, |
| (...skipping 233 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 273 mail_notifier_cfg.Update(config, ActiveMaster, c) | 273 mail_notifier_cfg.Update(config, ActiveMaster, c) |
| 274 | 274 |
| 275 # Adjust the buildCaches to be 3x the number of slaves per builder. | 275 # Adjust the buildCaches to be 3x the number of slaves per builder. |
| 276 c['autoBuildCacheRatio'] = 3 | 276 c['autoBuildCacheRatio'] = 3 |
| 277 | 277 |
| 278 | 278 |
| 279 ####### PROJECT IDENTITY | 279 ####### PROJECT IDENTITY |
| 280 | 280 |
| 281 c['projectName'] = ActiveMaster.project_name | 281 c['projectName'] = ActiveMaster.project_name |
| 282 c['projectURL'] = config.Master.project_url | 282 c['projectURL'] = config.Master.project_url |
| OLD | NEW |