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

Issue 742173002: GSUtil.py wrapper script (Closed)

Created:
6 years, 1 month ago by hinoka
Modified:
6 years ago
Reviewers:
dnj, Ryan Tseng, navabi, 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

GSUtil.py wrapper script This is for transitioning us out of the horribly outdated gsutil 3.4 thats currently residing in depot_tools. This script: 1. Downloads GSUtil, pinned to a version (4.6 by default). 2. Executes GSUtil with the given parameters 3. (TODO) Runs the fallback GSUtil if #2 fails. The transition plan is: 1. Set the fallback as default, making this script a no-op 2. Modify recipes (main consumer of gsutil) to pass in --force_version 4.6 3. Switch 4.6 as the default for gsutil.py 4. Make fallback failure a loud red failure 5. Remove depot_tools/third_party/gsutil BUG=434422 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=293320

Patch Set 1 #

Patch Set 2 : Style and fallback #

Patch Set 3 : Working tests #

Total comments: 2

Patch Set 4 : Review comments #

Patch Set 5 : Working #

Total comments: 10

Patch Set 6 : Review #

Total comments: 2

Patch Set 7 : Enable the code path #

Total comments: 4

Patch Set 8 : Nits #

Unified diffs Side-by-side diffs Delta from patch set Stats (+319 lines, -0 lines) Patch
M .gitignore View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
A gsutil.py View 1 2 3 4 5 6 7 1 chunk +147 lines, -0 lines 0 comments Download
A tests/gsutil_test.py View 1 2 3 4 5 6 1 chunk +171 lines, -0 lines 0 comments Download

Messages

Total messages: 30 (7 generated)
hinoka
PTAL. This is as we discussed earlier. Code is done, tests are almost done (need ...
6 years, 1 month ago (2014-11-20 18:52:22 UTC) #2
Ryan Tseng
Okay tests are done now.
6 years, 1 month ago (2014-11-20 19:36:52 UTC) #4
Ryan Tseng
Coverage report: 74% on gsutil.py
6 years, 1 month ago (2014-11-20 19:39:24 UTC) #5
dnj
Overall looks really good. Consider making the "<depot_tools>/gsutil_bin" path more generic (in anticipation of other ...
6 years, 1 month ago (2014-11-20 19:58:27 UTC) #6
hinoka
Addressed comment by swapping out with a more generic mock <depot_tools>/gsutil_bin moved to <depot_tools>/bin/gsutil https://codereview.chromium.org/742173002/diff/40001/tests/gsutil_test.py ...
6 years, 1 month ago (2014-11-20 21:20:16 UTC) #7
hinoka
Ignore that, still need a couple fixes.
6 years, 1 month ago (2014-11-20 21:21:09 UTC) #8
Ryan Tseng
Okay now its good, ptal.
6 years, 1 month ago (2014-11-20 21:58:21 UTC) #9
dnj
Still looks pretty good! One comment r.e. directory naming. https://codereview.chromium.org/742173002/diff/70004/.gitignore File .gitignore (right): https://codereview.chromium.org/742173002/diff/70004/.gitignore#newcode27 .gitignore:27: ...
6 years, 1 month ago (2014-11-20 23:03:03 UTC) #10
Ryan Tseng
https://codereview.chromium.org/742173002/diff/70004/.gitignore File .gitignore (right): https://codereview.chromium.org/742173002/diff/70004/.gitignore#newcode27 .gitignore:27: /gsutil_bin On 2014/11/20 23:03:02, dnj wrote: > Need to ...
6 years, 1 month ago (2014-11-21 02:14:55 UTC) #11
dnj
lgtm https://codereview.chromium.org/742173002/diff/90001/gsutil.py File gsutil.py (right): https://codereview.chromium.org/742173002/diff/90001/gsutil.py#newcode122 gsutil.py:122: # gsutil_bin = ensure_gsutil(force_version, target) So when do ...
6 years, 1 month ago (2014-11-21 03:04:01 UTC) #12
navabi
Ping. This CL is waiting for this to land: https://codereview.chromium.org/709663002/
6 years ago (2014-12-01 19:47:01 UTC) #14
dnj
On 2014/12/01 19:47:01, navabi wrote: > Ping. This CL is waiting for this to land: ...
6 years ago (2014-12-01 19:50:08 UTC) #15
navabi
On 2014/12/01 19:50:08, dnj wrote: > On 2014/12/01 19:47:01, navabi wrote: > > Ping. This ...
6 years ago (2014-12-01 20:02:58 UTC) #16
dnj
On 2014/12/01 20:02:58, navabi wrote: > On 2014/12/01 19:50:08, dnj wrote: > > On 2014/12/01 ...
6 years ago (2014-12-01 20:05:28 UTC) #17
navabi
On 2014/12/01 20:05:28, dnj wrote: > On 2014/12/01 20:02:58, navabi wrote: > > On 2014/12/01 ...
6 years ago (2014-12-01 20:12:44 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/742173002/90001
6 years ago (2014-12-09 22:49:35 UTC) #20
commit-bot: I haz the power
Presubmit check for 742173002-90001 failed and returned exit status 1. Running presubmit commit checks ...
6 years ago (2014-12-09 22:51:56 UTC) #22
hinoka
pgervais: Can I get an owners stamp from you? https://codereview.chromium.org/742173002/diff/90001/gsutil.py File gsutil.py (right): https://codereview.chromium.org/742173002/diff/90001/gsutil.py#newcode122 gsutil.py:122: ...
6 years ago (2014-12-10 00:12:07 UTC) #24
pgervais
I have two nits. https://codereview.chromium.org/742173002/diff/110001/gsutil.py File gsutil.py (right): https://codereview.chromium.org/742173002/diff/110001/gsutil.py#newcode32 gsutil.py:32: class InvalidGsutilError(Exception): Missing blank line ...
6 years ago (2014-12-10 00:19:35 UTC) #25
hinoka
https://codereview.chromium.org/742173002/diff/110001/gsutil.py File gsutil.py (right): https://codereview.chromium.org/742173002/diff/110001/gsutil.py#newcode32 gsutil.py:32: class InvalidGsutilError(Exception): On 2014/12/10 00:19:35, pgervais wrote: > Missing ...
6 years ago (2014-12-10 01:46:46 UTC) #26
pgervais
On 2014/12/10 01:46:46, hinoka (OoO until 12-7) wrote: > https://codereview.chromium.org/742173002/diff/110001/gsutil.py > File gsutil.py (right): > ...
6 years ago (2014-12-10 01:58:05 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/742173002/130001
6 years ago (2014-12-10 02:02:24 UTC) #29
commit-bot: I haz the power
6 years ago (2014-12-10 02:04:42 UTC) #30
Message was sent while issue was closed.
Committed patchset #8 (id:130001) as
http://src.chromium.org/viewvc/chrome?view=rev&revision=293320

Powered by Google App Engine
This is Rietveld 408576698