| OLD | NEW |
| 1 # -*- python -*- | 1 # -*- python -*- |
| 2 # ex: set syntax=python: | 2 # ex: set syntax=python: |
| 3 | 3 |
| 4 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 4 # Copyright (c) 2012 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 import os | 8 import os |
| 9 import random | 9 import random |
| 10 import shutil | 10 import shutil |
| (...skipping 16 matching lines...) Expand all Loading... |
| 27 import chromiumos_tryserver_util | 27 import chromiumos_tryserver_util |
| 28 import config | 28 import config |
| 29 import master_site_config | 29 import master_site_config |
| 30 | 30 |
| 31 ActiveMaster = master_site_config.ChromiumOSTryServer | 31 ActiveMaster = master_site_config.ChromiumOSTryServer |
| 32 | 32 |
| 33 # This is the dictionary that the buildmaster pays attention to. We also use | 33 # This is the dictionary that the buildmaster pays attention to. We also use |
| 34 # a shorter alias to save typing. | 34 # a shorter alias to save typing. |
| 35 c = BuildmasterConfig = {} | 35 c = BuildmasterConfig = {} |
| 36 | 36 |
| 37 config.DatabaseSetup(c, require_dbconfig=ActiveMaster.is_production_host) | 37 config.DatabaseSetup(c) |
| 38 | 38 |
| 39 # Load our Cbuildbot configs. | 39 # Load our Cbuildbot configs. |
| 40 cbuildbot_configs = CbuildbotConfigs( | 40 cbuildbot_configs = CbuildbotConfigs( |
| 41 chromiumos_tryserver_util.configs, | 41 chromiumos_tryserver_util.configs, |
| 42 etc_builder='etc', | 42 etc_builder='etc', |
| 43 ) | 43 ) |
| 44 | 44 |
| 45 ####### BUILDBUCKET | 45 ####### BUILDBUCKET |
| 46 | 46 |
| 47 # Install BuildBucket hooks so we can add/enforce CrOS properties. | 47 # Install BuildBucket hooks so we can add/enforce CrOS properties. |
| (...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 213 get_info=_GetInfo, | 213 get_info=_GetInfo, |
| 214 relayhost=smtp_host, | 214 relayhost=smtp_host, |
| 215 lookup=master_utils.UsersAreEmails())) | 215 lookup=master_utils.UsersAreEmails())) |
| 216 | 216 |
| 217 # Do it at the end to override values set by AutoSetupMaster, the default is | 217 # Do it at the end to override values set by AutoSetupMaster, the default is |
| 218 # too low. Must keep at least a few days worth of builds. | 218 # too low. Must keep at least a few days worth of builds. |
| 219 c['buildHorizon'] = 3000 | 219 c['buildHorizon'] = 3000 |
| 220 c['logHorizon'] = 3000 | 220 c['logHorizon'] = 3000 |
| 221 # Must be at least 2x the number of slaves. | 221 # Must be at least 2x the number of slaves. |
| 222 c['eventHorizon'] = 200 | 222 c['eventHorizon'] = 200 |
| OLD | NEW |