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

Issue 227163002: Revamped terminal output for update. (Closed)

Created:
6 years, 8 months ago by szager1
Modified:
6 years, 8 months ago
CC:
chromium-reviews, Dirk Pranke, cmp-cc_chromium.org, M-A Ruel, iannucci+depot_tools_chromium.org, ilevy-cc_chromium.org
Visibility:
Public.

Description

Revamped terminal output for update. Features: - Non-verbose output is now limited to a one-line progress indicator. - Verbose output is now collated per subprocess. As soon as a subprocess finishes, its full output is dumped to terminal. - Verbose output is prefixed with timestamps representing elapsed time since the beginning of the gclient invocation. - git progress indicators ("Receiving objects", etc.) are limited to one line every 10 seconds. - In both verbose and non-verbose mode, if a failure occurs, the full output of the failed update operation is dumped to terminal just before exit. - In the event that updates are progressing, but slowly, "Still working" messages will be printed periodically, to pacify users and buildbots. BUG=361351 R=hinoka@google.com Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=262500

Patch Set 1 #

Patch Set 2 : Fix tests #

Total comments: 12

Patch Set 3 : Preserve output required for got_revision. #

Patch Set 4 : Nits #

Patch Set 5 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+303 lines, -189 lines) Patch
M gclient.py View 1 2 3 4 10 chunks +19 lines, -10 lines 0 comments Download
M gclient_scm.py View 1 2 3 4 48 chunks +118 lines, -97 lines 0 comments Download
M gclient_utils.py View 1 2 3 17 chunks +99 lines, -23 lines 0 comments Download
M tests/gclient_scm_test.py View 1 12 chunks +30 lines, -9 lines 0 comments Download
M tests/gclient_smoketest.py View 1 2 3 19 chunks +28 lines, -43 lines 0 comments Download
M tests/gclient_test.py View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M third_party/repo/progress.py View 1 chunk +8 lines, -6 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
szager1
Hey folks, I'm sending this to a lot of reviewers because it's a big change. ...
6 years, 8 months ago (2014-04-05 23:19:06 UTC) #1
szager1
Tests now pass.
6 years, 8 months ago (2014-04-07 07:30:35 UTC) #2
szager1
I manually installed this patch onto the chromium.git win builder, vm402-m1. Here's an example of ...
6 years, 8 months ago (2014-04-07 16:21:05 UTC) #3
agable
On 2014/04/07 16:21:05, szager1 wrote: > I manually installed this patch onto the chromium.git win ...
6 years, 8 months ago (2014-04-07 19:11:52 UTC) #4
Ryan Tseng
This looks good to me, and I think is land-able (% nits) given that the ...
6 years, 8 months ago (2014-04-07 20:56:38 UTC) #5
Dirk Pranke
drive-by comments ... this idea looks like a big improvement over the existing state of ...
6 years, 8 months ago (2014-04-08 01:50:05 UTC) #6
szager1
Nits scratched, PTAL. https://codereview.chromium.org/227163002/diff/20001/gclient_utils.py File gclient_utils.py (right): https://codereview.chromium.org/227163002/diff/20001/gclient_utils.py#newcode760 gclient_utils.py:760: def out_cb(self, _): On 2014/04/07 20:56:38, ...
6 years, 8 months ago (2014-04-08 20:41:14 UTC) #7
Ryan Tseng
lgtm
6 years, 8 months ago (2014-04-08 20:44:22 UTC) #8
szager1
Committed patchset #5 manually as r262500 (presubmit successful).
6 years, 8 months ago (2014-04-08 20:50:46 UTC) #9
cmp
6 years, 8 months ago (2014-04-08 20:56:17 UTC) #10
Message was sent while issue was closed.
Stefan, was about to ask you to send a PSA announcing this change, but you just
sent one.  Good work.

Powered by Google App Engine
This is Rietveld 408576698