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

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: Add builders property to chromium_tests test_api. 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
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 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 mastername = api.properties.get('mastername') 64 mastername = api.properties.get('mastername')
65 buildername = api.properties.get('buildername') 65 buildername = api.properties.get('buildername')
66 api.chromium_tests.load_builder_configs(mastername)
66 api.chromium_tests.configure_build(mastername, buildername) 67 api.chromium_tests.configure_build(mastername, buildername)
67 api.chromium_tests.prepare_checkout(mastername, buildername) 68 api.chromium_tests.prepare_checkout(mastername, buildername)
68 api.auto_bisect.run_bisect_script('dummy_extra_src', '/dummy/path/') 69 api.auto_bisect.run_bisect_script('dummy_extra_src', '/dummy/path/')
69 70
70 def GenTests(api): 71 def GenTests(api):
71 wait_for_any_output = ( 72 wait_for_any_output = (
72 'Build finished: gs://chrome-perf/bisect-results/' 73 'Build finished: gs://chrome-perf/bisect-results/'
73 'a6298e4afedbf2cd461755ea6f45b0ad64222222-test.results') 74 'a6298e4afedbf2cd461755ea6f45b0ad64222222-test.results')
74 basic_data = _get_basic_test_data() 75 basic_data = _get_basic_test_data()
75 basic_test = _make_test(api, basic_data, 'basic') 76 basic_test = _make_test(api, basic_data, 'basic')
(...skipping 231 matching lines...) Expand 10 before | Expand all | Expand 10 after
307 step_name = 'Expanding revision range for revision %s on depot %s' 308 step_name = 'Expanding revision range for revision %s on depot %s'
308 step_name %= (interval[0], depot_name) 309 step_name %= (interval[0], depot_name)
309 stdout = api.raw_io.output('\n'.join(interval)) 310 stdout = api.raw_io.output('\n'.join(interval))
310 yield api.step_data(step_name, stdout=stdout) 311 yield api.step_data(step_name, stdout=stdout)
311 312
312 if 'cl_info' in revision_data: 313 if 'cl_info' in revision_data:
313 step_name = 'Reading culprit cl information.' 314 step_name = 'Reading culprit cl information.'
314 stdout = api.raw_io.output(revision_data['cl_info']) 315 stdout = api.raw_io.output(revision_data['cl_info'])
315 yield api.step_data(step_name, stdout=stdout) 316 yield api.step_data(step_name, stdout=stdout)
316 317
OLDNEW
« no previous file with comments | « no previous file | scripts/slave/recipe_modules/chromium/api.py » ('j') | scripts/slave/recipe_modules/chromium_tests/api.py » ('J')

Powered by Google App Engine
This is Rietveld 408576698