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

Unified Diff: scripts/slave/recipe_modules/auto_bisect/local_bisect.py

Issue 2112553005: Revert of Redo test after step failure if multiple android devices are connected to lin… (Closed) Base URL: https://chromium.googlesource.com/chromium/tools/build.git@master
Patch Set: Created 4 years, 6 months 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « scripts/slave/recipe_modules/auto_bisect/api.py ('k') | scripts/slave/recipe_modules/bisect_tester/api.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: scripts/slave/recipe_modules/auto_bisect/local_bisect.py
diff --git a/scripts/slave/recipe_modules/auto_bisect/local_bisect.py b/scripts/slave/recipe_modules/auto_bisect/local_bisect.py
index 91a392b30710149c038402d440110a63c28b182d..c5fb2cc8d93d65c0d111a9420be62228f68ddc0e 100644
--- a/scripts/slave/recipe_modules/auto_bisect/local_bisect.py
+++ b/scripts/slave/recipe_modules/auto_bisect/local_bisect.py
@@ -8,42 +8,25 @@
def perform_bisect(api, **flags): # pragma: no cover
- try:
- bisect_config = api.m.properties.get('bisect_config')
- assert isinstance(bisect_config, collections.Mapping)
- bisector = api.create_bisector(bisect_config, **flags)
- with api.m.step.nest('Gathering reference values'):
- _gather_reference_range(api, bisector)
- if (not bisector.failed and bisector.check_improvement_direction() and
- bisector.check_initial_confidence()):
- if bisector.check_reach_adjacent_revision(bisector.good_rev):
- # Only show this step if bisect has reached adjacent revisions.
- with api.m.step.nest(str('Check bisect finished on revision ' +
- bisector.good_rev.revision_string())):
- if bisector.check_bisect_finished(bisector.good_rev):
- bisector.bisect_over = True
- if not bisector.bisect_over:
- _bisect_main_loop(bisector)
- else:
- bisector.bisect_over = True
- bisector.print_result_debug_info()
- bisector.post_result(halt_on_failure=True)
- except api.m.step.StepFailure:
- if api.m.chromium.c.TARGET_PLATFORM == 'android':
- api.m.chromium_android.device_status_check()
- connected_devices = api.m.chromium_android.devices()
- tested_devices = api.m.bisect_tester.devices_tested
- available_devices = [device for device in connected_devices
- if device not in tested_devices]
- if available_devices:
- serial_number = available_devices[0]
- api.m.bisect_tester.device_to_test = serial_number
- api.m.bisect_tester.devices_tested.append(serial_number)
- perform_bisect(api,**flags)
- else:
- raise
- else:
- raise
+ bisect_config = api.m.properties.get('bisect_config')
+ assert isinstance(bisect_config, collections.Mapping)
+ bisector = api.create_bisector(bisect_config, **flags)
+ with api.m.step.nest('Gathering reference values'):
+ _gather_reference_range(api, bisector)
+ if (not bisector.failed and bisector.check_improvement_direction() and
+ bisector.check_initial_confidence()):
+ if bisector.check_reach_adjacent_revision(bisector.good_rev):
+ # Only show this step if bisect has reached adjacent revisions.
+ with api.m.step.nest(str('Check bisect finished on revision ' +
+ bisector.good_rev.revision_string())):
+ if bisector.check_bisect_finished(bisector.good_rev):
+ bisector.bisect_over = True
+ if not bisector.bisect_over:
+ _bisect_main_loop(bisector)
+ else:
+ bisector.bisect_over = True
+ bisector.print_result_debug_info()
+ bisector.post_result(halt_on_failure=True)
def _gather_reference_range(api, bisector): # pragma: no cover
« no previous file with comments | « scripts/slave/recipe_modules/auto_bisect/api.py ('k') | scripts/slave/recipe_modules/bisect_tester/api.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698