OLD | NEW |
1 # -*- python -*- | 1 # -*- python -*- |
2 # ex: set syntax=python: | 2 # ex: set syntax=python: |
3 | 3 |
4 # Copyright 2014 The Chromium Authors. All rights reserved. | 4 # Copyright 2014 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 | 8 |
9 from buildbot.scheduler import Dependent | 9 from buildbot.scheduler import Dependent |
10 from buildbot.scheduler import Scheduler | 10 from buildbot.scheduler import Scheduler |
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
114 c['builders'] = utils.get_builders_from_variants(variants, slaves, []) | 114 c['builders'] = utils.get_builders_from_variants(variants, slaves, []) |
115 | 115 |
116 ####### CHANGESOURCES | 116 ####### CHANGESOURCES |
117 | 117 |
118 # General trigger used to trigger all bots when we have a new sdk. | 118 # General trigger used to trigger all bots when we have a new sdk. |
119 c['change_source'] = [utils.get_github_poller('dart-lang', 'package-bots')] | 119 c['change_source'] = [utils.get_github_poller('dart-lang', 'package-bots')] |
120 | 120 |
121 poller = pub_poller.PubPoller(PUBLISHED_PACKAGE_NAMES, project='pub_packages') | 121 poller = pub_poller.PubPoller(PUBLISHED_PACKAGE_NAMES, project='pub_packages') |
122 c['change_source'].append(poller) | 122 c['change_source'].append(poller) |
123 | 123 |
| 124 interval = 300 |
124 for package in PACKAGES: | 125 for package in PACKAGES: |
| 126 interval += 7; |
| 127 if interval > 400: interval -= 100 |
125 if package.isGithubPackage() and package.run_tests: | 128 if package.isGithubPackage() and package.run_tests: |
126 c['change_source'].append( | 129 c['change_source'].append( |
127 utils.get_github_poller(package.github_project, package.github_repo)) | 130 utils.get_github_poller(package.github_project, package.github_repo, |
| 131 interval=interval)) |
128 for branch in package.extra_branches: | 132 for branch in package.extra_branches: |
129 c['change_source'].append( | 133 c['change_source'].append( |
130 utils.get_github_poller(package.github_project, package.github_repo, | 134 utils.get_github_poller(package.github_project, package.github_repo, |
131 branch)) | 135 branch, interval=interval)) |
132 | 136 |
133 ####### BUILDSLAVES | 137 ####### BUILDSLAVES |
134 | 138 |
135 c['slaves'] = utils.get_slaves(c['builders']) | 139 c['slaves'] = utils.get_slaves(c['builders']) |
136 | 140 |
137 # Make sure everything works together. | 141 # Make sure everything works together. |
138 master_utils.VerifySetup(c, slaves) | 142 master_utils.VerifySetup(c, slaves) |
139 | 143 |
140 # Prioritize the builders depending on channel. | 144 # Prioritize the builders depending on channel. |
141 c['prioritizeBuilders'] = utils.prioritize_builders | 145 c['prioritizeBuilders'] = utils.prioritize_builders |
(...skipping 28 matching lines...) Expand all Loading... |
170 }, | 174 }, |
171 ] | 175 ] |
172 | 176 |
173 for notifier in utils.get_mail_notifier_statuses(mail_notifiers): | 177 for notifier in utils.get_mail_notifier_statuses(mail_notifiers): |
174 c['status'].append(notifier) | 178 c['status'].append(notifier) |
175 | 179 |
176 # Keep last build logs, the default is too low. | 180 # Keep last build logs, the default is too low. |
177 c['buildHorizon'] = 1000 | 181 c['buildHorizon'] = 1000 |
178 c['logHorizon'] = 500 | 182 c['logHorizon'] = 500 |
179 # Must be at least 2x the number of slaves. | 183 # Must be at least 2x the number of slaves. |
180 c['eventHorizon'] = 200 | 184 c['eventHorizon'] = 600 |
181 | 185 |
182 # Template generation is using 40 entries, so give it a little extra. | 186 # Template generation is using 40 entries, so give it a little extra. |
183 c['buildCacheSize'] = 42 | 187 c['buildCacheSize'] = 42 |
184 | 188 |
185 c['properties'] = {'mastername': master_utils.GetMastername()} | 189 c['properties'] = {'mastername': master_utils.GetMastername()} |
186 | 190 |
187 ####### PROJECT IDENTITY | 191 ####### PROJECT IDENTITY |
188 | 192 |
189 # the 'projectName' string will be used to describe the project that this | 193 # the 'projectName' string will be used to describe the project that this |
190 # buildbot is working on. For example, it is used as the title of the | 194 # buildbot is working on. For example, it is used as the title of the |
191 # waterfall HTML page. The 'projectURL' string will be used to provide a link | 195 # waterfall HTML page. The 'projectURL' string will be used to provide a link |
192 # from buildbot HTML pages to your project's home page. | 196 # from buildbot HTML pages to your project's home page. |
193 | 197 |
194 c['projectName'] = ActiveMaster.project_name | 198 c['projectName'] = ActiveMaster.project_name |
195 c['projectURL'] = config.Master.project_url | 199 c['projectURL'] = config.Master.project_url |
196 | 200 |
197 # the 'buildbotURL' string should point to the location where the buildbot's | 201 # the 'buildbotURL' string should point to the location where the buildbot's |
198 # internal web server (usually the html.Waterfall page) is visible. This | 202 # internal web server (usually the html.Waterfall page) is visible. This |
199 # typically uses the port number set in the Waterfall 'status' entry, but | 203 # typically uses the port number set in the Waterfall 'status' entry, but |
200 # with an externally-visible host name which the buildbot cannot figure out | 204 # with an externally-visible host name which the buildbot cannot figure out |
201 # without some help. | 205 # without some help. |
202 | 206 |
203 c['buildbotURL'] = ActiveMaster.buildbot_url | 207 c['buildbotURL'] = ActiveMaster.buildbot_url |
OLD | NEW |