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

Unified Diff: slave/skia_slave_scripts/upload_skimage_results.py

Issue 27389002: Write skimage output to checksum filenames. (Closed) Base URL: https://skia.googlecode.com/svn/buildbot
Patch Set: rebase Created 7 years, 2 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_decoding_tests.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_skimage_results.py
diff --git a/slave/skia_slave_scripts/upload_skimage_results.py b/slave/skia_slave_scripts/upload_skimage_results.py
index aa2ebafd278cc8928b7fc17b817f4a6351a1678a..9dcf7527a13d25124991ddb61729b6a76e5fd0cd 100644
--- a/slave/skia_slave_scripts/upload_skimage_results.py
+++ b/slave/skia_slave_scripts/upload_skimage_results.py
@@ -44,7 +44,7 @@ class UploadSKImageResults(BuildStep):
def _Run(self):
if self._do_upload_results:
- # Copy actual-results.json to skimage/output/actuals
+ # Copy actual-results.json to skimage/actuals
print '\n\n====Uploading skimage actual-results to Google Storage====\n\n'
src_dir = os.path.abspath(os.path.join(self._skimage_out_dir,
self._builder_name))
@@ -57,21 +57,16 @@ class UploadSKImageResults(BuildStep):
gs_acl='public-read',
http_header_lines=http_header_lines)
- # Copy actual images and expectations to Google Storage.
- # TODO(scroggo): This step uploads both the expectations and the
- # mismatches, even though the expectations files were already uploaded
- # in the above step. Once skimage is rewritten to include the hash digest
- # in the filename, rewrite this to upload a folder (named <input image>)
- # containing the result (named <hash digest>.png), much like
- # upload_gm_results.
+ # Copy actual images to Google Storage at skimage/output. This will merge
+ # with the existing files.
print '\n\n========Uploading skimage results to Google Storage=======\n\n'
- relative_dir = posixpath.join('skimage', 'output', self._builder_name)
- gs_utils.UploadDirectoryContentsIfChanged(
- gs_base=self._dest_gsbase,
- gs_relative_dir=relative_dir,
- gs_acl=PLAYBACK_CANNED_ACL,
- force_upload=True,
- local_dir=self._skimage_out_dir)
+ src_dir = os.path.abspath(os.path.join(self._skimage_out_dir, 'images'))
+ dest_dir = posixpath.join(
+ skia_vars.GetGlobalVariable('googlestorage_bucket'),
+ 'skimage', 'output')
+ gs_utils.CopyStorageDirectory(src_dir=src_dir,
+ dest_dir=dest_dir,
+ gs_acl=PLAYBACK_CANNED_ACL)
if '__main__' == __name__:
sys.exit(BuildStep.RunBuildStep(UploadSKImageResults))
« no previous file with comments | « slave/skia_slave_scripts/run_decoding_tests.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698