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

Side by Side Diff: scripts/slave/recipe_modules/auto_bisect/api.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 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 """API for the bisect recipe module. 5 """API for the bisect recipe module.
6 6
7 This API is meant to enable the bisect recipe to bisect any chromium-supported 7 This API is meant to enable the bisect recipe to bisect any chromium-supported
8 platform for any test that can be run via buildbot, perf or otherwise. 8 platform for any test that can be run via buildbot, perf or otherwise.
9 """ 9 """
10 10
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 ] 122 ]
123 self.m.chromium.runtest( 123 self.m.chromium.runtest(
124 self.m.path['checkout'].join('tools', 'run-bisect-perf-regression.py'), 124 self.m.path['checkout'].join('tools', 'run-bisect-perf-regression.py'),
125 ['-w', self.m.path['slave_build']] + args, 125 ['-w', self.m.path['slave_build']] + args,
126 name='Running Bisection', 126 name='Running Bisection',
127 xvfb=True, **kwargs) 127 xvfb=True, **kwargs)
128 128
129 def run_local_test_run(self, api, test_config_params): # pragma: no cover 129 def run_local_test_run(self, api, test_config_params): # pragma: no cover
130 mastername = api.properties.get('mastername') 130 mastername = api.properties.get('mastername')
131 buildername = api.properties.get('buildername') 131 buildername = api.properties.get('buildername')
132 api.chromium_tests.configure_build(mastername, buildername) 132 bot_desc = api.chromium_tests.create_bot_desc(mastername, buildername)
133 api.chromium_tests.configure_build(bot_desc)
133 api.gclient.apply_config('perf') 134 api.gclient.apply_config('perf')
134 update_step, bot_db = \ 135 update_step, bot_db = \
135 api.chromium_tests.prepare_checkout( 136 api.chromium_tests.prepare_checkout(
136 mastername, buildername, 137 bot_desc,
137 root_solution_revision=test_config_params['revision']) 138 root_solution_revision=test_config_params['revision'])
138 self.start_test_run_for_bisect(api, update_step, bot_db, 139 self.start_test_run_for_bisect(api, update_step, bot_db,
139 test_config_params, run_locally=True) 140 test_config_params, run_locally=True)
140 141
141 def start_test_run_for_bisect(self, api, update_step, bot_db, 142 def start_test_run_for_bisect(self, api, update_step, bot_db,
142 test_config_params, run_locally=False): 143 test_config_params, run_locally=False):
143 mastername = api.properties.get('mastername') 144 mastername = api.properties.get('mastername')
144 buildername = api.properties.get('buildername') 145 buildername = api.properties.get('buildername')
145 bot_config = bot_db.get_bot_config(mastername, buildername) 146 bot_config = bot_db.get_bot_config(mastername, buildername)
146 if not run_locally: 147 if not run_locally:
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
235 api.properties) 236 api.properties)
236 else: 237 else:
237 self.m.perf_try.start_perf_try_job( 238 self.m.perf_try.start_perf_try_job(
238 affected_files, update_step, bot_db) 239 affected_files, update_step, bot_db)
239 finally: 240 finally:
240 # Avoid duplication of device setup steps for bisect recipe tester, which 241 # Avoid duplication of device setup steps for bisect recipe tester, which
241 # are run while running tests in chromium_tests.wrap_chromium_tests. 242 # are run while running tests in chromium_tests.wrap_chromium_tests.
242 if (api.properties.get('bisect_config') is None and 243 if (api.properties.get('bisect_config') is None and
243 api.chromium.c.TARGET_PLATFORM == 'android'): 244 api.chromium.c.TARGET_PLATFORM == 'android'):
244 api.chromium_android.common_tests_final_steps() 245 api.chromium_android.common_tests_final_steps()
OLDNEW
« no previous file with comments | « no previous file | scripts/slave/recipe_modules/auto_bisect/example.py » ('j') | scripts/slave/recipe_modules/chromium_tests/api.py » ('J')

Powered by Google App Engine
This is Rietveld 408576698