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

Side by Side Diff: scripts/slave/recipe_modules/auto_bisect/api.py

Issue 2377113002: Set update gclient config with override deps. (Closed)
Patch Set: Created 4 years, 2 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
« no previous file with comments | « no previous file | scripts/slave/recipe_modules/auto_bisect/example.expected/android_arm64_bisector.json » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 209 matching lines...) Expand 10 before | Expand all | Expand 10 after
220 skip_download=skip_download) 220 skip_download=skip_download)
221 221
222 def ensure_checkout(self, *args, **kwargs): 222 def ensure_checkout(self, *args, **kwargs):
223 if self.working_dir: 223 if self.working_dir:
224 kwargs.setdefault('cwd', self.working_dir) 224 kwargs.setdefault('cwd', self.working_dir)
225 225
226 return self.m.bot_update.ensure_checkout(*args, **kwargs) 226 return self.m.bot_update.ensure_checkout(*args, **kwargs)
227 227
228 def _SyncRevisionToTest(self, test_config_params): # pragma: no cover 228 def _SyncRevisionToTest(self, test_config_params): # pragma: no cover
229 if not self.internal_bisect: 229 if not self.internal_bisect:
230 self.m.gclient.c.revisions.update(
231 test_config_params['deps_revision_overrides'])
230 return self.ensure_checkout( 232 return self.ensure_checkout(
231 root_solution_revision=test_config_params['revision']) 233 root_solution_revision=test_config_params['revision'])
232 else: 234 else:
233 return self._SyncRevisionsForAndroidChrome( 235 return self._SyncRevisionsForAndroidChrome(
234 test_config_params['revision_ladder']) 236 test_config_params['revision_ladder'])
235 237
236 def _SyncRevisionsForAndroidChrome(self, revision_ladder): # pragma: no cover 238 def _SyncRevisionsForAndroidChrome(self, revision_ladder): # pragma: no cover
237 """Syncs android-chrome and chromium repos to particular revision.""" 239 """Syncs android-chrome and chromium repos to particular revision."""
238 revisions = [] 240 revisions = []
239 for d, r in revision_ladder.iteritems(): 241 for d, r in revision_ladder.iteritems():
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after
414 api, affected_files, update_step, self.bot_db) 416 api, affected_files, update_step, self.bot_db)
415 finally: 417 finally:
416 if api.chromium.c.TARGET_PLATFORM == 'android': 418 if api.chromium.c.TARGET_PLATFORM == 'android':
417 if self.internal_bisect: # pragma: no cover 419 if self.internal_bisect: # pragma: no cover
418 api.chromium_android.init_and_sync( 420 api.chromium_android.init_and_sync(
419 gclient_config=api.chromium_android.c.internal_dir_name, 421 gclient_config=api.chromium_android.c.internal_dir_name,
420 use_bot_update=True) 422 use_bot_update=True)
421 else: 423 else:
422 self.ensure_checkout() 424 self.ensure_checkout()
423 api.chromium_android.common_tests_final_steps() 425 api.chromium_android.common_tests_final_steps()
OLDNEW
« no previous file with comments | « no previous file | scripts/slave/recipe_modules/auto_bisect/example.expected/android_arm64_bisector.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698