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

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

Issue 2270963002: Make skia recipes explicitly set GIT_MODE (Closed) Base URL: https://chromium.googlesource.com/chromium/tools/build.git@master
Patch Set: Rebase Created 4 years, 3 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/recipes/skia/ct_skps.py » ('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 2014 The Chromium Authors. All rights reserved. 1 # Copyright 2014 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 5
6 import json 6 import json
7 import os 7 import os
8 import re 8 import re
9 import sys 9 import sys
10 10
(...skipping 277 matching lines...) Expand 10 before | Expand all | Expand 10 after
288 cmd=[git, 'reset', '--hard', repo.revision], 288 cmd=[git, 'reset', '--hard', repo.revision],
289 cwd=repo_path, 289 cwd=repo_path,
290 infra_step=True) 290 infra_step=True)
291 self.m.step('git clean', 291 self.m.step('git clean',
292 cmd=[git, 'clean', '-d', '-f'], 292 cmd=[git, 'clean', '-d', '-f'],
293 cwd=repo_path, 293 cwd=repo_path,
294 infra_step=True) 294 infra_step=True)
295 295
296 def checkout_steps(self): 296 def checkout_steps(self):
297 """Run the steps to obtain a checkout of Skia.""" 297 """Run the steps to obtain a checkout of Skia."""
298 cfg_kwargs = {} 298 cfg_kwargs = {'GIT_MODE': True}
299 if not self.persistent_checkout: 299 if not self.persistent_checkout:
300 # We should've obtained the Skia checkout through isolates, so we don't 300 # We should've obtained the Skia checkout through isolates, so we don't
301 # need to perform the checkout ourselves. 301 # need to perform the checkout ourselves.
302 self.m.path['checkout'] = self.skia_dir 302 self.m.path['checkout'] = self.skia_dir
303 self.got_revision = self.m.properties['revision'] 303 self.got_revision = self.m.properties['revision']
304 return 304 return
305 305
306 # Use a persistent gclient cache for Swarming. 306 # Use a persistent gclient cache for Swarming.
307 cfg_kwargs['CACHE_DIR'] = self.gclient_cache 307 cfg_kwargs['CACHE_DIR'] = self.gclient_cache
308 308
(...skipping 574 matching lines...) Expand 10 before | Expand all | Expand 10 after
883 # Don't bother to include role, which is always Test. 883 # Don't bother to include role, which is always Test.
884 # TryBots are uploaded elsewhere so they can use the same key. 884 # TryBots are uploaded elsewhere so they can use the same key.
885 blacklist = ['role', 'is_trybot'] 885 blacklist = ['role', 'is_trybot']
886 886
887 flat = [] 887 flat = []
888 for k in sorted(self.builder_cfg.keys()): 888 for k in sorted(self.builder_cfg.keys()):
889 if k not in blacklist: 889 if k not in blacklist:
890 flat.append(k) 890 flat.append(k)
891 flat.append(self.builder_cfg[k]) 891 flat.append(self.builder_cfg[k])
892 return flat 892 return flat
OLDNEW
« no previous file with comments | « no previous file | scripts/slave/recipes/skia/ct_skps.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698