| OLD | NEW |
| 1 # -*- python -*- | 1 # -*- python -*- |
| 2 # ex: set syntax=python: | 2 # ex: set syntax=python: |
| 3 | 3 |
| 4 # Copyright 2013 The Chromium Authors. All rights reserved. | 4 # Copyright 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 from buildbot.changes.filter import ChangeFilter | 8 from buildbot.changes.filter import ChangeFilter |
| 9 from buildbot.scheduler import Nightly | 9 from buildbot.scheduler import Nightly |
| 10 from buildbot.schedulers.basic import AnyBranchScheduler | 10 from buildbot.schedulers.basic import AnyBranchScheduler |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 66 builderNames=[ | 66 builderNames=[ |
| 67 'V8 Linux - stable branch', | 67 'V8 Linux - stable branch', |
| 68 'V8 Linux - stable branch - debug', | 68 'V8 Linux - stable branch - debug', |
| 69 'V8 Linux64 - stable branch', | 69 'V8 Linux64 - stable branch', |
| 70 'V8 Linux64 - stable branch - debug', | 70 'V8 Linux64 - stable branch - debug', |
| 71 'V8 arm - sim - stable branch', | 71 'V8 arm - sim - stable branch', |
| 72 'V8 arm - sim - stable branch - debug', | 72 'V8 arm - sim - stable branch - debug', |
| 73 'V8 mipsel - sim - stable branch', | 73 'V8 mipsel - sim - stable branch', |
| 74 'V8 mips64el - sim - stable branch', | 74 'V8 mips64el - sim - stable branch', |
| 75 'V8 ppc - sim - stable branch', | 75 'V8 ppc - sim - stable branch', |
| 76 'V8 ppc64 - sim - stable branch'], | 76 'V8 ppc64 - sim - stable branch', |
| 77 'V8 s390 - sim - stable branch', |
| 78 'V8 s390x - sim - stable branch'], |
| 77 ) | 79 ) |
| 78 | 80 |
| 79 s_v8_beta = SingleBranchScheduler( | 81 s_v8_beta = SingleBranchScheduler( |
| 80 name='v8_beta', | 82 name='v8_beta', |
| 81 branch=beta_branch, | 83 branch=beta_branch, |
| 82 treeStableTimer=10, | 84 treeStableTimer=10, |
| 83 builderNames=[ | 85 builderNames=[ |
| 84 'V8 Linux - beta branch', | 86 'V8 Linux - beta branch', |
| 85 'V8 Linux - beta branch - debug', | 87 'V8 Linux - beta branch - debug', |
| 86 'V8 Linux64 - beta branch', | 88 'V8 Linux64 - beta branch', |
| 87 'V8 Linux64 - beta branch - debug', | 89 'V8 Linux64 - beta branch - debug', |
| 88 'V8 arm - sim - beta branch', | 90 'V8 arm - sim - beta branch', |
| 89 'V8 arm - sim - beta branch - debug', | 91 'V8 arm - sim - beta branch - debug', |
| 90 'V8 mipsel - sim - beta branch', | 92 'V8 mipsel - sim - beta branch', |
| 91 'V8 mips64el - sim - beta branch', | 93 'V8 mips64el - sim - beta branch', |
| 92 'V8 ppc - sim - beta branch', | 94 'V8 ppc - sim - beta branch', |
| 93 'V8 ppc64 - sim - beta branch'], | 95 'V8 ppc64 - sim - beta branch', |
| 96 'V8 s390 - sim - beta branch', |
| 97 'V8 s390x - sim - beta branch'], |
| 94 ) | 98 ) |
| 95 | 99 |
| 96 s_v8_tag = AnyBranchScheduler( | 100 s_v8_tag = AnyBranchScheduler( |
| 97 name='v8_tag', | 101 name='v8_tag', |
| 98 change_filter=ChangeFilter(category='release'), | 102 change_filter=ChangeFilter(category='release'), |
| 99 treeStableTimer=600, | 103 treeStableTimer=600, |
| 100 builderNames=['Auto-tag'], | 104 builderNames=['Auto-tag'], |
| 101 ) | 105 ) |
| 102 | 106 |
| 103 c['schedulers'] = [s_v8_stable, s_v8_beta, s_v8_tag] | 107 c['schedulers'] = [s_v8_stable, s_v8_beta, s_v8_tag] |
| 104 | 108 |
| 105 builders = [] | 109 builders = [] |
| 106 | 110 |
| 107 # ---------------------------------------------------------------------------- | 111 # ---------------------------------------------------------------------------- |
| 108 # FACTORIES | 112 # FACTORIES |
| 109 | 113 |
| 110 m_annotator = annotator_factory.AnnotatorFactory() | 114 m_annotator = annotator_factory.AnnotatorFactory() |
| 111 | 115 |
| 112 # ---------------------------------------------------------------------------- | 116 # ---------------------------------------------------------------------------- |
| 113 # BUILDER DEFINITIONS | 117 # BUILDER DEFINITIONS |
| 114 | 118 |
| 115 CATEGORY_STABLE = '1Stable|release' | 119 CATEGORY_STABLE = '1Stable|release' |
| 116 CATEGORY_STABLE_MIPS = '1Stable|release|mips' | 120 CATEGORY_STABLE_MIPS = '1Stable|release|mips' |
| 117 CATEGORY_STABLE_PPC = '1Stable|release|ppc' | 121 CATEGORY_STABLE_PPC = '1Stable|release|ppc' |
| 122 CATEGORY_STABLE_S390 = '1Stable|release|s390' |
| 118 CATEGORY_BETA = '2Beta|release' | 123 CATEGORY_BETA = '2Beta|release' |
| 119 CATEGORY_BETA_MIPS = '2Beta|release|mips' | 124 CATEGORY_BETA_MIPS = '2Beta|release|mips' |
| 120 CATEGORY_BETA_PPC = '2Beta|release|ppc' | 125 CATEGORY_BETA_PPC = '2Beta|release|ppc' |
| 126 CATEGORY_BETA_S390 = '2Beta|release|s390' |
| 121 CATEGORY_TAG = '3Tag|tag' | 127 CATEGORY_TAG = '3Tag|tag' |
| 122 | 128 |
| 123 b_v8_linux_stable = { | 129 b_v8_linux_stable = { |
| 124 'name': 'V8 Linux - stable branch', | 130 'name': 'V8 Linux - stable branch', |
| 125 'builddir': 'v8-linux-stable', | 131 'builddir': 'v8-linux-stable', |
| 126 'factory': m_annotator.BaseFactory('v8'), | 132 'factory': m_annotator.BaseFactory('v8'), |
| 127 'category': CATEGORY_STABLE, | 133 'category': CATEGORY_STABLE, |
| 128 'auto_reboot' : False, | 134 'auto_reboot' : False, |
| 129 } | 135 } |
| 130 | 136 |
| (...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 273 } | 279 } |
| 274 | 280 |
| 275 b_v8_ppc64_beta = { | 281 b_v8_ppc64_beta = { |
| 276 'name': 'V8 ppc64 - sim - beta branch', | 282 'name': 'V8 ppc64 - sim - beta branch', |
| 277 'builddir': 'v8-ppc64-beta', | 283 'builddir': 'v8-ppc64-beta', |
| 278 'factory': m_annotator.BaseFactory('v8'), | 284 'factory': m_annotator.BaseFactory('v8'), |
| 279 'category': CATEGORY_BETA_PPC, | 285 'category': CATEGORY_BETA_PPC, |
| 280 'auto_reboot' : False, | 286 'auto_reboot' : False, |
| 281 } | 287 } |
| 282 | 288 |
| 289 b_v8_s390_stable = { |
| 290 'name': 'V8 s390 - sim - stable branch', |
| 291 'builddir': 'v8-s390-stable', |
| 292 'factory': m_annotator.BaseFactory('v8'), |
| 293 'category': CATEGORY_STABLE_S390, |
| 294 'auto_reboot' : False, |
| 295 } |
| 296 |
| 297 b_v8_s390_beta = { |
| 298 'name': 'V8 s390 - sim - beta branch', |
| 299 'builddir': 'v8-s390-beta', |
| 300 'factory': m_annotator.BaseFactory('v8'), |
| 301 'category': CATEGORY_STABLE_S390, |
| 302 'auto_reboot' : False, |
| 303 } |
| 304 |
| 305 b_v8_s390x_stable = { |
| 306 'name': 'V8 s390x - sim - stable branch', |
| 307 'builddir': 'v8-s390x-stable', |
| 308 'factory': m_annotator.BaseFactory('v8'), |
| 309 'category': CATEGORY_STABLE_S390, |
| 310 'auto_reboot' : False, |
| 311 } |
| 312 |
| 313 b_v8_s390x_beta = { |
| 314 'name': 'V8 s390x - sim - beta branch', |
| 315 'builddir': 'v8-s390x-beta', |
| 316 'factory': m_annotator.BaseFactory('v8'), |
| 317 'category': CATEGORY_STABLE_S390, |
| 318 'auto_reboot' : False, |
| 319 } |
| 320 |
| 283 b_v8_auto_tag = { | 321 b_v8_auto_tag = { |
| 284 'name': 'Auto-tag', | 322 'name': 'Auto-tag', |
| 285 'builddir': 'auto-tag', | 323 'builddir': 'auto-tag', |
| 286 'factory': m_annotator.BaseFactory('v8/auto_tag'), | 324 'factory': m_annotator.BaseFactory('v8/auto_tag'), |
| 287 'category': CATEGORY_TAG, | 325 'category': CATEGORY_TAG, |
| 288 'auto_reboot' : False, | 326 'auto_reboot' : False, |
| 289 } | 327 } |
| 290 | 328 |
| 291 c['builders'] = [b_v8_linux_stable, | 329 c['builders'] = [b_v8_linux_stable, |
| 292 b_v8_linux_stable_debug, | 330 b_v8_linux_stable_debug, |
| 293 b_v8_linux64_stable, | 331 b_v8_linux64_stable, |
| 294 b_v8_linux64_stable_debug, | 332 b_v8_linux64_stable_debug, |
| 295 b_v8_arm_stable, | 333 b_v8_arm_stable, |
| 296 b_v8_arm_stable_debug, | 334 b_v8_arm_stable_debug, |
| 297 b_v8_mipsel_stable, | 335 b_v8_mipsel_stable, |
| 298 b_v8_mips64el_stable, | 336 b_v8_mips64el_stable, |
| 299 b_v8_ppc_stable, | 337 b_v8_ppc_stable, |
| 300 b_v8_ppc64_stable, | 338 b_v8_ppc64_stable, |
| 339 b_v8_s390_stable, |
| 340 b_v8_s390x_stable, |
| 301 b_v8_linux_beta, | 341 b_v8_linux_beta, |
| 302 b_v8_linux_beta_debug, | 342 b_v8_linux_beta_debug, |
| 303 b_v8_linux64_beta, | 343 b_v8_linux64_beta, |
| 304 b_v8_linux64_beta_debug, | 344 b_v8_linux64_beta_debug, |
| 305 b_v8_arm_beta, | 345 b_v8_arm_beta, |
| 306 b_v8_arm_beta_debug, | 346 b_v8_arm_beta_debug, |
| 307 b_v8_mipsel_beta, | 347 b_v8_mipsel_beta, |
| 308 b_v8_mips64el_beta, | 348 b_v8_mips64el_beta, |
| 309 b_v8_ppc_beta, | 349 b_v8_ppc_beta, |
| 310 b_v8_ppc64_beta, | 350 b_v8_ppc64_beta, |
| 351 b_v8_s390_beta, |
| 352 b_v8_s390x_beta, |
| 311 b_v8_auto_tag] | 353 b_v8_auto_tag] |
| 312 | 354 |
| 313 # Associate the slaves to the builders. The configuration is in slaves.cfg. | 355 # Associate the slaves to the builders. The configuration is in slaves.cfg. |
| 314 slaves = slaves_list.SlavesList('slaves.cfg', 'V8Branches') | 356 slaves = slaves_list.SlavesList('slaves.cfg', 'V8Branches') |
| 315 for builder in c['builders']: | 357 for builder in c['builders']: |
| 316 builder['slavenames'] = slaves.GetSlavesName(builder=builder['name']) | 358 builder['slavenames'] = slaves.GetSlavesName(builder=builder['name']) |
| 317 | 359 |
| 318 | 360 |
| 319 ####### BUILDSLAVES | 361 ####### BUILDSLAVES |
| 320 | 362 |
| (...skipping 23 matching lines...) Expand all Loading... |
| 344 import mail_notifier_cfg | 386 import mail_notifier_cfg |
| 345 mail_notifier_cfg.Update(config, ActiveMaster, c) | 387 mail_notifier_cfg.Update(config, ActiveMaster, c) |
| 346 | 388 |
| 347 # Adjust the buildCaches to be 3x the number of slaves per builder. | 389 # Adjust the buildCaches to be 3x the number of slaves per builder. |
| 348 c['autoBuildCacheRatio'] = 3 | 390 c['autoBuildCacheRatio'] = 3 |
| 349 | 391 |
| 350 ####### PROJECT IDENTITY | 392 ####### PROJECT IDENTITY |
| 351 | 393 |
| 352 c['projectName'] = ActiveMaster.project_name | 394 c['projectName'] = ActiveMaster.project_name |
| 353 c['projectURL'] = config.Master.project_url | 395 c['projectURL'] = config.Master.project_url |
| OLD | NEW |