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

Issue 14826003: Refactor nag functionality in to NagTimer class. (Closed)

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

Description

Refactor nag functionality in to NagTimer class. Add default 30 second nag timer to gclient subprocesses. BUG=227537 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=198207

Patch Set 1 #

Patch Set 2 : Simplify sleep_time calculation #

Total comments: 3

Patch Set 3 : Add nag_max to trigger timeouts #

Patch Set 4 : Fix nag_max #

Unified diffs Side-by-side diffs Delta from patch set Stats (+108 lines, -32 lines) Patch
M gclient_scm.py View 1 2 7 chunks +15 lines, -0 lines 0 comments Download
M gclient_utils.py View 1 2 3 5 chunks +23 lines, -1 line 0 comments Download
M subprocess2.py View 1 2 3 9 chunks +60 lines, -29 lines 0 comments Download
M tests/gclient_scm_test.py View 1 2 5 chunks +9 lines, -1 line 0 comments Download
M tests/subprocess2_test.py View 1 2 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 10 (0 generated)
szager1
7 years, 7 months ago (2013-05-02 06:39:49 UTC) #1
szager1
I just realized that the headline description is not the most important part of this ...
7 years, 7 months ago (2013-05-02 06:49:10 UTC) #2
M-A Ruel
https://codereview.chromium.org/14826003/diff/4001/subprocess2.py File subprocess2.py (right): https://codereview.chromium.org/14826003/diff/4001/subprocess2.py#newcode162 subprocess2.py:162: sleep_time = (self.last_output - now - 0.1) % self.interval ...
7 years, 7 months ago (2013-05-03 16:42:58 UTC) #3
cmp_google
lgtm
7 years, 7 months ago (2013-05-03 17:44:56 UTC) #4
szager1
It occurs to me that committing this change as-is could cause builders to stall during ...
7 years, 7 months ago (2013-05-03 18:16:58 UTC) #5
M-A Ruel
lgtm https://codereview.chromium.org/14826003/diff/4001/subprocess2.py File subprocess2.py (right): https://codereview.chromium.org/14826003/diff/4001/subprocess2.py#newcode162 subprocess2.py:162: sleep_time = (self.last_output - now - 0.1) % ...
7 years, 7 months ago (2013-05-03 18:32:34 UTC) #6
szager1
Added nag_max, to timeout after a certain number of nags. gclient uses nag_max=3. PTAL
7 years, 7 months ago (2013-05-03 19:03:48 UTC) #7
cmp
lgtm, +1 on nag_max, this is what I had in mind, too, no sense in ...
7 years, 7 months ago (2013-05-03 21:51:27 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/szager@chromium.org/14826003/14001
7 years, 7 months ago (2013-05-03 22:04:58 UTC) #9
commit-bot: I haz the power
7 years, 7 months ago (2013-05-03 22:06:38 UTC) #10
Message was sent while issue was closed.
Change committed as 198207

Powered by Google App Engine
This is Rietveld 408576698