| 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 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 137 | 137 |
| 138 bot_configs = [ | 138 bot_configs = [ |
| 139 # Main builders | 139 # Main builders |
| 140 B('main-builder-dbg', H(std_build_steps + std_host_tests)), | 140 B('main-builder-dbg', H(std_build_steps + std_host_tests)), |
| 141 B('main-builder-rel', H(std_build_steps)), | 141 B('main-builder-rel', H(std_build_steps)), |
| 142 B('main-clang-builder', | 142 B('main-clang-builder', |
| 143 H(compile_step, extra_gyp='clang=1 component=shared_library')), | 143 H(compile_step, extra_gyp='clang=1 component=shared_library')), |
| 144 B('main-clobber', H(compile_step)), | 144 B('main-clobber', H(compile_step)), |
| 145 B('main-tests-rel', H(std_test_steps), | 145 B('main-tests-rel', H(std_test_steps), |
| 146 T(std_tests + telemetry_tests + chrome_proxy_tests, | 146 T(std_tests + telemetry_tests + chrome_proxy_tests, |
| 147 [flakiness_server])), | 147 ['--cleanup', flakiness_server])), |
| 148 B('main-tests', H(std_test_steps), T(std_tests, [flakiness_server])), | 148 B('main-tests', H(std_test_steps), |
| 149 T(std_tests,['--cleanup', flakiness_server])), |
| 149 | 150 |
| 150 # Other waterfalls | 151 # Other waterfalls |
| 151 B('asan-builder-tests', H(compile_step, | 152 B('asan-builder-tests', H(compile_step, |
| 152 extra_gyp='asan=1 component=shared_library'), | 153 extra_gyp='asan=1 component=shared_library'), |
| 153 T(std_tests, ['--asan', '--asan-symbolize'])), | 154 T(std_tests, ['--asan', '--asan-symbolize'])), |
| 154 B('blink-try-builder', H(compile_step)), | 155 B('blink-try-builder', H(compile_step)), |
| 155 B('chromedriver-fyi-tests-dbg', H(std_test_steps), | 156 B('chromedriver-fyi-tests-dbg', H(std_test_steps), |
| 156 T(['chromedriver'], ['--install=ChromeShell', '--skip-wipe'])), | 157 T(['chromedriver'], ['--install=ChromeShell', '--skip-wipe', |
| 158 '--cleanup'])), |
| 157 B('fyi-x86-builder-dbg', | 159 B('fyi-x86-builder-dbg', |
| 158 H(compile_step + std_host_tests, experimental, target_arch='x86')), | 160 H(compile_step + std_host_tests, experimental, target_arch='x86')), |
| 159 B('fyi-builder-dbg', | 161 B('fyi-builder-dbg', |
| 160 H(std_build_steps + std_host_tests, experimental, | 162 H(std_build_steps + std_host_tests, experimental, |
| 161 extra_gyp='emma_coverage=1')), | 163 extra_gyp='emma_coverage=1')), |
| 162 B('x86-builder-dbg', | 164 B('x86-builder-dbg', |
| 163 H(compile_step + std_host_tests, target_arch='x86')), | 165 H(compile_step + std_host_tests, target_arch='x86')), |
| 164 B('fyi-builder-rel', H(std_build_steps, experimental)), | 166 B('fyi-builder-rel', H(std_build_steps, experimental)), |
| 165 B('fyi-tests', H(std_test_steps), | 167 B('fyi-tests', H(std_test_steps), |
| 166 T(std_tests, ['--experimental', flakiness_server, | 168 T(std_tests, ['--experimental', flakiness_server, |
| 167 '--coverage-bucket', CHROMIUM_COVERAGE_BUCKET])), | 169 '--coverage-bucket', CHROMIUM_COVERAGE_BUCKET, |
| 170 '--cleanup'])), |
| 168 B('fyi-component-builder-tests-dbg', | 171 B('fyi-component-builder-tests-dbg', |
| 169 H(compile_step, extra_gyp='component=shared_library'), | 172 H(compile_step, extra_gyp='component=shared_library'), |
| 170 T(std_tests, ['--experimental', flakiness_server])), | 173 T(std_tests, ['--experimental', flakiness_server])), |
| 171 B('gpu-builder-tests-dbg', | 174 B('gpu-builder-tests-dbg', |
| 172 H(compile_step), | 175 H(compile_step), |
| 173 T(['gpu'], ['--install=ContentShell'])), | 176 T(['gpu'], ['--install=ContentShell'])), |
| 174 # Pass empty T([]) so that logcat monitor and device status check are run. | 177 # Pass empty T([]) so that logcat monitor and device status check are run. |
| 175 B('perf-bisect-builder-tests-dbg', | 178 B('perf-bisect-builder-tests-dbg', |
| 176 H(['bisect_perf_regression']), | 179 H(['bisect_perf_regression']), |
| 177 T([], ['--chrome-output-dir', bisect_chrome_output_dir])), | 180 T([], ['--chrome-output-dir', bisect_chrome_output_dir])), |
| 178 B('perf-tests-rel', H(std_test_steps), | 181 B('perf-tests-rel', H(std_test_steps), |
| 179 T([], ['--install=ChromeShell'])), | 182 T([], ['--install=ChromeShell', '--cleanup'])), |
| 180 B('webkit-latest-webkit-tests', H(std_test_steps), | 183 B('webkit-latest-webkit-tests', H(std_test_steps), |
| 181 T(['webkit_layout', 'webkit'], ['--auto-reconnect'])), | 184 T(['webkit_layout', 'webkit'], ['--cleanup', '--auto-reconnect'])), |
| 182 B('webkit-latest-contentshell', H(compile_step), | 185 B('webkit-latest-contentshell', H(compile_step), |
| 183 T(['webkit_layout'], ['--auto-reconnect'])), | 186 T(['webkit_layout'], ['--auto-reconnect'])), |
| 184 B('builder-unit-tests', H(compile_step), T(['unit'])), | 187 B('builder-unit-tests', H(compile_step), T(['unit'])), |
| 185 B('webrtc-chromium-builder', | 188 B('webrtc-chromium-builder', |
| 186 H(std_build_steps, | 189 H(std_build_steps, |
| 187 extra_args=['--build-targets=android_builder_chromium_webrtc'])), | 190 extra_args=['--build-targets=android_builder_chromium_webrtc'])), |
| 188 B('webrtc-native-builder', | 191 B('webrtc-native-builder', |
| 189 H(std_build_steps, | 192 H(std_build_steps, |
| 190 extra_args=['--build-targets=android_builder_webrtc'], | 193 extra_args=['--build-targets=android_builder_webrtc'], |
| 191 extra_gyp='include_tests=1 enable_tracing=1')), | 194 extra_gyp='include_tests=1 enable_tracing=1')), |
| 192 B('webrtc-chromium-tests', H(std_test_steps), | 195 B('webrtc-chromium-tests', H(std_test_steps), |
| 193 T(['webrtc_chromium'], | 196 T(['webrtc_chromium'], |
| 194 [flakiness_server, '--gtest-filter=WebRtc*'])), | 197 [flakiness_server, '--gtest-filter=WebRtc*', '--cleanup'])), |
| 195 B('webrtc-native-tests', H(std_test_steps), | 198 B('webrtc-native-tests', H(std_test_steps), |
| 196 T(['webrtc_native'], [flakiness_server])), | 199 T(['webrtc_native'], ['--cleanup', flakiness_server])), |
| 197 | 200 |
| 198 # Generic builder config (for substring match). | 201 # Generic builder config (for substring match). |
| 199 B('builder', H(std_build_steps)), | 202 B('builder', H(std_build_steps)), |
| 200 ] | 203 ] |
| 201 | 204 |
| 202 bot_map = dict((config.bot_id, config) for config in bot_configs) | 205 bot_map = dict((config.bot_id, config) for config in bot_configs) |
| 203 | 206 |
| 204 # These bots have identical configuration to ones defined earlier. | 207 # These bots have identical configuration to ones defined earlier. |
| 205 copy_map = [ | 208 copy_map = [ |
| 206 ('lkgr-clobber', 'main-clobber'), | 209 ('lkgr-clobber', 'main-clobber'), |
| (...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 307 for command in commands: | 310 for command in commands: |
| 308 print 'Will run: ', bb_utils.CommandToString(command) | 311 print 'Will run: ', bb_utils.CommandToString(command) |
| 309 print | 312 print |
| 310 | 313 |
| 311 env = GetEnvironment(bot_config.host_obj, options.testing) | 314 env = GetEnvironment(bot_config.host_obj, options.testing) |
| 312 return RunBotCommands(options, commands, env) | 315 return RunBotCommands(options, commands, env) |
| 313 | 316 |
| 314 | 317 |
| 315 if __name__ == '__main__': | 318 if __name__ == '__main__': |
| 316 sys.exit(main(sys.argv)) | 319 sys.exit(main(sys.argv)) |
| OLD | NEW |