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

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

Issue 1574433004: Allow a single trybot to mirror multiple waterfall bots. (Closed) Base URL: https://chromium.googlesource.com/chromium/tools/build.git@bot-config-and-test-db
Patch Set: Created 4 years, 11 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 '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 def RunSteps(api): 19 def RunSteps(api):
20 mastername = api.properties.get('mastername') 20 mastername = api.properties.get('mastername')
21 buildername = api.properties.get('buildername') 21 buildername = api.properties.get('buildername')
22 # TODO(akuegel): Explicitly load the builder configs instead of relying on 22 # TODO(akuegel): Explicitly load the builder configs instead of relying on
23 # builder.py from chromium_tests recipe module. 23 # builder.py from chromium_tests recipe module.
24 api.chromium_tests.configure_build(mastername, buildername) 24 bot_desc = api.chromium_tests.create_bot_desc(mastername, buildername)
25 api.chromium_tests.configure_build(bot_desc)
25 api.gclient.apply_config('perf') 26 api.gclient.apply_config('perf')
26 update_step, bot_db = \ 27 update_step, bot_db = \
27 api.chromium_tests.prepare_checkout(mastername, buildername) 28 api.chromium_tests.prepare_checkout(bot_desc)
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 bot_db=bot_db) 30 bot_db=bot_db)
30 31
31 def GenTests(api): 32 def GenTests(api):
32 yield (api.test('basic') 33 yield (api.test('basic')
33 +api.properties.tryserver( 34 +api.properties.tryserver(
34 mastername='tryserver.chromium.perf', 35 mastername='tryserver.chromium.perf',
35 buildername='linux_perf_bisect') 36 buildername='linux_perf_bisect')
36 + api.override_step_data( 37 + api.override_step_data(
37 'git diff to analyze patch', 38 'git diff to analyze patch',
(...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after
237 stdout=api.raw_io.output('/tmp/dummy1')) 238 stdout=api.raw_io.output('/tmp/dummy1'))
238 + api.step_data('saving json to temp file', 239 + api.step_data('saving json to temp file',
239 stdout=api.raw_io.output('/tmp/dummy2')) 240 stdout=api.raw_io.output('/tmp/dummy2'))
240 + api.properties(bisect_config=bisect_ret_code_config) 241 + api.properties(bisect_config=bisect_ret_code_config)
241 + api.properties(job_name='f7a7b4135624439cbd27fdd5133d74ec') 242 + api.properties(job_name='f7a7b4135624439cbd27fdd5133d74ec')
242 + api.bisect_tester(tempfile='/tmp/dummy') 243 + api.bisect_tester(tempfile='/tmp/dummy')
243 + api.properties(parent_got_revision='1111111') 244 + api.properties(parent_got_revision='1111111')
244 + api.properties(parent_build_archive_url='gs://test-domain/test-archive.zip') 245 + api.properties(parent_build_archive_url='gs://test-domain/test-archive.zip')
245 ) 246 )
246 247
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698