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

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

Issue 2485763002: Use devil's adb with each bisect iteration, also start/stop daemons. (Closed)
Patch Set: Whitespace cleanup. 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 'build/adb',
9 'auto_bisect', 9 'auto_bisect',
10 'bisect_tester', 10 'bisect_tester',
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
115 update_step = api.auto_bisect.ensure_checkout() 115 update_step = api.auto_bisect.ensure_checkout()
116 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(
117 'catapult') 117 'catapult')
118 api.chromium_android.clean_local_files() 118 api.chromium_android.clean_local_files()
119 119
120 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,
121 master_dict) 121 master_dict)
122 122
123 api.chromium_android.use_devil_adb() 123 api.chromium_android.use_devil_adb()
124 124
125 # Make sure the bisect build and individual test runs are wrapped.
126 api.auto_bisect.build_context_mgr = (
127 api.chromium_android.android_build_wrapper)
128 api.auto_bisect.test_context_mgr = api.chromium_android.android_test_wrapper
129
125 api.auto_bisect.start_try_job(api, update_step=update_step, bot_db=bot_db, 130 api.auto_bisect.start_try_job(api, update_step=update_step, bot_db=bot_db,
126 do_not_nest_wait_for_revision=True) 131 do_not_nest_wait_for_revision=True)
127 132
128 133
129 def GenTests(api): 134 def GenTests(api):
130 config_json_main = { 135 config_json_main = {
131 'command': ('./tools/perf/run_benchmark -v --browser=android-chrome ' 136 'command': ('./tools/perf/run_benchmark -v --browser=android-chrome '
132 'sunspider'), 137 'sunspider'),
133 'max_time_minutes': '25', 138 'max_time_minutes': '25',
134 'client_operation_id': '12345726327327', 139 'client_operation_id': '12345726327327',
(...skipping 568 matching lines...) Expand 10 before | Expand all | Expand 10 after
703 # multiple_device_status 708 # multiple_device_status
704 api.step_data('Debug Info', retcode=1) + 709 api.step_data('Debug Info', retcode=1) +
705 api.override_step_data('device_status (3)', 710 api.override_step_data('device_status (3)',
706 api.json.output(working_device)) + 711 api.json.output(working_device)) +
707 api.step_data('Expanding revision range.for revisions %s:%s (2)' % ( 712 api.step_data('Expanding revision range.for revisions %s:%s (2)' % (
708 good_revision_hash, bad_revision_hash), 713 good_revision_hash, bad_revision_hash),
709 stdout=api.json.output([[bad_revision_hash, 'ignored'], [ 714 stdout=api.json.output([[bad_revision_hash, 'ignored'], [
710 good_revision_hash, 'ignored']])) + 715 good_revision_hash, 'ignored']])) +
711 api.step_data('Post bisect results', 716 api.step_data('Post bisect results',
712 stdout=api.json.output({'status_code': 200}))) 717 stdout=api.json.output({'status_code': 200})))
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698