| OLD | NEW |
| 1 # -*- python -*- | 1 # -*- python -*- |
| 2 # ex: set syntax=python: | 2 # ex: set syntax=python: |
| 3 | 3 |
| 4 # Copyright 2016 The Chromium Authors. All rights reserved. | 4 # Copyright 2016 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.schedulers.basic import SingleBranchScheduler | 8 from buildbot.schedulers.basic import SingleBranchScheduler |
| 9 | 9 |
| 10 from master import gitiles_poller | 10 from master import gitiles_poller |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 42 ] | 42 ] |
| 43 | 43 |
| 44 | 44 |
| 45 ####### FACTORIES | 45 ####### FACTORIES |
| 46 | 46 |
| 47 F = annotator_factory.AnnotatorFactory().BaseFactory | 47 F = annotator_factory.AnnotatorFactory().BaseFactory |
| 48 | 48 |
| 49 | 49 |
| 50 ####### BUILDER SPECS | 50 ####### BUILDER SPECS |
| 51 | 51 |
| 52 # TODO(machenbach): Add builders | 52 CATEGORY_X87 = '1X87|x87' |
| 53 scheduled_builders = [] | 53 |
| 54 scheduled_builders = [ |
| 55 { |
| 56 'name': 'V8 Linux - x87 - nosnap - debug builder', |
| 57 'factory': F('v8'), |
| 58 'category': CATEGORY_X87, |
| 59 'auto_reboot' : False, |
| 60 }, |
| 61 ] |
| 62 |
| 63 triggered_builders = [ |
| 64 { |
| 65 'name': 'V8 Linux - x87 - nosnap - debug', |
| 66 'factory': F('v8'), |
| 67 'category': CATEGORY_X87, |
| 68 'auto_reboot' : False, |
| 69 }, |
| 70 ] |
| 54 | 71 |
| 55 | 72 |
| 56 ####### SCHEDULERS | 73 ####### SCHEDULERS |
| 57 | 74 |
| 58 c['schedulers'] = [ | 75 c['schedulers'] = [ |
| 59 SingleBranchScheduler( | 76 SingleBranchScheduler( |
| 60 name='v8_ports', | 77 name='v8_ports', |
| 61 branch='master', | 78 branch='master', |
| 62 treeStableTimer=10, | 79 treeStableTimer=10, |
| 63 builderNames=[builder['name'] for builder in scheduled_builders], | 80 builderNames=[builder['name'] for builder in scheduled_builders], |
| 64 ), | 81 ), |
| 65 ] | 82 ] |
| 66 | 83 |
| 67 | 84 |
| 68 ####### BUILDERS | 85 ####### BUILDERS |
| 69 | 86 |
| 70 c['builders'] = ( | 87 c['builders'] = ( |
| 71 scheduled_builders | 88 scheduled_builders + |
| 89 triggered_builders |
| 72 ) | 90 ) |
| 73 | 91 |
| 74 # Associate the slaves to the builders. The configuration is in slaves.cfg. | 92 # Associate the slaves to the builders. The configuration is in slaves.cfg. |
| 75 slaves = slaves_list.SlavesList('slaves.cfg', 'V8Ports') | 93 slaves = slaves_list.SlavesList('slaves.cfg', 'V8Ports') |
| 76 for builder in c['builders']: | 94 for builder in c['builders']: |
| 77 builder['slavenames'] = slaves.GetSlavesName(builder=builder['name']) | 95 builder['slavenames'] = slaves.GetSlavesName(builder=builder['name']) |
| 78 | 96 |
| 79 | 97 |
| 80 ####### BUILDSLAVES | 98 ####### BUILDSLAVES |
| 81 | 99 |
| (...skipping 24 matching lines...) Expand all Loading... |
| 106 mail_notifier_cfg.Update(config, ActiveMaster, c) | 124 mail_notifier_cfg.Update(config, ActiveMaster, c) |
| 107 | 125 |
| 108 # Adjust the buildCaches to be 3x the number of slaves per builder. | 126 # Adjust the buildCaches to be 3x the number of slaves per builder. |
| 109 c['autoBuildCacheRatio'] = 3 | 127 c['autoBuildCacheRatio'] = 3 |
| 110 | 128 |
| 111 | 129 |
| 112 ####### PROJECT IDENTITY | 130 ####### PROJECT IDENTITY |
| 113 | 131 |
| 114 c['projectName'] = ActiveMaster.project_name | 132 c['projectName'] = ActiveMaster.project_name |
| 115 c['projectURL'] = config.Master.project_url | 133 c['projectURL'] = config.Master.project_url |
| OLD | NEW |