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

Issue 870093003: Hook sys.stdio directly to the gsutil subprocess for the gsutil call (Closed)

Created:
5 years, 11 months ago by hinoka
Modified:
5 years, 11 months ago
Reviewers:
pgervais, scottmg
CC:
chromium-reviews, cmp-cc_chromium.org, dpranke+depot_tools_chromium.org, iannucci+depot_tools_chromium.org
Target Ref:
refs/heads/master
Project:
tools
Visibility:
Public.

Description

Hook sys.stdio directly to the gsutil subprocess for the gsutil call So that gsutil.py config works. I would've preferred the execv solution, but apparently that didn't work on Windows :( BUG=451551 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=293790

Patch Set 1 #

Total comments: 2

Patch Set 2 : Always native, always verbose #

Patch Set 3 : Spelling #

Patch Set 4 : Print to stderr #

Total comments: 2

Patch Set 5 : subprocess.call() #

Total comments: 4

Patch Set 6 : Review #

Patch Set 7 : No print #

Patch Set 8 : Fix tests #

Unified diffs Side-by-side diffs Delta from patch set Stats (+19 lines, -47 lines) Patch
M gsutil.py View 1 2 3 4 5 6 3 chunks +4 lines, -32 lines 0 comments Download
M tests/gsutil_test.py View 1 2 3 4 5 6 7 6 chunks +15 lines, -15 lines 0 comments Download

Messages

Total messages: 24 (6 generated)
hinoka
5 years, 11 months ago (2015-01-23 20:47:24 UTC) #2
scottmg
Confirm that I the output when running `download_from_google_storage --config` on Windows with this. https://codereview.chromium.org/870093003/diff/1/gsutil.py File ...
5 years, 11 months ago (2015-01-23 20:51:54 UTC) #3
scottmg
"that I see the output", even. On Fri, Jan 23, 2015 at 12:51 PM, <scottmg@chromium.org> ...
5 years, 11 months ago (2015-01-23 20:52:22 UTC) #4
hinoka
New patch gets rid of "verbose" also. Net effect is that "gsutil version: 4.7" is ...
5 years, 11 months ago (2015-01-23 21:05:35 UTC) #5
scottmg
https://codereview.chromium.org/870093003/diff/60001/gsutil.py File gsutil.py (right): https://codereview.chromium.org/870093003/diff/60001/gsutil.py#newcode40 gsutil.py:40: def call(args, **kwargs): I think this is just subprocess.call() ...
5 years, 11 months ago (2015-01-23 21:09:41 UTC) #6
hinoka
https://codereview.chromium.org/870093003/diff/60001/gsutil.py File gsutil.py (right): https://codereview.chromium.org/870093003/diff/60001/gsutil.py#newcode40 gsutil.py:40: def call(args, **kwargs): On 2015/01/23 21:09:41, scottmg wrote: > ...
5 years, 11 months ago (2015-01-23 21:56:25 UTC) #7
pgervais
https://codereview.chromium.org/870093003/diff/80001/gsutil.py File gsutil.py (right): https://codereview.chromium.org/870093003/diff/80001/gsutil.py#newcode72 gsutil.py:72: print >> sys.stderr, 'Downloading gsutil from %s...' % url ...
5 years, 11 months ago (2015-01-23 21:59:18 UTC) #8
scottmg
lgtm https://codereview.chromium.org/870093003/diff/80001/gsutil.py File gsutil.py (right): https://codereview.chromium.org/870093003/diff/80001/gsutil.py#newcode42 gsutil.py:42: args, stdin=sys.stdin, stdout=sys.stdout, stderr=sys.stderr) stdout=None, etc means it ...
5 years, 11 months ago (2015-01-23 22:07:23 UTC) #9
pgervais
On 2015/01/23 22:07:23, scottmg wrote: > lgtm > > https://codereview.chromium.org/870093003/diff/80001/gsutil.py > File gsutil.py (right): > ...
5 years, 11 months ago (2015-01-23 22:09:36 UTC) #10
hinoka
Tested locally with ./gsutil.py --force-version 4.7 config https://codereview.chromium.org/870093003/diff/80001/gsutil.py File gsutil.py (right): https://codereview.chromium.org/870093003/diff/80001/gsutil.py#newcode42 gsutil.py:42: args, stdin=sys.stdin, ...
5 years, 11 months ago (2015-01-23 23:47:40 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/870093003/120001
5 years, 11 months ago (2015-01-23 23:50:30 UTC) #13
commit-bot: I haz the power
Presubmit check for 870093003-120001 failed and returned exit status 1. Running presubmit commit checks ...
5 years, 11 months ago (2015-01-23 23:53:23 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/870093003/140001
5 years, 11 months ago (2015-01-24 00:28:51 UTC) #17
commit-bot: I haz the power
Presubmit check for 870093003-140001 failed and returned exit status 1. Running presubmit commit checks ...
5 years, 11 months ago (2015-01-24 00:31:43 UTC) #19
hinoka
Tests pass, pgervais can you OWNERS stamp?
5 years, 11 months ago (2015-01-24 00:32:26 UTC) #20
pgervais
On 2015/01/24 00:32:26, hinoka wrote: > Tests pass, pgervais can you OWNERS stamp? sure. lgtm
5 years, 11 months ago (2015-01-24 00:42:29 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/870093003/140001
5 years, 11 months ago (2015-01-24 00:52:54 UTC) #23
commit-bot: I haz the power
5 years, 11 months ago (2015-01-24 00:55:48 UTC) #24
Message was sent while issue was closed.
Committed patchset #8 (id:140001) as
http://src.chromium.org/viewvc/chrome?view=rev&revision=293790

Powered by Google App Engine
This is Rietveld 408576698