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

Issue 6677023: Update prebuilt.py to handle private google storage uploads. (Closed)

Created:
9 years, 9 months ago by scottz
Modified:
9 years, 7 months ago
Reviewers:
davidjames
CC:
chromium-os-reviews_chromium.org, Dave Parker
Base URL:
ssh://git@gitrw.chromium.org:9222/chromite@master
Visibility:
Public.

Description

Update prebuilt.py to handle private google storage uploads. Remove boto configuration, anyone using this script should either have ~/.boto set or they should be starting it with BOTO_CONFIG=.... Add in support for acl xml files, If we pass an ACL xml file we first upload the file to google storage with the canned acl of private then apply the ACL. Automatically derive the binhost_url for private Google Storage uploads and warn if people set --private and --binhost-base-url. Update unittests to pass with the new private assumptions. BUG=NA TEST=Ran on a canary build chroot to make sure we upload and set URLs properly Committed: http://chrome-svn/viewvc/chromeos?view=rev&revision=ab1bed3

Patch Set 1 #

Total comments: 5

Patch Set 2 : Remove unnecessary parens #

Patch Set 3 : Add more error handling around the ACL file/canned ACLs #

Total comments: 6

Patch Set 4 : Add in a comma, align quotes, and make this fail as if the upload failed instead of just exiting #

Patch Set 5 : 'update comment for acl check' #

Patch Set 6 : Modify approach to automatically derive the xml acl file #

Patch Set 7 : Fix >80 chars #

Patch Set 8 : Add print >> sys.stderr for error message #

Unified diffs Side-by-side diffs Delta from patch set Stats (+55 lines, -15 lines) Patch
M buildbot/prebuilt.py View 1 2 3 4 5 6 7 5 chunks +47 lines, -13 lines 0 comments Download
M buildbot/prebuilt_unittest.py View 1 2 3 4 5 1 chunk +8 lines, -2 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
scottz
9 years, 9 months ago (2011-03-14 22:01:33 UTC) #1
scottz
+dparker
9 years, 9 months ago (2011-03-14 22:02:23 UTC) #2
davidjames
LGTM w/nits http://codereview.chromium.org/6677023/diff/1/buildbot/prebuilt.py File buildbot/prebuilt.py (right): http://codereview.chromium.org/6677023/diff/1/buildbot/prebuilt.py#newcode288 buildbot/prebuilt.py:288: cmd = '%s cp -a private %s ...
9 years, 9 months ago (2011-03-14 22:31:44 UTC) #3
scottz
PTAL http://codereview.chromium.org/6677023/diff/1/buildbot/prebuilt.py File buildbot/prebuilt.py (right): http://codereview.chromium.org/6677023/diff/1/buildbot/prebuilt.py#newcode288 buildbot/prebuilt.py:288: cmd = '%s cp -a private %s %s' ...
9 years, 9 months ago (2011-03-14 22:57:45 UTC) #4
davidjames
Still LGTM, but a suggestion. http://codereview.chromium.org/6677023/diff/1/buildbot/prebuilt.py File buildbot/prebuilt.py (right): http://codereview.chromium.org/6677023/diff/1/buildbot/prebuilt.py#newcode288 buildbot/prebuilt.py:288: cmd = '%s cp ...
9 years, 9 months ago (2011-03-16 18:48:32 UTC) #5
scottz
On 2011/03/16 18:48:32, davidjames wrote: > Still LGTM, but a suggestion. > > http://codereview.chromium.org/6677023/diff/1/buildbot/prebuilt.py > ...
9 years, 9 months ago (2011-03-16 19:02:24 UTC) #6
scottz
PTAL, per our discussion I added a bit more error checking and a message should ...
9 years, 9 months ago (2011-03-16 21:29:01 UTC) #7
davidjames
LGTM w/nits http://codereview.chromium.org/6677023/diff/5002/buildbot/prebuilt.py File buildbot/prebuilt.py (right): http://codereview.chromium.org/6677023/diff/5002/buildbot/prebuilt.py#newcode292 buildbot/prebuilt.py:292: 'unknown canned acl. %s aborting upload') % ...
9 years, 9 months ago (2011-03-16 21:29:39 UTC) #8
scottz
PTAL good point about the exiting portion, I decided to just make it fail as ...
9 years, 9 months ago (2011-03-16 21:36:05 UTC) #9
scottz
PTAL modified the approach according to our discussion this is definitely the preferred way for ...
9 years, 9 months ago (2011-03-16 22:13:53 UTC) #10
davidjames
9 years, 9 months ago (2011-03-16 22:17:06 UTC) #11
LGTM

Powered by Google App Engine
This is Rietveld 408576698