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

Issue 772203002: Don't check bucket permissions if --no-auth. (Closed)

Created:
6 years ago by ojan
Modified:
6 years ago
Reviewers:
agable, iannucci
CC:
chromium-reviews, cmp-cc_chromium.org, Dirk Pranke, iannucci+depot_tools_chromium.org, ghost stip (do not use)
Base URL:
https://chromium.googlesource.com/chromium/tools/depot_tools.git@master
Project:
tools
Visibility:
Public.

Description

Don't check bucket permissions if --no-auth. Checking bucket permissions takes ~400ms. We don't need to do this if --no-auth because we know we won't get a 403 and the 404 check will be handled later when we try to actually download the file. Also, remove the check for a null bucket. This can't happen since we will throw a parser error in the main function before we get to this code. R=iannucci@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=293250

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+7 lines, -9 lines) Patch
M download_from_google_storage.py View 2 chunks +7 lines, -9 lines 2 comments Download

Messages

Total messages: 14 (5 generated)
ojan
Ryan, are you the right reviewer for this?
6 years ago (2014-12-02 22:40:01 UTC) #2
ojan
Looks like ryan is OOO. agable?
6 years ago (2014-12-03 21:06:58 UTC) #4
ojan
Incidentally, this cuts the null gclient sync time for the mojo repository from >4s to ...
6 years ago (2014-12-04 17:37:19 UTC) #5
iannucci
lgtm https://codereview.chromium.org/772203002/diff/1/download_from_google_storage.py File download_from_google_storage.py (right): https://codereview.chromium.org/772203002/diff/1/download_from_google_storage.py#newcode455 download_from_google_storage.py:455: base_url = 'gs://%s' % options.bucket hah, I guess ...
6 years ago (2014-12-04 19:35:21 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/772203002/1
6 years ago (2014-12-04 20:10:14 UTC) #9
commit-bot: I haz the power
Presubmit check for 772203002-1 failed and returned exit status 1. Running presubmit commit checks ...
6 years ago (2014-12-04 20:12:26 UTC) #11
ojan
Committed patchset #1 (id:1) manually as 293250.
6 years ago (2014-12-04 22:11:10 UTC) #12
Vadim Sh.
A revert of this CL (patchset #1 id:1) has been created in https://codereview.chromium.org/784433003/ by vadimsh@chromium.org. ...
6 years ago (2014-12-04 22:37:52 UTC) #13
agable
6 years ago (2014-12-04 22:38:24 UTC) #14
Message was sent while issue was closed.
https://codereview.chromium.org/772203002/diff/1/download_from_google_storage.py
File download_from_google_storage.py (right):

https://codereview.chromium.org/772203002/diff/1/download_from_google_storage...
download_from_google_storage.py:459: code = check_bucket_permissions(base_url,
gsutil, options.no_auth)
This is causing errors: sending three arguments to a function which takes only
two.

Powered by Google App Engine
This is Rietveld 408576698