| OLD | NEW |
| 1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 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 from recipe_engine.types import freeze | 5 from recipe_engine.types import freeze |
| 6 | 6 |
| 7 DEPS = [ | 7 DEPS = [ |
| 8 'adb', | 8 'adb', |
| 9 'chromium', | 9 'chromium', |
| 10 'chromium_android', | 10 'chromium_android', |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 50 'adb_vendor_keys': True, | 50 'adb_vendor_keys': True, |
| 51 }, | 51 }, |
| 52 'perf_runner_allow_high_battery_temp': { | 52 'perf_runner_allow_high_battery_temp': { |
| 53 'perf_config': 'sharded_perf_tests.json', | 53 'perf_config': 'sharded_perf_tests.json', |
| 54 'max_battery_temp': 500, | 54 'max_battery_temp': 500, |
| 55 }, | 55 }, |
| 56 'gerrit_try_builder': { | 56 'gerrit_try_builder': { |
| 57 'build': True, | 57 'build': True, |
| 58 'skip_wipe': True, | 58 'skip_wipe': True, |
| 59 }, | 59 }, |
| 60 'java_method_count_builder': { | |
| 61 'build': True, | |
| 62 'java_method_count': True, | |
| 63 }, | |
| 64 'webview_tester': { | 60 'webview_tester': { |
| 65 'remove_system_webview': True, | 61 'remove_system_webview': True, |
| 66 'disable_system_chrome': True, | 62 'disable_system_chrome': True, |
| 67 }, | 63 }, |
| 68 'slow_tester': { | 64 'slow_tester': { |
| 69 'timeout_scale': 2, | 65 'timeout_scale': 2, |
| 70 }, | 66 }, |
| 71 'specific_install_tester': { | 67 'specific_install_tester': { |
| 72 'specific_install': True, | 68 'specific_install': True, |
| 73 }, | 69 }, |
| (...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 146 | 142 |
| 147 if config.get('build', False): | 143 if config.get('build', False): |
| 148 api.chromium.compile() | 144 api.chromium.compile() |
| 149 api.chromium_android.make_zip_archive('zip_build_proudct', 'archive.zip', | 145 api.chromium_android.make_zip_archive('zip_build_proudct', 'archive.zip', |
| 150 filters=['*.apk']) | 146 filters=['*.apk']) |
| 151 else: | 147 else: |
| 152 api.chromium_android.download_build('build-bucket', | 148 api.chromium_android.download_build('build-bucket', |
| 153 'build_product.zip') | 149 'build_product.zip') |
| 154 api.chromium_android.git_number() | 150 api.chromium_android.git_number() |
| 155 | 151 |
| 156 if config.get('java_method_count'): | |
| 157 api.chromium_android.java_method_count( | |
| 158 api.chromium.output_dir.join('chrome_public_apk', 'classes.dex.zip')) | |
| 159 | |
| 160 if config.get('specific_install'): | 152 if config.get('specific_install'): |
| 161 api.chromium_android.adb_install_apk('Chrome.apk', devices=['abc123']) | 153 api.chromium_android.adb_install_apk('Chrome.apk', devices=['abc123']) |
| 162 | 154 |
| 163 api.adb.root_devices() | 155 api.adb.root_devices() |
| 164 api.chromium_android.spawn_logcat_monitor() | 156 api.chromium_android.spawn_logcat_monitor() |
| 165 | 157 |
| 166 failure = False | 158 failure = False |
| 167 try: | 159 try: |
| 168 # TODO(luqui): remove redundant cruft, need one consistent API. | 160 # TODO(luqui): remove redundant cruft, need one consistent API. |
| 169 api.chromium_android.detect_and_setup_devices() | 161 api.chromium_android.detect_and_setup_devices() |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 222 'unittests', | 214 'unittests', |
| 223 isolate_file_path=api.path['checkout'].join('some_file.isolate'), | 215 isolate_file_path=api.path['checkout'].join('some_file.isolate'), |
| 224 gtest_filter='WebRtc*', | 216 gtest_filter='WebRtc*', |
| 225 tool='asan') | 217 tool='asan') |
| 226 if not failure: | 218 if not failure: |
| 227 api.chromium_android.run_bisect_script(extra_src='test.py', | 219 api.chromium_android.run_bisect_script(extra_src='test.py', |
| 228 path_to_config='test.py') | 220 path_to_config='test.py') |
| 229 | 221 |
| 230 if config.get('resource_size'): | 222 if config.get('resource_size'): |
| 231 api.chromium_android.resource_sizes( | 223 api.chromium_android.resource_sizes( |
| 232 apk_path=api.chromium_android.apk_path('Chrome.apk'), | 224 apk_path=api.chromium_android.apk_path('Example.apk'), |
| 233 so_path=api.path['checkout'].join( | 225 chartjson_file=True, |
| 234 'out', api.chromium.c.BUILD_CONFIG, 'chrome_apk', 'libs', | 226 upload_archives_to_bucket='Bucket') |
| 235 'armeabi-v7a', 'libchrome.so'), | |
| 236 so_with_symbols_path=api.path['checkout'].join( | |
| 237 'out', api.chromium.c.BUILD_CONFIG, 'lib', 'libchrome.so'), | |
| 238 chartjson_file=True) | |
| 239 | 227 |
| 240 if config.get('run_webview_cts'): | 228 if config.get('run_webview_cts'): |
| 241 api.chromium_android.run_webview_cts(command_line_args=[ | 229 api.chromium_android.run_webview_cts(command_line_args=[ |
| 242 '--webview_arg_1', '--webview_arg_2']) | 230 '--webview_arg_1', '--webview_arg_2']) |
| 243 | 231 |
| 244 if config.get('run_telemetry_browser_tests'): | 232 if config.get('run_telemetry_browser_tests'): |
| 245 api.chromium_android.run_telemetry_browser_test('PopularUrlsTest') | 233 api.chromium_android.run_telemetry_browser_test('PopularUrlsTest') |
| 246 | 234 |
| 247 api.chromium_android.logcat_dump() | 235 api.chromium_android.logcat_dump() |
| 248 api.chromium_android.stack_tool_steps() | 236 api.chromium_android.stack_tool_steps() |
| (...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 433 properties_for('tester') + | 421 properties_for('tester') + |
| 434 api.override_step_data('get version (2)', | 422 api.override_step_data('get version (2)', |
| 435 api.raw_io.output('MAJOR=53\nMINOR=0\nBUILD=2800\nPATCH=0\n'))) | 423 api.raw_io.output('MAJOR=53\nMINOR=0\nBUILD=2800\nPATCH=0\n'))) |
| 436 | 424 |
| 437 yield (api.test('telemetry_browser_tests_failures') + | 425 yield (api.test('telemetry_browser_tests_failures') + |
| 438 properties_for('telemetry_browser_tests_tester') + | 426 properties_for('telemetry_browser_tests_tester') + |
| 439 api.override_step_data('Run telemetry browser_test PopularUrlsTest', | 427 api.override_step_data('Run telemetry browser_test PopularUrlsTest', |
| 440 api.json.output({'successes': ['passed_test1', 'passed_test2'], | 428 api.json.output({'successes': ['passed_test1', 'passed_test2'], |
| 441 'failures': ['failed_test_1', 'failed_test_2']}), | 429 'failures': ['failed_test_1', 'failed_test_2']}), |
| 442 retcode=1)) | 430 retcode=1)) |
| OLD | NEW |