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

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

Issue 1917243002: Revert "build: roll infra_paths changes" (Closed) Base URL: https://chromium.googlesource.com/chromium/tools/build.git@master
Patch Set: Created 4 years, 7 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 5
6 from recipe_engine import recipe_api 6 from recipe_engine import recipe_api
7 7
8 8
9 9
10 class CTApi(recipe_api.RecipeApi): 10 class CTApi(recipe_api.RecipeApi):
11 """Provides steps to run CT tasks.""" 11 """Provides steps to run CT tasks."""
12 12
13 CT_GS_BUCKET = 'cluster-telemetry' 13 CT_GS_BUCKET = 'cluster-telemetry'
14 14
15 @property 15 @property
16 def downloads_dir(self): 16 def downloads_dir(self):
17 """Path to where artifacts should be downloaded from Google Storage.""" 17 """Path to where artifacts should be downloaded from Google Storage."""
18 return self.m.infra_paths['slave_build'].join('src', 'content', 'test', 'ct' ) 18 return self.m.path['slave_build'].join('src', 'content', 'test', 'ct')
19 19
20 def checkout_dependencies(self): 20 def checkout_dependencies(self):
21 """Checks out all repositories required for CT to run.""" 21 """Checks out all repositories required for CT to run."""
22 self.m.chromium.set_config('chromium') 22 self.m.chromium.set_config('chromium')
23 self.m.gclient.set_config('chromium') 23 self.m.gclient.set_config('chromium')
24 self.m.bot_update.ensure_checkout(force=True) 24 self.m.bot_update.ensure_checkout(force=True)
25 25
26 def download_skps(self, page_type, slave_num, skps_chromium_build, dest_dir): 26 def download_skps(self, page_type, slave_num, skps_chromium_build, dest_dir):
27 """Downloads SKPs corresponding to the specified page type, slave and build. 27 """Downloads SKPs corresponding to the specified page type, slave and build.
28 28
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 dest=page_sets_dir) 82 dest=page_sets_dir)
83 83
84 # Download archives. 84 # Download archives.
85 wpr_dir = page_sets_dir.join('data') 85 wpr_dir = page_sets_dir.join('data')
86 self.m.file.makedirs('WPR dir', wpr_dir) 86 self.m.file.makedirs('WPR dir', wpr_dir)
87 self.m.gsutil.download( 87 self.m.gsutil.download(
88 bucket=self.CT_GS_BUCKET, 88 bucket=self.CT_GS_BUCKET,
89 source='swarming/webpage_archives/%s/slave%s/*' % (page_type, 89 source='swarming/webpage_archives/%s/slave%s/*' % (page_type,
90 slave_num), 90 slave_num),
91 dest=wpr_dir) 91 dest=wpr_dir)
OLDNEW
« no previous file with comments | « scripts/slave/recipe_modules/ct/__init__.py ('k') | scripts/slave/recipe_modules/disk/__init__.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698