| 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 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 154 H(compile_step, extra_gyp='component=shared_library'), | 154 H(compile_step, extra_gyp='component=shared_library'), |
| 155 T(std_tests, ['--experimental', flakiness_server])), | 155 T(std_tests, ['--experimental', flakiness_server])), |
| 156 B('perf-bisect-builder-tests-dbg', H(['bisect_perf_regression'])), | 156 B('perf-bisect-builder-tests-dbg', H(['bisect_perf_regression'])), |
| 157 B('perf-tests-rel', H(std_test_steps), | 157 B('perf-tests-rel', H(std_test_steps), |
| 158 T([], ['--install=ChromiumTestShell'])), | 158 T([], ['--install=ChromiumTestShell'])), |
| 159 B('webkit-latest-webkit-tests', H(std_test_steps), | 159 B('webkit-latest-webkit-tests', H(std_test_steps), |
| 160 T(['webkit_layout', 'webkit'], ['--auto-reconnect'])), | 160 T(['webkit_layout', 'webkit'], ['--auto-reconnect'])), |
| 161 B('webkit-latest-contentshell', H(compile_step), | 161 B('webkit-latest-contentshell', H(compile_step), |
| 162 T(['webkit_layout'], ['--auto-reconnect'])), | 162 T(['webkit_layout'], ['--auto-reconnect'])), |
| 163 B('builder-unit-tests', H(compile_step), T(['unit'])), | 163 B('builder-unit-tests', H(compile_step), T(['unit'])), |
| 164 B('webrtc-tests', H(std_test_steps), T(['webrtc'], [flakiness_server])), |
| 164 | 165 |
| 165 # Generic builder config (for substring match). | 166 # Generic builder config (for substring match). |
| 166 B('builder', H(std_build_steps)), | 167 B('builder', H(std_build_steps)), |
| 167 ] | 168 ] |
| 168 | 169 |
| 169 bot_map = dict((config.bot_id, config) for config in bot_configs) | 170 bot_map = dict((config.bot_id, config) for config in bot_configs) |
| 170 | 171 |
| 171 # These bots have identical configuration to ones defined earlier. | 172 # These bots have identical configuration to ones defined earlier. |
| 172 copy_map = [ | 173 copy_map = [ |
| 173 ('lkgr-clobber', 'main-clobber'), | 174 ('lkgr-clobber', 'main-clobber'), |
| 174 ('try-builder-dbg', 'main-builder-dbg'), | 175 ('try-builder-dbg', 'main-builder-dbg'), |
| 175 ('try-builder-rel', 'main-builder-rel'), | 176 ('try-builder-rel', 'main-builder-rel'), |
| 176 ('try-clang-builder', 'main-clang-builder'), | 177 ('try-clang-builder', 'main-clang-builder'), |
| 177 ('try-fyi-builder-dbg', 'fyi-builder-dbg'), | 178 ('try-fyi-builder-dbg', 'fyi-builder-dbg'), |
| 178 ('try-x86-builder-dbg', 'x86-builder-dbg'), | 179 ('try-x86-builder-dbg', 'x86-builder-dbg'), |
| 179 ('try-tests', 'main-tests'), | 180 ('try-tests', 'main-tests'), |
| 180 ('try-fyi-tests', 'fyi-tests'), | 181 ('try-fyi-tests', 'fyi-tests'), |
| 181 ('webkit-latest-tests', 'main-tests'), | 182 ('webkit-latest-tests', 'main-tests'), |
| 183 ('webrtc-builder', 'main-builder-rel'), |
| 182 ] | 184 ] |
| 183 for to_id, from_id in copy_map: | 185 for to_id, from_id in copy_map: |
| 184 assert to_id not in bot_map | 186 assert to_id not in bot_map |
| 185 # pylint: disable=W0212 | 187 # pylint: disable=W0212 |
| 186 bot_map[to_id] = copy.deepcopy(bot_map[from_id])._replace(bot_id=to_id) | 188 bot_map[to_id] = copy.deepcopy(bot_map[from_id])._replace(bot_id=to_id) |
| 187 | 189 |
| 188 # Trybots do not upload to flakiness dashboard. They should be otherwise | 190 # Trybots do not upload to flakiness dashboard. They should be otherwise |
| 189 # identical in configuration to their trunk building counterparts. | 191 # identical in configuration to their trunk building counterparts. |
| 190 test_obj = bot_map[to_id].test_obj | 192 test_obj = bot_map[to_id].test_obj |
| 191 if to_id.startswith('try') and test_obj: | 193 if to_id.startswith('try') and test_obj: |
| (...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 262 for command in commands: | 264 for command in commands: |
| 263 print 'Will run: ', bb_utils.CommandToString(command) | 265 print 'Will run: ', bb_utils.CommandToString(command) |
| 264 print | 266 print |
| 265 | 267 |
| 266 env = GetEnvironment(bot_config.host_obj, options.testing) | 268 env = GetEnvironment(bot_config.host_obj, options.testing) |
| 267 return RunBotCommands(options, commands, env) | 269 return RunBotCommands(options, commands, env) |
| 268 | 270 |
| 269 | 271 |
| 270 if __name__ == '__main__': | 272 if __name__ == '__main__': |
| 271 sys.exit(main(sys.argv)) | 273 sys.exit(main(sys.argv)) |
| OLD | NEW |