| 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 | 5 |
| 6 """Skia-specific utilities for setting up build masters.""" | 6 """Skia-specific utilities for setting up build masters.""" |
| 7 | 7 |
| 8 | 8 |
| 9 from buildbot.changes import filter as change_filter | 9 from buildbot.changes import filter as change_filter |
| 10 from buildbot.scheduler import AnyBranchScheduler | 10 from buildbot.scheduler import AnyBranchScheduler |
| (...skipping 239 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 250 builder_dict['factory'] = factory | 250 builder_dict['factory'] = factory |
| 251 | 251 |
| 252 # Finished! | 252 # Finished! |
| 253 c['builders'] = builder_dicts | 253 c['builders'] = builder_dicts |
| 254 | 254 |
| 255 | 255 |
| 256 def SetupMaster(ActiveMaster): | 256 def SetupMaster(ActiveMaster): |
| 257 # Buildmaster config dict. | 257 # Buildmaster config dict. |
| 258 c = {} | 258 c = {} |
| 259 | 259 |
| 260 config.DatabaseSetup(c, require_dbconfig=ActiveMaster.is_production_host) | 260 config.DatabaseSetup(c) |
| 261 | 261 |
| 262 ####### CHANGESOURCES | 262 ####### CHANGESOURCES |
| 263 | 263 |
| 264 # Polls config.Master.trunk_url for changes | 264 # Polls config.Master.trunk_url for changes |
| 265 poller = GitilesPoller( | 265 poller = GitilesPoller( |
| 266 repo_url=ActiveMaster.repo_url, | 266 repo_url=ActiveMaster.repo_url, |
| 267 branches=[POLLING_BRANCH], | 267 branches=[POLLING_BRANCH], |
| 268 pollInterval=10, | 268 pollInterval=10, |
| 269 revlinktmpl='https://skia.googlesource.com/skia/+/%s') | 269 revlinktmpl='https://skia.googlesource.com/skia/+/%s') |
| 270 | 270 |
| (...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 336 c['mergeRequests'] = CanMergeBuildRequests | 336 c['mergeRequests'] = CanMergeBuildRequests |
| 337 | 337 |
| 338 ###### LOGS | 338 ###### LOGS |
| 339 | 339 |
| 340 # Skia bots have been known to have run away builds continously dumping to | 340 # Skia bots have been known to have run away builds continously dumping to |
| 341 # stdout and creating ~100GB logs. See crbug.com/589654 for context. | 341 # stdout and creating ~100GB logs. See crbug.com/589654 for context. |
| 342 c['logMaxSize'] = 1024 * 1024 * 100 # 100MB | 342 c['logMaxSize'] = 1024 * 1024 * 100 # 100MB |
| 343 c['logMaxTailSize'] = 1024 * 32 # 32KB | 343 c['logMaxTailSize'] = 1024 * 32 # 32KB |
| 344 | 344 |
| 345 return c | 345 return c |
| OLD | NEW |