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

Issue 841823002: gsutil: Pass proxy information via Boto options. (Closed)

Created:
5 years, 11 months ago by Raphael Kubo da Costa (rakuco)
Modified:
5 years, 11 months ago
CC:
chromium-reviews, cmp-cc_chromium.org, Dirk Pranke, iannucci+depot_tools_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/tools/depot_tools.git@master
Target Ref:
refs/heads/master
Project:
tools
Visibility:
Public.

Description

gsutil: Pass proxy information via Boto options. Since the move to gsutil 4.7, download_from_google_storage --no_auth has been broken for people behind proxies, as it unsets the BOTO_CONFIG environment variable despite gsutil requiring proxy information to be set in a Boto configuration file. This has been reported in https://github.com/GoogleCloudPlatform/gsutil/issues/241, and it was suggested we worked around the issue for now by passing the proxy information ourselves via "gsutil -o". Implement it by parsing the http_proxy environment variable and transforming its contents into a series of "-o" arguments that are passed to the actual gsutil script. BUG=chromium:443523

Patch Set 1 #

Total comments: 3

Patch Set 2 : Patch v2 #

Total comments: 3

Patch Set 3 : Patch v3 with different order #

Total comments: 5
Unified diffs Side-by-side diffs Delta from patch set Stats (+33 lines, -1 line) Patch
M gsutil.py View 1 2 2 chunks +33 lines, -1 line 5 comments Download

Messages

Total messages: 11 (2 generated)
Raphael Kubo da Costa (rakuco)
5 years, 11 months ago (2015-01-07 19:26:06 UTC) #2
Ryan Tseng
This looks like a good solution. A couple of comments. https://codereview.chromium.org/841823002/diff/1/gsutil.py File gsutil.py (right): https://codereview.chromium.org/841823002/diff/1/gsutil.py#newcode125 ...
5 years, 11 months ago (2015-01-07 22:21:58 UTC) #3
Raphael Kubo da Costa (rakuco)
Patch v2 should address all the comments. As I mentioned in my email to infra-dev, ...
5 years, 11 months ago (2015-01-08 12:10:00 UTC) #4
agable
https://codereview.chromium.org/841823002/diff/20001/gsutil.py File gsutil.py (right): https://codereview.chromium.org/841823002/diff/20001/gsutil.py#newcode132 gsutil.py:132: for env_var in ('http_proxy', 'HTTP_PROXY', 'https_proxy', 'HTTPS_PROXY'): Shouldn't we ...
5 years, 11 months ago (2015-01-08 20:39:01 UTC) #5
Raphael Kubo da Costa (rakuco)
https://codereview.chromium.org/841823002/diff/20001/gsutil.py File gsutil.py (right): https://codereview.chromium.org/841823002/diff/20001/gsutil.py#newcode132 gsutil.py:132: for env_var in ('http_proxy', 'HTTP_PROXY', 'https_proxy', 'HTTPS_PROXY'): On 2015/01/08 ...
5 years, 11 months ago (2015-01-08 22:29:02 UTC) #6
Raphael Kubo da Costa (rakuco)
Patch v3 is up for review.
5 years, 11 months ago (2015-01-08 22:30:41 UTC) #7
Primiano Tucci (use gerrit)
Many thanks for taking the time of doing this. LGTM with some small suggestions (please ...
5 years, 11 months ago (2015-01-09 17:17:31 UTC) #8
Raphael Kubo da Costa
https://codereview.chromium.org/841823002/diff/40001/gsutil.py File gsutil.py (right): https://codereview.chromium.org/841823002/diff/40001/gsutil.py#newcode137 gsutil.py:137: if proxy_variable is None: On 2015/01/09 17:17:31, Primiano Tucci ...
5 years, 11 months ago (2015-01-09 17:54:13 UTC) #10
Raphael Kubo da Costa (rakuco)
5 years, 11 months ago (2015-01-16 17:08:04 UTC) #11
https://codereview.chromium.org/844373002 landed instead, closing this one.

Powered by Google App Engine
This is Rietveld 408576698