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 import ast | 5 import ast |
6 import os | 6 import os |
7 | 7 |
8 from buildbot.schedulers.basic import SingleBranchScheduler | 8 from buildbot.schedulers.basic import SingleBranchScheduler |
9 from buildbot.status.mail import MailNotifier | 9 from buildbot.status.mail import MailNotifier |
10 | 10 |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
57 c, | 57 c, |
58 require_dbconfig=active_master_cls.is_production_host) | 58 require_dbconfig=active_master_cls.is_production_host) |
59 | 59 |
60 change_source = gitiles_poller.GitilesPoller(builders['git_repo_url']) | 60 change_source = gitiles_poller.GitilesPoller(builders['git_repo_url']) |
61 c['change_source'] = [change_source] | 61 c['change_source'] = [change_source] |
62 | 62 |
63 c['builders'] = [] | 63 c['builders'] = [] |
64 for builder_name, builder_data in builders['builders'].items(): | 64 for builder_name, builder_data in builders['builders'].items(): |
65 c['builders'].append({ | 65 c['builders'].append({ |
66 'name': builder_name, | 66 'name': builder_name, |
67 'factory': m_annotator.BaseFactory(builder_data['recipe']), | 67 'factory': m_annotator.BaseFactory(), |
68 'slavebuilddir': builder_data['slavebuilddir'], | 68 'slavebuilddir': builder_data['slavebuilddir'], |
69 'slavenames': chromium_utils.GetSlaveNamesForBuilder(builders, | 69 'slavenames': chromium_utils.GetSlaveNamesForBuilder(builders, |
70 builder_name), | 70 builder_name), |
71 }) | 71 }) |
72 | 72 |
73 c['schedulers'] = [ | 73 c['schedulers'] = [ |
74 SingleBranchScheduler(name='source', | 74 SingleBranchScheduler(name='source', |
75 branch='master', | 75 branch='master', |
76 treeStableTimer=60, | 76 treeStableTimer=60, |
77 builderNames=[b['name'] for b in c['builders']]) | 77 builderNames=[b['name'] for b in c['builders']]) |
(...skipping 20 matching lines...) Expand all Loading... |
98 templates=builders['templates'], | 98 templates=builders['templates'], |
99 tagComparator=change_source.comparator, | 99 tagComparator=change_source.comparator, |
100 enable_http_status_push=active_master_cls.is_production_host) | 100 enable_http_status_push=active_master_cls.is_production_host) |
101 | 101 |
102 # TODO: AutoSetupMaster's settings for the following are too low to be | 102 # TODO: AutoSetupMaster's settings for the following are too low to be |
103 # useful for most projets. We should fix that. | 103 # useful for most projets. We should fix that. |
104 c['buildHorizon'] = 3000 | 104 c['buildHorizon'] = 3000 |
105 c['logHorizon'] = 3000 | 105 c['logHorizon'] = 3000 |
106 # Must be at least 2x the number of slaves. | 106 # Must be at least 2x the number of slaves. |
107 c['eventHorizon'] = 200 | 107 c['eventHorizon'] = 200 |
OLD | NEW |