OLD | NEW |
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 DEPS = [ | 5 DEPS = [ |
6 'auto_bisect', | 6 'auto_bisect', |
7 'bisect_tester', | 7 'bisect_tester', |
8 'chromium', | 8 'chromium', |
9 'chromium_tests', | 9 'chromium_tests', |
10 'gclient', | 10 'gclient', |
11 'recipe_engine/json', | 11 'recipe_engine/json', |
12 'recipe_engine/path', | 12 'recipe_engine/path', |
13 'recipe_engine/platform', | 13 'recipe_engine/platform', |
14 'recipe_engine/properties', | 14 'recipe_engine/properties', |
15 'recipe_engine/raw_io', | 15 'recipe_engine/raw_io', |
16 'recipe_engine/step' | 16 'recipe_engine/step' |
17 ] | 17 ] |
18 | 18 |
| 19 |
19 def RunSteps(api): | 20 def RunSteps(api): |
20 mastername = api.properties.get('mastername') | 21 mastername = api.properties.get('mastername') |
21 buildername = api.properties.get('buildername') | 22 buildername = api.properties.get('buildername') |
22 # TODO(akuegel): Explicitly load the builder configs instead of relying on | 23 # TODO(akuegel): Explicitly load the builder configs instead of relying on |
23 # builder.py from chromium_tests recipe module. | 24 # builder.py from chromium_tests recipe module. |
24 api.chromium_tests.configure_build(mastername, buildername) | 25 api.chromium_tests.configure_build(mastername, buildername) |
25 api.gclient.apply_config('perf') | 26 api.gclient.apply_config('perf') |
26 update_step, master_dict, _ = \ | 27 update_step, master_dict, _ = \ |
27 api.chromium_tests.prepare_checkout(mastername, buildername) | 28 api.chromium_tests.prepare_checkout(mastername, buildername) |
28 api.auto_bisect.start_try_job(api, update_step=update_step, | 29 api.auto_bisect.start_try_job(api, update_step=update_step, |
29 master_dict=master_dict) | 30 master_dict=master_dict) |
30 | 31 |
| 32 |
31 def GenTests(api): | 33 def GenTests(api): |
32 yield (api.test('basic') | 34 yield (api.test('basic') |
33 +api.properties.tryserver( | 35 +api.properties.tryserver( |
34 mastername='tryserver.chromium.perf', | 36 mastername='tryserver.chromium.perf', |
35 buildername='linux_perf_bisect') | 37 buildername='linux_perf_bisect') |
36 + api.override_step_data( | 38 + api.override_step_data( |
37 'git diff to analyze patch', | 39 'git diff to analyze patch', |
38 api.raw_io.stream_output('tools/auto_bisect/bisect.cfg'))) | 40 api.raw_io.stream_output('tools/auto_bisect/bisect.cfg'))) |
39 | 41 |
40 config_json = { | 42 config_json = { |
(...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
236 + api.step_data('saving url to temp file', | 238 + api.step_data('saving url to temp file', |
237 stdout=api.raw_io.output('/tmp/dummy1')) | 239 stdout=api.raw_io.output('/tmp/dummy1')) |
238 + api.step_data('saving json to temp file', | 240 + api.step_data('saving json to temp file', |
239 stdout=api.raw_io.output('/tmp/dummy2')) | 241 stdout=api.raw_io.output('/tmp/dummy2')) |
240 + api.properties(bisect_config=bisect_ret_code_config) | 242 + api.properties(bisect_config=bisect_ret_code_config) |
241 + api.properties(job_name='f7a7b4135624439cbd27fdd5133d74ec') | 243 + api.properties(job_name='f7a7b4135624439cbd27fdd5133d74ec') |
242 + api.bisect_tester(tempfile='/tmp/dummy') | 244 + api.bisect_tester(tempfile='/tmp/dummy') |
243 + api.properties(parent_got_revision='1111111') | 245 + api.properties(parent_got_revision='1111111') |
244 + api.properties(parent_build_archive_url='gs://test-domain/test-archive.zip') | 246 + api.properties(parent_build_archive_url='gs://test-domain/test-archive.zip') |
245 ) | 247 ) |
246 | |
OLD | NEW |