OLD | NEW |
1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
2 # | 2 # |
3 # Copyright (c) 2013 The Chromium Authors. All rights reserved. | 3 # Copyright (c) 2013 The Chromium Authors. All rights reserved. |
4 # Use of this source code is governed by a BSD-style license that can be | 4 # Use of this source code is governed by a BSD-style license that can be |
5 # found in the LICENSE file. | 5 # found in the LICENSE file. |
6 | 6 |
7 import collections | 7 import collections |
8 import copy | 8 import copy |
9 import json | 9 import json |
10 import os | 10 import os |
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
149 H(compile_step, extra_gyp='component=shared_library'), | 149 H(compile_step, extra_gyp='component=shared_library'), |
150 T(std_tests, ['--experimental', flakiness_server])), | 150 T(std_tests, ['--experimental', flakiness_server])), |
151 B('perf-bisect-builder-tests-dbg', H(['bisect_perf_regression'])), | 151 B('perf-bisect-builder-tests-dbg', H(['bisect_perf_regression'])), |
152 B('perf-tests-rel', H(std_test_steps), | 152 B('perf-tests-rel', H(std_test_steps), |
153 T([], ['--install=ChromiumTestShell'])), | 153 T([], ['--install=ChromiumTestShell'])), |
154 B('webkit-latest-webkit-tests', H(std_test_steps), | 154 B('webkit-latest-webkit-tests', H(std_test_steps), |
155 T(['webkit_layout', 'webkit'], ['--auto-reconnect'])), | 155 T(['webkit_layout', 'webkit'], ['--auto-reconnect'])), |
156 B('webkit-latest-contentshell', H(compile_step), | 156 B('webkit-latest-contentshell', H(compile_step), |
157 T(['webkit_layout'], ['--auto-reconnect'])), | 157 T(['webkit_layout'], ['--auto-reconnect'])), |
158 B('builder-unit-tests', H(compile_step), T(['unit'])), | 158 B('builder-unit-tests', H(compile_step), T(['unit'])), |
| 159 B('webrtc-tests', H(std_test_steps), T(['webrtc'], [flakiness_server])), |
159 | 160 |
160 # Generic builder config (for substring match). | 161 # Generic builder config (for substring match). |
161 B('builder', H(std_build_steps)), | 162 B('builder', H(std_build_steps)), |
162 ] | 163 ] |
163 | 164 |
164 bot_map = dict((config.bot_id, config) for config in bot_configs) | 165 bot_map = dict((config.bot_id, config) for config in bot_configs) |
165 | 166 |
166 # These bots have identical configuration to ones defined earlier. | 167 # These bots have identical configuration to ones defined earlier. |
167 copy_map = [ | 168 copy_map = [ |
168 ('lkgr-clobber', 'main-clobber'), | 169 ('lkgr-clobber', 'main-clobber'), |
169 ('try-builder-dbg', 'main-builder-dbg'), | 170 ('try-builder-dbg', 'main-builder-dbg'), |
170 ('try-builder-rel', 'main-builder-rel'), | 171 ('try-builder-rel', 'main-builder-rel'), |
171 ('try-clang-builder', 'main-clang-builder'), | 172 ('try-clang-builder', 'main-clang-builder'), |
172 ('try-fyi-builder-dbg', 'fyi-builder-dbg'), | 173 ('try-fyi-builder-dbg', 'fyi-builder-dbg'), |
173 ('try-x86-builder-dbg', 'x86-builder-dbg'), | 174 ('try-x86-builder-dbg', 'x86-builder-dbg'), |
174 ('try-tests', 'main-tests'), | 175 ('try-tests', 'main-tests'), |
175 ('try-fyi-tests', 'fyi-tests'), | 176 ('try-fyi-tests', 'fyi-tests'), |
176 ('webkit-latest-tests', 'main-tests'), | 177 ('webkit-latest-tests', 'main-tests'), |
| 178 ('webrtc-builder', 'main-builder-rel'), |
177 ] | 179 ] |
178 for to_id, from_id in copy_map: | 180 for to_id, from_id in copy_map: |
179 assert to_id not in bot_map | 181 assert to_id not in bot_map |
180 # pylint: disable=W0212 | 182 # pylint: disable=W0212 |
181 bot_map[to_id] = copy.deepcopy(bot_map[from_id])._replace(bot_id=to_id) | 183 bot_map[to_id] = copy.deepcopy(bot_map[from_id])._replace(bot_id=to_id) |
182 | 184 |
183 # Trybots do not upload to flakiness dashboard. They should be otherwise | 185 # Trybots do not upload to flakiness dashboard. They should be otherwise |
184 # identical in configuration to their trunk building counterparts. | 186 # identical in configuration to their trunk building counterparts. |
185 test_obj = bot_map[to_id].test_obj | 187 test_obj = bot_map[to_id].test_obj |
186 if to_id.startswith('try') and test_obj: | 188 if to_id.startswith('try') and test_obj: |
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
257 for command in commands: | 259 for command in commands: |
258 print 'Will run: ', bb_utils.CommandToString(command) | 260 print 'Will run: ', bb_utils.CommandToString(command) |
259 print | 261 print |
260 | 262 |
261 env = GetEnvironment(bot_config.host_obj, options.testing) | 263 env = GetEnvironment(bot_config.host_obj, options.testing) |
262 return RunBotCommands(options, commands, env) | 264 return RunBotCommands(options, commands, env) |
263 | 265 |
264 | 266 |
265 if __name__ == '__main__': | 267 if __name__ == '__main__': |
266 sys.exit(main(sys.argv)) | 268 sys.exit(main(sys.argv)) |
OLD | NEW |