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

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

Issue 2216113002: Break out of for loop if bisect job succeeds on one test device (Closed) Base URL: https://chromium.googlesource.com/chromium/tools/build.git@master
Patch Set: Created 4 years, 4 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 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 'auto_bisect', 8 'auto_bisect',
9 'bisect_tester', 9 'bisect_tester',
10 'depot_tools/bot_update', 10 'depot_tools/bot_update',
(...skipping 539 matching lines...) Expand 10 before | Expand all | Expand 10 after
550 parent_got_revision='1111111', 550 parent_got_revision='1111111',
551 parent_build_archive_url='gs://test-domain/test-archive.zip') + 551 parent_build_archive_url='gs://test-domain/test-archive.zip') +
552 api.bisect_tester(tempfile='/tmp/dummy') + 552 api.bisect_tester(tempfile='/tmp/dummy') +
553 api.step_data( 553 api.step_data(
554 'Gathering reference values.saving json to temp file', 554 'Gathering reference values.saving json to temp file',
555 stdout=api.raw_io.output('/tmp/dummy3')) + 555 stdout=api.raw_io.output('/tmp/dummy3')) +
556 api.step_data( 556 api.step_data(
557 'Gathering reference values.saving json to temp file (2)', 557 'Gathering reference values.saving json to temp file (2)',
558 stdout=api.raw_io.output('/tmp/dummy4')) + 558 stdout=api.raw_io.output('/tmp/dummy4')) +
559 api.override_step_data('device_status', 559 api.override_step_data('device_status',
560 api.json.output(working_device)) + 560 api.json.output(two_devices)) +
561 api.override_step_data('device_status (2)', 561 api.override_step_data('device_status (2)',
562 api.json.output(working_device)) + 562 api.json.output(two_devices)) +
563 api.step_data('Resolving reference range.crrev get commit hash for ' + 563 api.step_data('Resolving reference range.crrev get commit hash for ' +
564 ('refs/heads/master@{#%s}' % local_bisect_config['bad_revision']), 564 ('refs/heads/master@{#%s}' % local_bisect_config['bad_revision']),
565 stdout=api.json.output( 565 stdout=api.json.output(
566 {'git_sha': bad_revision_hash}))+ 566 {'git_sha': bad_revision_hash}))+
567 api.step_data('Resolving reference range.crrev get commit hash for ' + 567 api.step_data('Resolving reference range.crrev get commit hash for ' +
568 ('refs/heads/master@{#%s}' % local_bisect_config[ 568 ('refs/heads/master@{#%s}' % local_bisect_config[
569 'good_revision']), 569 'good_revision']),
570 stdout=api.json.output( 570 stdout=api.json.output(
571 {'git_sha': good_revision_hash}))+ 571 {'git_sha': good_revision_hash}))+
572 api.step_data('Expanding revision range.for revisions %s:%s' % ( 572 api.step_data('Expanding revision range.for revisions %s:%s' % (
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
675 # multiple_device_status 675 # multiple_device_status
676 api.step_data('Debug Info', retcode=1) + 676 api.step_data('Debug Info', retcode=1) +
677 api.override_step_data('device_status (3)', 677 api.override_step_data('device_status (3)',
678 api.json.output(working_device)) + 678 api.json.output(working_device)) +
679 api.step_data('Expanding revision range.for revisions %s:%s (2)' % ( 679 api.step_data('Expanding revision range.for revisions %s:%s (2)' % (
680 good_revision_hash, bad_revision_hash), 680 good_revision_hash, bad_revision_hash),
681 stdout=api.json.output([[bad_revision_hash, 'ignored'], [ 681 stdout=api.json.output([[bad_revision_hash, 'ignored'], [
682 good_revision_hash, 'ignored']])) + 682 good_revision_hash, 'ignored']])) +
683 api.step_data('Post bisect results', 683 api.step_data('Post bisect results',
684 stdout=api.json.output({'status_code': 200}))) 684 stdout=api.json.output({'status_code': 200})))
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698