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 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
91 'device_flags': 'device_flags_file', | 91 'device_flags': 'device_flags_file', |
92 }, | 92 }, |
93 'no_cache_builder': { | 93 'no_cache_builder': { |
94 'use_git_cache': False, | 94 'use_git_cache': False, |
95 }, | 95 }, |
96 'json_results_file': { | 96 'json_results_file': { |
97 'json_results_file': 'json_results_file' | 97 'json_results_file': 'json_results_file' |
98 }, | 98 }, |
99 'result_details': { | 99 'result_details': { |
100 'result_details': True, | 100 'result_details': True, |
| 101 'cs_base_url': 'cs_base_url', |
| 102 'store_tombstones': True, |
101 }, | 103 }, |
102 'enable_platform_mode': { | 104 'enable_platform_mode': { |
103 'perf_config': 'sharded_perf_tests.json', | 105 'perf_config': 'sharded_perf_tests.json', |
104 'enable_platform_mode': True | 106 'enable_platform_mode': True |
105 }, | 107 }, |
106 'timestamp_as_point_id': { | 108 'timestamp_as_point_id': { |
107 'perf_config': 'sharded_perf_tests.json', | 109 'perf_config': 'sharded_perf_tests.json', |
108 'timestamp_as_point_id': True | 110 'timestamp_as_point_id': True |
109 }, | 111 }, |
110 'telemetry_browser_tests_tester': { | 112 'telemetry_browser_tests_tester': { |
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
194 if config.get('perf_config'): | 196 if config.get('perf_config'): |
195 api.chromium_android.run_sharded_perf_tests( | 197 api.chromium_android.run_sharded_perf_tests( |
196 config='fake_config.json', | 198 config='fake_config.json', |
197 flaky_config='flake_fakes.json', | 199 flaky_config='flake_fakes.json', |
198 upload_archives_to_bucket='archives-bucket', | 200 upload_archives_to_bucket='archives-bucket', |
199 known_devices_file=config.get('last_known_devices', None), | 201 known_devices_file=config.get('last_known_devices', None), |
200 enable_platform_mode=config.get('enable_platform_mode', None), | 202 enable_platform_mode=config.get('enable_platform_mode', None), |
201 timestamp_as_point_id=config.get('timestamp_as_point_id', False)) | 203 timestamp_as_point_id=config.get('timestamp_as_point_id', False)) |
202 except api.step.StepFailure as f: | 204 except api.step.StepFailure as f: |
203 failure = f | 205 failure = f |
204 | |
205 api.chromium_android.run_instrumentation_suite( | 206 api.chromium_android.run_instrumentation_suite( |
206 name='AndroidWebViewTest', | 207 name='AndroidWebViewTest', |
207 apk_under_test=api.chromium_android.apk_path('AndroidWebView.apk'), | 208 apk_under_test=api.chromium_android.apk_path('AndroidWebView.apk'), |
208 test_apk=api.chromium_android.apk_path('AndroidWebViewTest.apk'), | 209 test_apk=api.chromium_android.apk_path('AndroidWebViewTest.apk'), |
209 isolate_file_path='android_webview/android_webview_test_data.isolate', | 210 isolate_file_path='android_webview/android_webview_test_data.isolate', |
210 flakiness_dashboard='test-results.appspot.com', | 211 flakiness_dashboard='test-results.appspot.com', |
211 annotation='SmallTest', | 212 annotation='SmallTest', |
212 except_annotation='FlakyTest', | 213 except_annotation='FlakyTest', |
213 screenshot=True, | 214 screenshot=True, |
214 official_build=True, | 215 official_build=True, |
215 timeout_scale=config.get('timeout_scale'), | 216 timeout_scale=config.get('timeout_scale'), |
216 strict_mode=config.get('strict_mode'), | 217 strict_mode=config.get('strict_mode'), |
217 additional_apks=['Additional.apk'], | 218 additional_apks=['Additional.apk'], |
218 device_flags=config.get('device_flags'), | 219 device_flags=config.get('device_flags'), |
219 json_results_file=config.get('json_results_file'), | 220 json_results_file=config.get('json_results_file'), |
220 result_details=config.get('result_details')) | 221 result_details=config.get('result_details'), |
| 222 cs_base_url=config.get('cs_base_url'), |
| 223 store_tombstones=config.get('store_tombstones')) |
221 api.chromium_android.run_test_suite( | 224 api.chromium_android.run_test_suite( |
222 'unittests', | 225 'unittests', |
223 isolate_file_path=api.path['checkout'].join('some_file.isolate'), | 226 isolate_file_path=api.path['checkout'].join('some_file.isolate'), |
224 gtest_filter='WebRtc*', | 227 gtest_filter='WebRtc*', |
225 tool='asan') | 228 tool='asan') |
226 if not failure: | 229 if not failure: |
227 api.chromium_android.run_bisect_script(extra_src='test.py', | 230 api.chromium_android.run_bisect_script(extra_src='test.py', |
228 path_to_config='test.py') | 231 path_to_config='test.py') |
229 | 232 |
230 if config.get('resource_size'): | 233 if config.get('resource_size'): |
(...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
433 properties_for('tester') + | 436 properties_for('tester') + |
434 api.override_step_data('get version (2)', | 437 api.override_step_data('get version (2)', |
435 api.raw_io.output('MAJOR=53\nMINOR=0\nBUILD=2800\nPATCH=0\n'))) | 438 api.raw_io.output('MAJOR=53\nMINOR=0\nBUILD=2800\nPATCH=0\n'))) |
436 | 439 |
437 yield (api.test('telemetry_browser_tests_failures') + | 440 yield (api.test('telemetry_browser_tests_failures') + |
438 properties_for('telemetry_browser_tests_tester') + | 441 properties_for('telemetry_browser_tests_tester') + |
439 api.override_step_data('Run telemetry browser_test PopularUrlsTest', | 442 api.override_step_data('Run telemetry browser_test PopularUrlsTest', |
440 api.json.output({'successes': ['passed_test1', 'passed_test2'], | 443 api.json.output({'successes': ['passed_test1', 'passed_test2'], |
441 'failures': ['failed_test_1', 'failed_test_2']}), | 444 'failures': ['failed_test_1', 'failed_test_2']}), |
442 retcode=1)) | 445 retcode=1)) |
OLD | NEW |