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

Unified 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: rebase 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « slave/skia_slave_scripts/run_gm.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: slave/skia_slave_scripts/upload_rendered_skps.py
diff --git a/slave/skia_slave_scripts/upload_rendered_skps.py b/slave/skia_slave_scripts/upload_rendered_skps.py
index d3fd49d35a8b36de9e4ac383e24431d12038473e..c2a2fe0cd2fc6270bba019560f441631eea9b0b0 100644
--- a/slave/skia_slave_scripts/upload_rendered_skps.py
+++ b/slave/skia_slave_scripts/upload_rendered_skps.py
@@ -3,17 +3,19 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
-"""Uploads the results of render_skps.py.
-
-TODO(epoger): In the midst of re-implementing using checksums;
-see https://code.google.com/p/skia/issues/detail?id=1942
-"""
+"""Uploads the results of render_skps.py."""
+import os
+import posixpath
import sys
-from build_step import BuildStep
+from build_step import BuildStep, PLAYBACK_CANNED_ACL
+from utils import gs_utils
+import skia_vars
import upload_gm_results
+SUBDIR_NAME = 'rendered-skps'
+
class UploadRenderedSKPs(upload_gm_results.UploadGMResults):
@@ -22,9 +24,16 @@ class UploadRenderedSKPs(upload_gm_results.UploadGMResults):
attempts=attempts, **kwargs)
def _Run(self):
- self._SVNUploadJsonFiles(src_dir=self.skp_out_dir,
- dest_subdir='rendered-skps')
-
+ gs_utils.copy_storage_directory(
+ src_dir=os.path.abspath(self.playback_actual_images_dir),
+ dest_dir=posixpath.join(
+ skia_vars.GetGlobalVariable('googlestorage_bucket'), SUBDIR_NAME),
+ gs_acl=PLAYBACK_CANNED_ACL)
+ # TODO(epoger): Change ACLs of files uploaded to Google Storage to
+ # google.com:READ . See _SetGoogleReadACLs() in
+ # https://skia.googlesource.com/buildbot/+/master/slave/skia_slave_scripts/webpages_playback.py
+ self._SVNUploadJsonFiles(src_dir=self.playback_actual_summaries_dir,
+ dest_subdir=SUBDIR_NAME)
if '__main__' == __name__:
sys.exit(BuildStep.RunBuildStep(UploadRenderedSKPs))
« no previous file with comments | « 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