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

Unified Diff: scripts/slave/chromium/archive_layout_test_results.py

Issue 22449006: Second attempt at adding archive_layout_test_results to the blink trybots. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/build
Patch Set: Fix archive_layout_tests to take gs-bucket Created 7 years, 4 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 | « scripts/slave/annotated_run.py ('k') | scripts/slave/recipes/blink_trybot.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: scripts/slave/chromium/archive_layout_test_results.py
diff --git a/scripts/slave/chromium/archive_layout_test_results.py b/scripts/slave/chromium/archive_layout_test_results.py
index bcd423d5a447f8ddd2f34ef6ef0144c44612475b..66d1aa1991f02b64b75545df299a0e699d07389a 100755
--- a/scripts/slave/chromium/archive_layout_test_results.py
+++ b/scripts/slave/chromium/archive_layout_test_results.py
@@ -144,10 +144,9 @@ def archive_layout(options, args):
results_dir_basename.replace('-','_'), build_name)
dest_dir = os.path.join(dest_parent_dir, last_change)
- gs_bucket = options.factory_properties.get('gs_bucket', None)
- if gs_bucket:
- gs_base = '/'.join([gs_bucket, build_name, build_number])
- gs_acl = options.factory_properties.get('gs_acl', None)
+ if options.gs_bucket:
+ gs_base = '/'.join([options.gs_bucket, build_name, build_number])
+ gs_acl = options.gs_acl
Dirk Pranke 2013/08/06 21:40:03 Do we actually need gs_acl ? I don't think we're c
slave_utils.GSUtilCopyFile(zip_file, gs_base, gs_acl=gs_acl)
slave_utils.GSUtilCopyFile(full_results_json, gs_base, gs_acl=gs_acl)
slave_utils.GSUtilCopyFile(failing_results_json, gs_base, gs_acl=gs_acl)
@@ -177,8 +176,24 @@ def main():
default=None,
help=('The build number of the builder running'
'this script.'))
+ option_parser.add_option('', '--gs-bucket',
+ default=None,
+ help=('The google storage bucket to upload to. '
+ 'If provided, this script will upload to gs '
+ 'instead of the master.'))
+ option_parser.add_option('', '--gs-acl',
+ default=None,
+ help=('The ACL of the google storage files.'))
chromium_utils.AddPropertiesOptions(option_parser)
options, args = option_parser.parse_args()
+
+ # To continue supporting buildbot, initialize these from the
+ # factory_properties if they were not supplied on the command line.
+ if not options.gs_bucket:
+ options.gs_bucket = options.factory_properties.get('gs_bucket')
+ if not options.gs_acl:
+ options.gs_acl = options.factory_properties.get('gs_acl')
+
return archive_layout(options, args)
« no previous file with comments | « scripts/slave/annotated_run.py ('k') | scripts/slave/recipes/blink_trybot.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698