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

Issue 797663003: Use gsutil.py for download_from_google_storage instead of the builtin one (Closed)

Created:
6 years ago by hinoka
Modified:
6 years ago
Reviewers:
dnj, jamesr, pgervais
CC:
chromium-reviews, Dirk Pranke, cmp-cc_chromium.org, iannucci+depot_tools_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/tools/depot_tools.git@master
Project:
tools
Visibility:
Public.

Description

Use gsutil.py for download_from_google_storage instead of the builtin one This pins gsutil to a vanilla 4.7 instead of the weird custom 3.4 we have in depot_tools BUG= R=pgervais@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=293413

Patch Set 1 #

Patch Set 2 : check_call fix #

Total comments: 2

Patch Set 3 : Nits #

Patch Set 4 : Also modifies references in git_cache, upload_to_google_storage #

Unified diffs Side-by-side diffs Delta from patch set Stats (+11 lines, -21 lines) Patch
M download_from_google_storage.py View 1 2 5 chunks +7 lines, -13 lines 0 comments Download
M git_cache.py View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M upload_to_google_storage.py View 1 2 3 3 chunks +3 lines, -7 lines 0 comments Download

Messages

Total messages: 33 (10 generated)
hinoka
Smoketests (depot_tools/tests/download_from_google_storage_tests.py) pass, a local attempt at downloading chrome-goma passes, and a chromium gclient sync ...
6 years ago (2014-12-11 22:25:34 UTC) #2
hinoka
So I'm pretty sure this will work, but I'll still have to do the whole ...
6 years ago (2014-12-17 00:48:16 UTC) #5
pgervais
One nit. Checking: have you tested that it works locally? https://codereview.chromium.org/797663003/diff/20001/download_from_google_storage.py File download_from_google_storage.py (right): https://codereview.chromium.org/797663003/diff/20001/download_from_google_storage.py#newcode63 ...
6 years ago (2014-12-17 01:07:08 UTC) #6
hinoka
Yep I've tested that this works locally with chrome-goma (build/) and chromium src. https://codereview.chromium.org/797663003/diff/20001/download_from_google_storage.py File ...
6 years ago (2014-12-17 01:09:41 UTC) #7
pgervais
On 2014/12/17 01:09:41, hinoka wrote: > Yep I've tested that this works locally with chrome-goma ...
6 years ago (2014-12-17 01:11:00 UTC) #8
pgervais
On 2014/12/17 01:11:00, pgervais wrote: > On 2014/12/17 01:09:41, hinoka wrote: > > Yep I've ...
6 years ago (2014-12-17 01:13:17 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/797663003/40001
6 years ago (2014-12-17 01:22:40 UTC) #11
commit-bot: I haz the power
Presubmit check for 797663003-40001 failed and returned exit status 1. Running presubmit commit checks ...
6 years ago (2014-12-17 01:26:00 UTC) #13
hinoka
Added 2 more files because I changed the function signature and forgot other things referenced ...
6 years ago (2014-12-17 01:47:13 UTC) #14
pgervais
On 2014/12/17 01:47:13, hinoka wrote: > Added 2 more files because I changed the function ...
6 years ago (2014-12-17 01:53:10 UTC) #15
hinoka
Yep, and those don't contain the problematic "bypass_prodaccess" string. They do however point to a ...
6 years ago (2014-12-17 01:58:59 UTC) #16
pgervais
On 2014/12/17 01:58:59, hinoka wrote: > Yep, and those don't contain the problematic "bypass_prodaccess" string. ...
6 years ago (2014-12-17 02:00:28 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/797663003/60001
6 years ago (2014-12-17 02:02:12 UTC) #19
commit-bot: I haz the power
Presubmit check for 797663003-60001 failed and returned exit status 1. Running presubmit commit checks ...
6 years ago (2014-12-17 02:05:01 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/797663003/60001
6 years ago (2014-12-17 02:06:32 UTC) #23
commit-bot: I haz the power
Presubmit check for 797663003-60001 failed and returned exit status 1. Running presubmit commit checks ...
6 years ago (2014-12-17 02:09:20 UTC) #25
hinoka
Committed patchset #4 (id:60001) manually as 293413.
6 years ago (2014-12-17 02:17:18 UTC) #26
jamesr
This breaks setting the +x bit on downloaded binaries. The download_from_google_storage.py script greps the output ...
6 years ago (2014-12-17 21:19:52 UTC) #28
hinoka
Actually if I force the version to 3.4 it still outputs "executable = 1" instead ...
6 years ago (2014-12-17 21:25:53 UTC) #29
jamesr
Here's the output of depot_tool's third_party/gsutil prior to this patch: $ ./third_party/gsutil/gsutil ls -L gs://chromium-gn/e31efdf9e6ea82aa75556968b71adf194928be34 ...
6 years ago (2014-12-17 21:27:17 UTC) #30
jamesr
And here's output from the google cloud SDK's gsutil (version 4.7): $ gsutil ls -L ...
6 years ago (2014-12-17 21:28:37 UTC) #31
jamesr
Ah, they just moved it under a 'Metadata' header. Guessing they didn't expect people to ...
6 years ago (2014-12-17 21:31:49 UTC) #32
hinoka
6 years ago (2014-12-17 21:32:20 UTC) #33
Message was sent while issue was closed.
Ok I talked to dnj, he explained this is because GS now intentionally strips off
the x-goog-meta header.  I'll fire off a CL to fix this.

Powered by Google App Engine
This is Rietveld 408576698