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

Issue 1773183002: ABANDONED. Use gclient_utils instead. (Closed)

Created:
4 years, 9 months ago by tandrii(chromium)
Modified:
4 years, 9 months ago
CC:
chromium-reviews, dpranke+depot_tools_chromium.org, iannucci+depot_tools_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/tools/depot_tools.git@master
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Add a way to stream && capture subprocess output. Motivation: When pushing to Gerrit, it may take some time, during which "git push" is printing useful things for both user and our tooling. Until now, the only way our tooling can capture this data was by making user stare a the blank {default_background} terminal. This patch allows to show progress to user and gives data to tooling. R=maruel@chromium.org,phajdan.jr@chromium.org BUG=580136

Patch Set 1 #

Patch Set 2 : add test for stderr redirect #

Patch Set 3 : re-parent #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+94 lines, -3 lines) Patch
M subprocess2.py View 1 chunk +43 lines, -0 lines 3 comments Download
M tests/subprocess2_test.py View 1 4 chunks +51 lines, -3 lines 0 comments Download

Depends on Patchset:

Dependent Patchsets:

Messages

Total messages: 6 (1 generated)
tandrii(chromium)
PTAL FTR: subprocess2 module didn't fail me as there is no such functionality in subprocess ...
4 years, 9 months ago (2016-03-08 16:59:01 UTC) #1
Paweł Hajdan Jr.
LGTM w/nits https://codereview.chromium.org/1773183002/diff/40001/subprocess2.py File subprocess2.py (right): https://codereview.chromium.org/1773183002/diff/40001/subprocess2.py#newcode480 subprocess2.py:480: # Aslo, because callbacks are called in ...
4 years, 9 months ago (2016-03-08 23:52:24 UTC) #2
M-A Ruel
https://codereview.chromium.org/1773183002/diff/40001/subprocess2.py File subprocess2.py (right): https://codereview.chromium.org/1773183002/diff/40001/subprocess2.py#newcode465 subprocess2.py:465: def communicate_and_stream(args, **kwargs): There's a function to do something ...
4 years, 9 months ago (2016-03-08 23:54:08 UTC) #3
tandrii(chromium)
On 2016/03/08 23:54:08, M-A Ruel wrote: > https://codereview.chromium.org/1773183002/diff/40001/subprocess2.py > File subprocess2.py (right): > > https://codereview.chromium.org/1773183002/diff/40001/subprocess2.py#newcode465 ...
4 years, 9 months ago (2016-03-14 13:44:54 UTC) #4
M-A Ruel
4 years, 9 months ago (2016-03-14 13:52:18 UTC) #6
Message was sent while issue was closed.
On 2016/03/14 13:44:54, tandrii(chromium) wrote:
> On 2016/03/08 23:54:08, M-A Ruel wrote:
> > There's a function to do something similar in gclient_utils.py. In practice,
> > subprocess42 does it much better with a for loop.
> Ah, i knew there is certainly such a function. Thanks! Any reason against
moving
> v42 to depot_tools?
> Shouldn't it be a general win for depot_tools?

I'm fine with that. The reason it wasn't done before was that I actually wanted
to remove subprocess2 at the same time, but this was some work.

Powered by Google App Engine
This is Rietveld 408576698