OLD | NEW |
1 # Copyright 2012 The Chromium Authors. All rights reserved. | 1 # Copyright 2012 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 # This is the buildmaster config file for the 'chromium.perf' bot. It must | 5 # This is the buildmaster config file for the 'chromium.perf' bot. It must |
6 # be installed as 'master.cfg' in your buildmaster's base directory | 6 # be installed as 'master.cfg' in your buildmaster's base directory |
7 # (although the filename can be changed with the --basedir option to | 7 # (although the filename can be changed with the --basedir option to |
8 # 'mktap buildbot master'). | 8 # 'mktap buildbot master'). |
9 | 9 |
10 # It has one job: define a dictionary named BuildmasterConfig. This | 10 # It has one job: define a dictionary named BuildmasterConfig. This |
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
143 }) | 143 }) |
144 | 144 |
145 trigger_name = _TriggerName(platform, target_bits) | 145 trigger_name = _TriggerName(platform, target_bits) |
146 if trigger_name not in _trigger_testers: | 146 if trigger_name not in _trigger_testers: |
147 _trigger_testers[trigger_name] = [] | 147 _trigger_testers[trigger_name] = [] |
148 _trigger_testers[trigger_name].append(name) | 148 _trigger_testers[trigger_name].append(name) |
149 | 149 |
150 | 150 |
151 def _AddTester(name, platform, num_shards=1, target_bits=64): | 151 def _AddTester(name, platform, num_shards=1, target_bits=64): |
152 if platform == 'android': | 152 if platform == 'android': |
153 factory = m_remote_run('android/perf') | 153 factory = recipe_factory('android/perf') |
154 else: | 154 else: |
155 factory = m_remote_run('chromium') | 155 factory = m_remote_run('chromium') |
156 | 156 |
157 if num_shards == 1: | 157 if num_shards == 1: |
158 _AddTesterShard(name, factory, platform, target_bits) | 158 _AddTesterShard(name, factory, platform, target_bits) |
159 else: | 159 else: |
160 for index in xrange(num_shards): | 160 for index in xrange(num_shards): |
161 indexed_name = '%s (%d)' % (name, index + 1) | 161 indexed_name = '%s (%d)' % (name, index + 1) |
162 _AddTesterShard(indexed_name, factory, platform, target_bits) | 162 _AddTesterShard(indexed_name, factory, platform, target_bits) |
163 | 163 |
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
261 | 261 |
262 ####### PROJECT IDENTITY | 262 ####### PROJECT IDENTITY |
263 | 263 |
264 # the 'projectName' string will be used to describe the project that this | 264 # the 'projectName' string will be used to describe the project that this |
265 # buildbot is working on. For example, it is used as the title of the | 265 # buildbot is working on. For example, it is used as the title of the |
266 # waterfall HTML page. The 'projectURL' string will be used to provide a link | 266 # waterfall HTML page. The 'projectURL' string will be used to provide a link |
267 # from buildbot HTML pages to your project's home page. | 267 # from buildbot HTML pages to your project's home page. |
268 | 268 |
269 c['projectName'] = ActiveMaster.project_name | 269 c['projectName'] = ActiveMaster.project_name |
270 c['projectURL'] = config.Master.project_url | 270 c['projectURL'] = config.Master.project_url |
OLD | NEW |