| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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']) |
| OLD | NEW |