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 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
108 for test in test_obj.tests: | 108 for test in test_obj.tests: |
109 run_test_cmd.extend(['-f', test]) | 109 run_test_cmd.extend(['-f', test]) |
110 if test_obj.extra_args: | 110 if test_obj.extra_args: |
111 run_test_cmd.extend(test_obj.extra_args) | 111 run_test_cmd.extend(test_obj.extra_args) |
112 commands.append(run_test_cmd) | 112 commands.append(run_test_cmd) |
113 return commands | 113 return commands |
114 | 114 |
115 | 115 |
116 def GetBotStepMap(): | 116 def GetBotStepMap(): |
117 compile_step = ['compile'] | 117 compile_step = ['compile'] |
| 118 chrome_proxy_tests = ['chrome_proxy'] |
118 std_host_tests = ['check_webview_licenses', 'findbugs'] | 119 std_host_tests = ['check_webview_licenses', 'findbugs'] |
119 std_build_steps = ['compile', 'zip_build'] | 120 std_build_steps = ['compile', 'zip_build'] |
120 std_test_steps = ['extract_build'] | 121 std_test_steps = ['extract_build'] |
121 std_tests = ['ui', 'unit', 'mojo'] | 122 std_tests = ['ui', 'unit', 'mojo'] |
122 telemetry_tests = ['telemetry_perf_unittests'] | 123 telemetry_tests = ['telemetry_perf_unittests'] |
123 flakiness_server = ( | 124 flakiness_server = ( |
124 '--flakiness-server=%s' % constants.UPSTREAM_FLAKINESS_SERVER) | 125 '--flakiness-server=%s' % constants.UPSTREAM_FLAKINESS_SERVER) |
125 experimental = ['--experimental'] | 126 experimental = ['--experimental'] |
126 bisect_chrome_output_dir = os.path.abspath( | 127 bisect_chrome_output_dir = os.path.abspath( |
127 os.path.join(os.path.dirname(__file__), os.pardir, os.pardir, os.pardir, | 128 os.path.join(os.path.dirname(__file__), os.pardir, os.pardir, os.pardir, |
128 os.pardir, 'bisect', 'src', 'out')) | 129 os.pardir, 'bisect', 'src', 'out')) |
129 B = BotConfig | 130 B = BotConfig |
130 H = (lambda steps, extra_args=None, extra_gyp=None, target_arch=None : | 131 H = (lambda steps, extra_args=None, extra_gyp=None, target_arch=None : |
131 HostConfig('build/android/buildbot/bb_host_steps.py', steps, extra_args, | 132 HostConfig('build/android/buildbot/bb_host_steps.py', steps, extra_args, |
132 extra_gyp, target_arch)) | 133 extra_gyp, target_arch)) |
133 T = (lambda tests, extra_args=None : | 134 T = (lambda tests, extra_args=None : |
134 TestConfig('build/android/buildbot/bb_device_steps.py', tests, | 135 TestConfig('build/android/buildbot/bb_device_steps.py', tests, |
135 extra_args)) | 136 extra_args)) |
136 | 137 |
137 bot_configs = [ | 138 bot_configs = [ |
138 # Main builders | 139 # Main builders |
139 B('main-builder-dbg', H(std_build_steps + std_host_tests)), | 140 B('main-builder-dbg', H(std_build_steps + std_host_tests)), |
140 B('main-builder-rel', H(std_build_steps)), | 141 B('main-builder-rel', H(std_build_steps)), |
141 B('main-clang-builder', | 142 B('main-clang-builder', |
142 H(compile_step, extra_gyp='clang=1 component=shared_library')), | 143 H(compile_step, extra_gyp='clang=1 component=shared_library')), |
143 B('main-clobber', H(compile_step)), | 144 B('main-clobber', H(compile_step)), |
144 B('main-tests-rel', H(std_test_steps), T(std_tests + telemetry_tests, | 145 B('main-tests-rel', H(std_test_steps), |
145 [flakiness_server])), | 146 T(std_tests + telemetry_tests + chrome_proxy_tests, |
| 147 [flakiness_server])), |
146 B('main-tests', H(std_test_steps), T(std_tests, [flakiness_server])), | 148 B('main-tests', H(std_test_steps), T(std_tests, [flakiness_server])), |
147 | 149 |
148 # Other waterfalls | 150 # Other waterfalls |
149 B('asan-builder-tests', H(compile_step, | 151 B('asan-builder-tests', H(compile_step, |
150 extra_gyp='asan=1 component=shared_library'), | 152 extra_gyp='asan=1 component=shared_library'), |
151 T(std_tests, ['--asan', '--asan-symbolize'])), | 153 T(std_tests, ['--asan', '--asan-symbolize'])), |
152 B('blink-try-builder', H(compile_step)), | 154 B('blink-try-builder', H(compile_step)), |
153 B('chromedriver-fyi-tests-dbg', H(std_test_steps), | 155 B('chromedriver-fyi-tests-dbg', H(std_test_steps), |
154 T(['chromedriver'], ['--install=ChromeShell', '--skip-wipe'])), | 156 T(['chromedriver'], ['--install=ChromeShell', '--skip-wipe'])), |
155 B('fyi-x86-builder-dbg', | 157 B('fyi-x86-builder-dbg', |
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
305 for command in commands: | 307 for command in commands: |
306 print 'Will run: ', bb_utils.CommandToString(command) | 308 print 'Will run: ', bb_utils.CommandToString(command) |
307 print | 309 print |
308 | 310 |
309 env = GetEnvironment(bot_config.host_obj, options.testing) | 311 env = GetEnvironment(bot_config.host_obj, options.testing) |
310 return RunBotCommands(options, commands, env) | 312 return RunBotCommands(options, commands, env) |
311 | 313 |
312 | 314 |
313 if __name__ == '__main__': | 315 if __name__ == '__main__': |
314 sys.exit(main(sys.argv)) | 316 sys.exit(main(sys.argv)) |
OLD | NEW |