| OLD | NEW |
| 1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 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 # These modules come from scripts/master, which must be in the PYTHONPATH. | 5 # These modules come from scripts/master, which must be in the PYTHONPATH. |
| 6 from master import master_utils | 6 from master import master_utils |
| 7 from master import slaves_list | 7 from master import slaves_list |
| 8 from master.factory import annotator_factory | 8 from master.factory import annotator_factory |
| 9 from buildbot.schedulers.basic import SingleBranchScheduler | 9 from buildbot.schedulers.basic import SingleBranchScheduler |
| 10 from buildbot.status.mail import MailNotifier | 10 from buildbot.status.mail import MailNotifier |
| (...skipping 20 matching lines...) Expand all Loading... |
| 31 'Mojo Android Builder Tests (dbg)', | 31 'Mojo Android Builder Tests (dbg)', |
| 32 'Mojo Linux Perf'] | 32 'Mojo Linux Perf'] |
| 33 | 33 |
| 34 for builder_name in builders: | 34 for builder_name in builders: |
| 35 c['builders'].append({ | 35 c['builders'].append({ |
| 36 'name': builder_name, | 36 'name': builder_name, |
| 37 'factory': m_annotator.BaseFactory('mojo'), | 37 'factory': m_annotator.BaseFactory('mojo'), |
| 38 'slavebuilddir': 'mojo', | 38 'slavebuilddir': 'mojo', |
| 39 }) | 39 }) |
| 40 | 40 |
| 41 config.DatabaseSetup(c, require_dbconfig=ActiveMaster.is_production_host) | 41 config.DatabaseSetup(c) |
| 42 | 42 |
| 43 import master_source_cfg | 43 import master_source_cfg |
| 44 | 44 |
| 45 master_source_cfg.Update(config, ActiveMaster, c) | 45 master_source_cfg.Update(config, ActiveMaster, c) |
| 46 | 46 |
| 47 c['schedulers'].extend([ | 47 c['schedulers'].extend([ |
| 48 SingleBranchScheduler(name='source', | 48 SingleBranchScheduler(name='source', |
| 49 branch='master', | 49 branch='master', |
| 50 treeStableTimer=60, | 50 treeStableTimer=60, |
| 51 builderNames=builders) | 51 builderNames=builders) |
| (...skipping 28 matching lines...) Expand all Loading... |
| 80 c['status'].append(MailNotifier(fromaddr=ActiveMaster.from_address, | 80 c['status'].append(MailNotifier(fromaddr=ActiveMaster.from_address, |
| 81 mode='problem', | 81 mode='problem', |
| 82 relayhost=config.Master.smtp)) | 82 relayhost=config.Master.smtp)) |
| 83 | 83 |
| 84 # Do it at the end to override values set by AutoSetupMaster, the default is | 84 # Do it at the end to override values set by AutoSetupMaster, the default is |
| 85 # too low. Must keep at least a few days worth of builds. | 85 # too low. Must keep at least a few days worth of builds. |
| 86 c['buildHorizon'] = 3000 | 86 c['buildHorizon'] = 3000 |
| 87 c['logHorizon'] = 3000 | 87 c['logHorizon'] = 3000 |
| 88 # Must be at least 2x the number of slaves. | 88 # Must be at least 2x the number of slaves. |
| 89 c['eventHorizon'] = 200 | 89 c['eventHorizon'] = 200 |
| OLD | NEW |