| OLD | NEW |
| 1 # -*- python -*- | 1 # -*- python -*- |
| 2 # vim: ft=python: | 2 # vim: ft=python: |
| 3 | 3 |
| 4 # Copyright (c) 2013 The Chromium Authors. All rights reserved. | 4 # Copyright (c) 2013 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 | 9 |
| 10 from buildbot.scheduler import Nightly | 10 from buildbot.scheduler import Nightly |
| 11 | 11 |
| 12 from master import build_utils | 12 from master import build_utils |
| 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 from master.factory import annotator_factory | 15 from master.factory import annotator_factory |
| 16 | 16 |
| 17 import config | 17 import config |
| 18 import master_site_config | 18 import master_site_config |
| 19 | 19 |
| 20 ActiveMaster = master_site_config.Gatekeeper | 20 ActiveMaster = master_site_config.Gatekeeper |
| 21 | 21 |
| 22 MAIL_NOTIFIER = False | 22 MAIL_NOTIFIER = False |
| 23 | 23 |
| 24 c = BuildmasterConfig = {} | 24 c = BuildmasterConfig = {} |
| 25 | 25 |
| 26 c['slavePortnum'] = ActiveMaster.slave_port | 26 c['slavePortnum'] = ActiveMaster.slave_port |
| 27 | 27 |
| 28 config.DatabaseSetup(c, require_dbconfig=ActiveMaster.is_production_host) | 28 config.DatabaseSetup(c) |
| 29 | 29 |
| 30 ####### SCHEDULERS | 30 ####### SCHEDULERS |
| 31 | 31 |
| 32 # Actually 'Minutely' instead of 'Nightly.' It kicks off a run every minute. | 32 # Actually 'Minutely' instead of 'Nightly.' It kicks off a run every minute. |
| 33 s_chromium_gatekeeper = Nightly(name='gatekeeper', | 33 s_chromium_gatekeeper = Nightly(name='gatekeeper', |
| 34 branch=None, | 34 branch=None, |
| 35 minute='*', | 35 minute='*', |
| 36 builderNames=['Chromium Gatekeeper', | 36 builderNames=['Chromium Gatekeeper', |
| 37 'Chromium Gatekeeper Failure']) | 37 'Chromium Gatekeeper Failure']) |
| 38 | 38 |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 91 | 91 |
| 92 master_utils.AutoSetupMaster(c, ActiveMaster, MAIL_NOTIFIER) | 92 master_utils.AutoSetupMaster(c, ActiveMaster, MAIL_NOTIFIER) |
| 93 | 93 |
| 94 # Do it at the end to override values set by AutoSetupMaster, the default is | 94 # Do it at the end to override values set by AutoSetupMaster, the default is |
| 95 # too low. Must keep at least a few days worth of builds. | 95 # too low. Must keep at least a few days worth of builds. |
| 96 c['buildHorizon'] = 3000 | 96 c['buildHorizon'] = 3000 |
| 97 c['logHorizon'] = 3000 | 97 c['logHorizon'] = 3000 |
| 98 # Must be at least 2x the number of slaves. | 98 # Must be at least 2x the number of slaves. |
| 99 c['eventHorizon'] = 200 | 99 c['eventHorizon'] = 200 |
| 100 | 100 |
| OLD | NEW |