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

Side by Side Diff: scripts/slave/recipe_modules/auto_bisect/example.py

Issue 1185693002: Move builders.py and steps.py to chromium_tests. (Closed) Base URL: https://chromium.googlesource.com/chromium/tools/build.git@master
Patch Set: Address review comments. Created 5 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 unified diff | Download patch
« no previous file with comments | « no previous file | scripts/slave/recipe_modules/chromium/api.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2015 The Chromium Authors. All rights reserved. 1 # Copyright 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 import json 5 import json
6 6
7 DEPS = [ 7 DEPS = [
8 'auto_bisect', 8 'auto_bisect',
9 'chromium_tests', 9 'chromium_tests',
10 'path', 10 'path',
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 api.auto_bisect.query_revision_info(revisions_to_check[0].commit_hash) 54 api.auto_bisect.query_revision_info(revisions_to_check[0].commit_hash)
55 else: 55 else:
56 raise api.step.StepFailure('Expected revisions to check.') 56 raise api.step.StepFailure('Expected revisions to check.')
57 # TODO(robertocn): Add examples for the following operations 57 # TODO(robertocn): Add examples for the following operations
58 # Abort unnecesary jobs # Print results 58 # Abort unnecesary jobs # Print results
59 59
60 # Test runner for classic bisect script. 60 # Test runner for classic bisect script.
61 # Calls bisect script in recipe wrapper with extra_src and path_to_config, 61 # Calls bisect script in recipe wrapper with extra_src and path_to_config,
62 # to override default behavior. 62 # to override default behavior.
63 if api.properties.get('mastername'): 63 if api.properties.get('mastername'):
64 # TODO(akuegel): Load the config explicitly instead of relying on the
65 # builders.py entries in chromium_tests.
64 mastername = api.properties.get('mastername') 66 mastername = api.properties.get('mastername')
65 buildername = api.properties.get('buildername') 67 buildername = api.properties.get('buildername')
66 api.chromium_tests.configure_build(mastername, buildername) 68 api.chromium_tests.configure_build(mastername, buildername)
67 api.chromium_tests.prepare_checkout(mastername, buildername) 69 api.chromium_tests.prepare_checkout(mastername, buildername)
68 api.auto_bisect.run_bisect_script('dummy_extra_src', '/dummy/path/') 70 api.auto_bisect.run_bisect_script('dummy_extra_src', '/dummy/path/')
69 71
70 def GenTests(api): 72 def GenTests(api):
71 wait_for_any_output = ( 73 wait_for_any_output = (
72 'Build finished: gs://chrome-perf/bisect-results/' 74 'Build finished: gs://chrome-perf/bisect-results/'
73 'a6298e4afedbf2cd461755ea6f45b0ad64222222-test.results') 75 'a6298e4afedbf2cd461755ea6f45b0ad64222222-test.results')
(...skipping 233 matching lines...) Expand 10 before | Expand all | Expand 10 after
307 step_name = 'Expanding revision range for revision %s on depot %s' 309 step_name = 'Expanding revision range for revision %s on depot %s'
308 step_name %= (interval[0], depot_name) 310 step_name %= (interval[0], depot_name)
309 stdout = api.raw_io.output('\n'.join(interval)) 311 stdout = api.raw_io.output('\n'.join(interval))
310 yield api.step_data(step_name, stdout=stdout) 312 yield api.step_data(step_name, stdout=stdout)
311 313
312 if 'cl_info' in revision_data: 314 if 'cl_info' in revision_data:
313 step_name = 'Reading culprit cl information.' 315 step_name = 'Reading culprit cl information.'
314 stdout = api.raw_io.output(revision_data['cl_info']) 316 stdout = api.raw_io.output(revision_data['cl_info'])
315 yield api.step_data(step_name, stdout=stdout) 317 yield api.step_data(step_name, stdout=stdout)
316 318
OLDNEW
« no previous file with comments | « no previous file | scripts/slave/recipe_modules/chromium/api.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698