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

Side by Side Diff: scripts/slave/recipes/perf/telemetry_harness_upload.py

Issue 1101673005: Extract functions from path recipe module so that step can depend on it (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/build
Patch Set: Created 5 years, 8 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 | Annotate | Revision Log
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 DEPS = [ 5 DEPS = [
6 'bot_update', 6 'bot_update',
7 'chromium', 7 'chromium',
8 'file',
8 'gclient', 9 'gclient',
9 'gsutil', 10 'gsutil',
10 'path', 11 'path',
11 'properties', 12 'properties',
12 'step', 13 'step',
13 ] 14 ]
14 15
15 16
16 def GenSteps(api): 17 def GenSteps(api):
17 kwargs = {} 18 kwargs = {}
(...skipping 15 matching lines...) Expand all
33 harness_path.join(harness_file), 34 harness_path.join(harness_file),
34 ] 35 ]
35 ) 36 )
36 37
37 bucket = 'chromium-telemetry' 38 bucket = 'chromium-telemetry'
38 cloud_file = 'snapshots/%s' % harness_file 39 cloud_file = 'snapshots/%s' % harness_file
39 api.gsutil.upload(harness_path.join(harness_file), bucket, cloud_file, 40 api.gsutil.upload(harness_path.join(harness_file), bucket, cloud_file,
40 link_name='Telemetry r%s' % got_revision) 41 link_name='Telemetry r%s' % got_revision)
41 api.gsutil.copy(bucket, cloud_file, bucket, 'snapshots/telemetry.zip', 42 api.gsutil.copy(bucket, cloud_file, bucket, 'snapshots/telemetry.zip',
42 link_name='Telemetry latest') 43 link_name='Telemetry latest')
43 api.path.rmtree('remove harness temp directory', harness_path) 44 api.file.rmtree('remove harness temp directory', harness_path)
44 45
45 46
46 def GenTests(api): 47 def GenTests(api):
47 yield ( 48 yield (
48 api.test('basic') + 49 api.test('basic') +
49 api.properties.generic( 50 api.properties.generic(
50 mastername='chromium.lkgr', 51 mastername='chromium.lkgr',
51 buildername='Telemetry Harness Upload') 52 buildername='Telemetry Harness Upload')
52 ) 53 )
OLDNEW
« no previous file with comments | « scripts/slave/recipes/perf/telemetry_generate_large_profile.py ('k') | scripts/slave/recipes/skia/infra.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698