| OLD | NEW |
| 1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
| 2 # Copyright 2013 The Chromium Authors. All rights reserved. | 2 # Copyright 2013 The Chromium Authors. All rights reserved. |
| 3 # Use of this source code is governed by a BSD-style license that can be | 3 # Use of this source code is governed by a BSD-style license that can be |
| 4 # found in the LICENSE file. | 4 # found in the LICENSE file. |
| 5 | 5 |
| 6 import os | 6 import os |
| 7 | 7 |
| 8 from common import chromium_utils | 8 from common import chromium_utils |
| 9 | 9 |
| 10 from master import master_utils | 10 from master import master_utils |
| 11 from master import slaves_list | 11 from master import slaves_list |
| 12 from master.builders_pools import BuildersPools | 12 from master.builders_pools import BuildersPools |
| 13 from master.factory import annotator_factory | 13 from master.factory import annotator_factory |
| 14 from master.try_job_http import TryJobHTTP | 14 from master.try_job_http import TryJobHTTP |
| 15 | 15 |
| 16 import config | 16 import config |
| 17 import master_site_config | 17 import master_site_config |
| 18 | 18 |
| 19 ActiveMaster = master_site_config.V8TryServer | 19 ActiveMaster = master_site_config.V8TryServer |
| 20 MAIL_NOTIFIER = True | 20 MAIL_NOTIFIER = True |
| 21 LISTEN_TO_SVN = ActiveMaster.svn_url and ActiveMaster.is_production_host | 21 LISTEN_TO_SVN = ActiveMaster.svn_url and ActiveMaster.is_production_host |
| 22 | 22 |
| 23 # This is the dictionary that the buildmaster pays attention to. We also use | 23 # This is the dictionary that the buildmaster pays attention to. We also use |
| 24 # a shorter alias to save typing. | 24 # a shorter alias to save typing. |
| 25 c = BuildmasterConfig = {} | 25 c = BuildmasterConfig = {} |
| 26 c['status'] = [] | 26 c['status'] = [] |
| 27 | 27 |
| 28 ####### DATABASE | 28 ####### DATABASE |
| 29 config.DatabaseSetup(c, require_dbconfig=ActiveMaster.is_production_host) | 29 config.DatabaseSetup(c) |
| 30 | 30 |
| 31 ####### CHANGESOURCES | 31 ####### CHANGESOURCES |
| 32 c['change_source'] = [] | 32 c['change_source'] = [] |
| 33 | 33 |
| 34 # Avoid merging requests. | 34 # Avoid merging requests. |
| 35 c['mergeRequests'] = lambda *_: False | 35 c['mergeRequests'] = lambda *_: False |
| 36 | 36 |
| 37 m_annotator = annotator_factory.AnnotatorFactory(ActiveMaster) | 37 m_annotator = annotator_factory.AnnotatorFactory(ActiveMaster) |
| 38 | 38 |
| 39 # ---------------------------------------------------------------------------- | 39 # ---------------------------------------------------------------------------- |
| (...skipping 245 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 285 c['logHorizon'] = 2000 | 285 c['logHorizon'] = 2000 |
| 286 # Must be at least 2x the number of slaves. | 286 # Must be at least 2x the number of slaves. |
| 287 c['eventHorizon'] = 60 | 287 c['eventHorizon'] = 60 |
| 288 # Must be at least 2x the number of on-going builds. | 288 # Must be at least 2x the number of on-going builds. |
| 289 c['buildCacheSize'] = 60 | 289 c['buildCacheSize'] = 60 |
| 290 | 290 |
| 291 ####### PROJECT IDENTITY | 291 ####### PROJECT IDENTITY |
| 292 | 292 |
| 293 c['projectName'] = ActiveMaster.project_name | 293 c['projectName'] = ActiveMaster.project_name |
| 294 c['projectURL'] = config.Master.project_url | 294 c['projectURL'] = config.Master.project_url |
| OLD | NEW |