Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(866)

Side by Side Diff: scripts/slave/recipes/bisection/android_bisect.py

Issue 2447633003: [android bisect] use devil's version of adb in bisect. (Closed)
Patch Set: Move to api.chromium_android + also handle android_bisect_staging Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 # Copyright (c) 2015 The Chromium Authors. All rights reserved. 1 # Copyright (c) 2015 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 'build/adb',
8 'auto_bisect', 9 'auto_bisect',
9 'bisect_tester', 10 'bisect_tester',
10 'depot_tools/bot_update', 11 'depot_tools/bot_update',
11 'chromium', 12 'chromium',
12 'chromium_android', 13 'chromium_android',
13 'chromium_tests', 14 'chromium_tests',
14 'depot_tools/gclient', 15 'depot_tools/gclient',
15 'recipe_engine/json', 16 'recipe_engine/json',
16 'recipe_engine/path', 17 'recipe_engine/path',
17 'recipe_engine/properties', 18 'recipe_engine/properties',
19 'recipe_engine/python',
18 'recipe_engine/raw_io', 20 'recipe_engine/raw_io',
19 'recipe_engine/step', 21 'recipe_engine/step',
20 ] 22 ]
21 23
22 REPO_URL = 'https://chromium.googlesource.com/chromium/src.git' 24 REPO_URL = 'https://chromium.googlesource.com/chromium/src.git'
23 25
24 BUILDERS = freeze({ 26 BUILDERS = freeze({
25 'tryserver.chromium.perf': { 27 'tryserver.chromium.perf': {
26 'builders': { 28 'builders': {
27 'android_one_perf_bisect': { 29 'android_one_perf_bisect': {
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
111 for c in bot_config.get('gclient_apply_config', []): 113 for c in bot_config.get('gclient_apply_config', []):
112 api.gclient.apply_config(c) 114 api.gclient.apply_config(c)
113 update_step = api.auto_bisect.ensure_checkout() 115 update_step = api.auto_bisect.ensure_checkout()
114 api.path.c.dynamic_paths['catapult'] = api.m.auto_bisect.working_dir.join( 116 api.path.c.dynamic_paths['catapult'] = api.m.auto_bisect.working_dir.join(
115 'catapult') 117 'catapult')
116 api.chromium_android.clean_local_files() 118 api.chromium_android.clean_local_files()
117 119
118 bot_db = api.chromium_tests.create_bot_db_from_master_dict(mastername, 120 bot_db = api.chromium_tests.create_bot_db_from_master_dict(mastername,
119 master_dict) 121 master_dict)
120 122
123 api.chromium_android.use_devil_adb()
124
121 api.auto_bisect.start_try_job(api, update_step=update_step, bot_db=bot_db, 125 api.auto_bisect.start_try_job(api, update_step=update_step, bot_db=bot_db,
122 do_not_nest_wait_for_revision=True) 126 do_not_nest_wait_for_revision=True)
123 127
124 128
125 def GenTests(api): 129 def GenTests(api):
126 config_json_main = { 130 config_json_main = {
127 'command': ('./tools/perf/run_benchmark -v --browser=android-chrome ' 131 'command': ('./tools/perf/run_benchmark -v --browser=android-chrome '
128 'sunspider'), 132 'sunspider'),
129 'max_time_minutes': '25', 133 'max_time_minutes': '25',
130 'client_operation_id': '12345726327327', 134 'client_operation_id': '12345726327327',
(...skipping 568 matching lines...) Expand 10 before | Expand all | Expand 10 after
699 # multiple_device_status 703 # multiple_device_status
700 api.step_data('Debug Info', retcode=1) + 704 api.step_data('Debug Info', retcode=1) +
701 api.override_step_data('device_status (3)', 705 api.override_step_data('device_status (3)',
702 api.json.output(working_device)) + 706 api.json.output(working_device)) +
703 api.step_data('Expanding revision range.for revisions %s:%s (2)' % ( 707 api.step_data('Expanding revision range.for revisions %s:%s (2)' % (
704 good_revision_hash, bad_revision_hash), 708 good_revision_hash, bad_revision_hash),
705 stdout=api.json.output([[bad_revision_hash, 'ignored'], [ 709 stdout=api.json.output([[bad_revision_hash, 'ignored'], [
706 good_revision_hash, 'ignored']])) + 710 good_revision_hash, 'ignored']])) +
707 api.step_data('Post bisect results', 711 api.step_data('Post bisect results',
708 stdout=api.json.output({'status_code': 200}))) 712 stdout=api.json.output({'status_code': 200})))
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698