From: "David James (Code Review)" <ger...@chromium.org>
Date: Tue, 30 Oct 2012 22:18:55 -0700
Local: Wed, Oct 31 2012 1:18 am
Subject: Enable deploy_chrome.py to deploy from a build output direct... [chromiumos/chromite : master]
David James has posted comments on this change.
Change subject: Enable deploy_chrome.py to deploy from a build output directory.
Patch Set 10: (13 inline comments)
....................................................
Note that if you want to check whether a path has magic characters in it you can use glob.has_magic
Line 130: if os.path.isdir(src):
src_is_dir = os.path.isdir(src)
Line 145: logging.warning('%s does not exist. Skipping.', src)
Line 149: Line 211: def SetPermissions():
A private function would be more appropriate, I think.
....................................................
Line 52: if parsed.hostname == 'sandbox.google.com':
Line 56: assert storage == 'storage', 'GS URL %s not in expected format.' % value
....................................................
Line 277: help=optparse.SUPPRESS_HELP)
Line 326: gsutil_tar = os.path.join(tempdir, 'gsutil.tar.gz')
Line 346: files.sort()
The case you mentioned where there are multiple versions of Chrome uploaded for a given buildbot run sounds like an error case (and we should fail on that case, right?)
sorting and picking the oldest version of Chrome that was uploaded doesn't sound correct anyway, and sort() won't sort version numbers correctly anyhow
Line 347: cros_build_lib.logger.warning('Multiple chrome packages found. Using %s',
--
Gerrit-MessageType: comment
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||