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

Side by Side Diff: slave/skia_slave_scripts/upload_rendered_skps.py

Issue 295753002: upload SKP renderings that did not match expectations (Closed) Base URL: https://skia.googlesource.com/buildbot.git@master
Patch Set: Created 6 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 #!/usr/bin/env python 1 #!/usr/bin/env python
2 # Copyright (c) 2014 The Chromium Authors. All rights reserved. 2 # Copyright (c) 2014 The Chromium Authors. All rights reserved.
3 # Use of this source code is governed by a BSD-style license that can be 3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file. 4 # found in the LICENSE file.
5 5
6 """Uploads the results of render_skps.py. 6 """Uploads the results of render_skps.py."""
7 7
8 TODO(epoger): In the midst of re-implementing using checksums; 8 import os
9 see https://code.google.com/p/skia/issues/detail?id=1942 9 import posixpath
10 """
11
12 import sys 10 import sys
13 11
14 from build_step import BuildStep 12 from build_step import BuildStep
13 from utils import gs_utils
14 import skia_vars
15 import upload_gm_results 15 import upload_gm_results
16 16
17 # EPOGER: Before committing, find out from Ravi how GS_* should be set.
epoger 2014/05/19 19:35:40 Ravi- please weigh in on this. We are uploading i
rmistry 2014/05/20 11:11:35 Yes this looks correct. Stop by when you have a ch
18 GS_ACL = 'project-private'
19 GS_HTTP_HEADER_LINES = None # EPOGER: since these are private, we don't use ['C ache-Control:public,max-age=3600'] as we do for GM results. Right?
20 SUBDIR_NAME = 'rendered-skps'
21
17 22
18 class UploadRenderedSKPs(upload_gm_results.UploadGMResults): 23 class UploadRenderedSKPs(upload_gm_results.UploadGMResults):
19 24
20 def __init__(self, attempts=3, **kwargs): 25 def __init__(self, attempts=3, **kwargs):
21 super(UploadRenderedSKPs, self).__init__( 26 super(UploadRenderedSKPs, self).__init__(
22 attempts=attempts, **kwargs) 27 attempts=attempts, **kwargs)
23 28
24 def _Run(self): 29 def _Run(self):
25 self._SVNUploadJsonFiles(src_dir=self.skp_out_dir, 30 gs_utils.copy_storage_directory(
26 dest_subdir='rendered-skps') 31 src_dir=os.path.abspath(self.playback_actual_images_dir),
27 32 dest_dir=posixpath.join(
33 skia_vars.GetGlobalVariable('googlestorage_bucket'), SUBDIR_NAME),
34 gs_acl=GS_ACL,
35 http_header_lines=GS_HTTP_HEADER_LINES)
36 self._SVNUploadJsonFiles(src_dir=self.playback_actual_summaries_dir,
37 dest_subdir=SUBDIR_NAME)
28 38
29 if '__main__' == __name__: 39 if '__main__' == __name__:
30 sys.exit(BuildStep.RunBuildStep(UploadRenderedSKPs)) 40 sys.exit(BuildStep.RunBuildStep(UploadRenderedSKPs))
OLDNEW
« slave/skia_slave_scripts/run_gm.py ('K') | « slave/skia_slave_scripts/run_gm.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698