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

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

Issue 2172553003: The second solution solution for ToT catapult. (Closed) Base URL: https://chromium.googlesource.com/chromium/tools/build.git@master
Patch Set: Passing gclient config name to BuildSpec. 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 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 'depot_tools/gclient', 10 'depot_tools/gclient',
(...skipping 11 matching lines...) Expand all
22 buildername = api.properties.get('buildername') 22 buildername = api.properties.get('buildername')
23 # TODO(akuegel): Explicitly load the builder configs instead of relying on 23 # TODO(akuegel): Explicitly load the builder configs instead of relying on
24 # builder.py from chromium_tests recipe module. 24 # builder.py from chromium_tests recipe module.
25 bot_config = api.chromium_tests.create_bot_config_object(mastername, 25 bot_config = api.chromium_tests.create_bot_config_object(mastername,
26 buildername) 26 buildername)
27 api.chromium_tests.configure_build(bot_config) 27 api.chromium_tests.configure_build(bot_config)
28 api.gclient.apply_config('perf') 28 api.gclient.apply_config('perf')
29 # TODO(robertocn): remove do_not_nest_wait_for_revision once downstream 29 # TODO(robertocn): remove do_not_nest_wait_for_revision once downstream
30 # expectations have been fixed, and make it behave like this by default. 30 # expectations have been fixed, and make it behave like this by default.
31 update_step, bot_db = api.chromium_tests.prepare_checkout(bot_config) 31 update_step, bot_db = api.chromium_tests.prepare_checkout(bot_config)
32 api.path.c.dynamic_paths['catapult'] = api.path['slave_build'].join(
dtu 2016/08/10 01:19:40 What does this do?
RobertoCN 2016/08/10 22:59:54 it makes it so that we can do api.path['catapult']
33 'catapult')
32 api.auto_bisect.start_try_job(api, update_step=update_step, bot_db=bot_db, 34 api.auto_bisect.start_try_job(api, update_step=update_step, bot_db=bot_db,
33 do_not_nest_wait_for_revision=True) 35 do_not_nest_wait_for_revision=True)
34 36
35 37
36 def GenTests(api): 38 def GenTests(api):
37 yield (api.test('basic') + api.properties.tryserver( 39 yield (api.test('basic') + api.properties.tryserver(
38 mastername='tryserver.chromium.perf', 40 mastername='tryserver.chromium.perf',
39 buildername='linux_perf_bisect') + api.override_step_data( 41 buildername='linux_perf_bisect') + api.override_step_data(
40 'git diff to analyze patch', 42 'git diff to analyze patch',
41 api.raw_io.stream_output('tools/auto_bisect/bisect.cfg'))) 43 api.raw_io.stream_output('tools/auto_bisect/bisect.cfg')))
(...skipping 283 matching lines...) Expand 10 before | Expand all | Expand 10 after
325 buildername='linux_perf_bisect') + 327 buildername='linux_perf_bisect') +
326 api.step_data('saving url to temp file', 328 api.step_data('saving url to temp file',
327 stdout=api.raw_io.output('/tmp/dummy1')) + api.step_data( 329 stdout=api.raw_io.output('/tmp/dummy1')) + api.step_data(
328 'saving json to temp file', 330 'saving json to temp file',
329 stdout=api.raw_io.output('/tmp/dummy2')) + 331 stdout=api.raw_io.output('/tmp/dummy2')) +
330 api.properties(bisect_config=bisect_ret_code_config) + api.properties( 332 api.properties(bisect_config=bisect_ret_code_config) + api.properties(
331 job_name='f7a7b4135624439cbd27fdd5133d74ec') + 333 job_name='f7a7b4135624439cbd27fdd5133d74ec') +
332 api.bisect_tester(tempfile='/tmp/dummy') + api.properties( 334 api.bisect_tester(tempfile='/tmp/dummy') + api.properties(
333 parent_got_revision='1111111') + api.properties( 335 parent_got_revision='1111111') + api.properties(
334 parent_build_archive_url='gs://test-domain/test-archive.zip')) 336 parent_build_archive_url='gs://test-domain/test-archive.zip'))
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698