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

Side by Side Diff: infra/bots/recipe_modules/vars/api.py

Issue 2221413002: Move ct_skps recipe from tools repo to Skia repo (Closed) Base URL: https://skia.googlesource.com/skia@master
Patch Set: Address comments 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 2016 The Chromium Authors. All rights reserved. 1 # Copyright 2016 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 # pylint: disable=W0201 6 # pylint: disable=W0201
7 7
8 8
9 from recipe_engine import recipe_api 9 from recipe_engine import recipe_api
10 10
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 # default. We have to set it manually. 42 # default. We have to set it manually.
43 self.m.path.c.base_paths['depot_tools'] = ( 43 self.m.path.c.base_paths['depot_tools'] = (
44 self.m.path.c.base_paths['slave_build'] + 44 self.m.path.c.base_paths['slave_build'] +
45 ('skia', 'infra', 'bots', '.recipe_deps', 'depot_tools')) 45 ('skia', 'infra', 'bots', '.recipe_deps', 'depot_tools'))
46 if 'Win' in self.builder_name: 46 if 'Win' in self.builder_name:
47 self.m.path.c.base_paths['depot_tools'] = ( 47 self.m.path.c.base_paths['depot_tools'] = (
48 'c:\\', 'Users', 'chrome-bot', 'depot_tools') 48 'c:\\', 'Users', 'chrome-bot', 'depot_tools')
49 49
50 # Compile bots keep a persistent checkout. 50 # Compile bots keep a persistent checkout.
51 self.persistent_checkout = (self.is_compile_bot or 51 self.persistent_checkout = (self.is_compile_bot or
52 'RecreateSKPs' in self.builder_name) 52 'RecreateSKPs' in self.builder_name or
53 '-CT_' in self.builder_name)
53 if self.persistent_checkout: 54 if self.persistent_checkout:
54 if 'Win' in self.builder_name: 55 if 'Win' in self.builder_name:
55 self.checkout_root = self.make_path('C:\\', 'b', 'work') 56 self.checkout_root = self.make_path('C:\\', 'b', 'work')
56 self.gclient_cache = self.make_path('C:\\', 'b', 'cache') 57 self.gclient_cache = self.make_path('C:\\', 'b', 'cache')
57 else: 58 else:
58 self.checkout_root = self.make_path('/', 'b', 'work') 59 self.checkout_root = self.make_path('/', 'b', 'work')
59 self.gclient_cache = self.make_path('/', 'b', 'cache') 60 self.gclient_cache = self.make_path('/', 'b', 'cache')
60 61
61 # got_revision is filled in after checkout steps. 62 # got_revision is filled in after checkout steps.
62 self.got_revision = None 63 self.got_revision = None
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
135 for s in skip_upload_bots: 136 for s in skip_upload_bots:
136 if s in self.m.properties['buildername']: 137 if s in self.m.properties['buildername']:
137 upload_dm_results = False 138 upload_dm_results = False
138 break 139 break
139 return upload_dm_results 140 return upload_dm_results
140 141
141 @property 142 @property
142 def upload_perf_results(self): 143 def upload_perf_results(self):
143 # TODO(borenet): Move this into the swarm_perf recipe. 144 # TODO(borenet): Move this into the swarm_perf recipe.
144 return ('Release' in self.m.properties['buildername']) 145 return ('Release' in self.m.properties['buildername'])
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698