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

Issue 2451553006: [Common] Move WaitFor from telemetry to common/py_utils (Closed)

Created:
4 years, 1 month ago by rnephew (Reviews Here)
Modified:
4 years, 1 month ago
CC:
catapult-reviews_chromium.org
Target Ref:
refs/heads/master
Project:
catapult
Visibility:
Public.

Description

[Common] Move WaitFor from telemetry to common/py_utils BUG=catapult:#2955 Committed: https://chromium.googlesource.com/external/github.com/catapult-project/catapult/+/6bdd081cfd114ef91e5c5518afd6bbd13dff9a6f

Patch Set 1 : [Common] Move WaitFor from telemetry to common/py_utils #

Total comments: 13

Patch Set 2 : [Common] Move WaitFor from telemetry to common/py_utils #

Total comments: 8

Patch Set 3 : Make telemetry calls use new version #

Patch Set 4 : Charlies comments #

Total comments: 5

Patch Set 5 : undo telemetry changes #

Total comments: 1

Patch Set 6 : change times in unittetss #

Total comments: 2

Patch Set 7 : rebase #

Patch Set 8 : nix logging #

Unified diffs Side-by-side diffs Delta from patch set Stats (+81 lines, -0 lines) Patch
M common/py_utils/py_utils/__init__.py View 1 2 3 4 5 6 7 2 chunks +49 lines, -0 lines 0 comments Download
M common/py_utils/py_utils/py_utils_unittest.py View 1 2 3 4 5 1 chunk +32 lines, -0 lines 0 comments Download

Messages

Total messages: 30 (11 generated)
rnephew (Reviews Here)
https://codereview.chromium.org/2451553006/diff/20001/common/py_utils/py_utils/py_utils_unittest.py File common/py_utils/py_utils/py_utils_unittest.py (right): https://codereview.chromium.org/2451553006/diff/20001/common/py_utils/py_utils/py_utils_unittest.py#newcode37 common/py_utils/py_utils/py_utils_unittest.py:37: def _ReturnCounterBasedValue(self): Anyone have a suggestion on a better ...
4 years, 1 month ago (2016-10-25 21:53:57 UTC) #3
charliea (OOO until 10-5)
https://codereview.chromium.org/2451553006/diff/20001/common/py_utils/py_utils/__init__.py File common/py_utils/py_utils/__init__.py (right): https://codereview.chromium.org/2451553006/diff/20001/common/py_utils/py_utils/__init__.py#newcode101 common/py_utils/py_utils/__init__.py:101: min_poll_interval = 0.1 Should these be constants? https://codereview.chromium.org/2451553006/diff/20001/common/py_utils/py_utils/__init__.py#newcode101 common/py_utils/py_utils/__init__.py:101: ...
4 years, 1 month ago (2016-10-26 15:19:33 UTC) #4
rnephew (Reviews Here)
https://codereview.chromium.org/2451553006/diff/20001/common/py_utils/py_utils/__init__.py File common/py_utils/py_utils/__init__.py (right): https://codereview.chromium.org/2451553006/diff/20001/common/py_utils/py_utils/__init__.py#newcode101 common/py_utils/py_utils/__init__.py:101: min_poll_interval = 0.1 On 2016/10/26 15:19:32, charliea wrote: > ...
4 years, 1 month ago (2016-10-26 16:26:05 UTC) #5
nednguyen
On 2016/10/26 16:26:05, rnephew (Reviews Here) wrote: > https://codereview.chromium.org/2451553006/diff/20001/common/py_utils/py_utils/__init__.py > File common/py_utils/py_utils/__init__.py (right): > > ...
4 years, 1 month ago (2016-10-26 16:39:38 UTC) #6
charliea (OOO until 10-5)
https://codereview.chromium.org/2451553006/diff/40001/common/py_utils/py_utils/__init__.py File common/py_utils/py_utils/__init__.py (right): https://codereview.chromium.org/2451553006/diff/40001/common/py_utils/py_utils/__init__.py#newcode97 common/py_utils/py_utils/__init__.py:97: def WaitFor(condition, timeout): It seems weird that we're both ...
4 years, 1 month ago (2016-10-26 17:12:57 UTC) #7
rnephew (Reviews Here)
https://codereview.chromium.org/2451553006/diff/40001/common/py_utils/py_utils/__init__.py File common/py_utils/py_utils/__init__.py (right): https://codereview.chromium.org/2451553006/diff/40001/common/py_utils/py_utils/__init__.py#newcode97 common/py_utils/py_utils/__init__.py:97: def WaitFor(condition, timeout): On 2016/10/26 17:12:56, charliea wrote: > ...
4 years, 1 month ago (2016-10-26 17:28:42 UTC) #10
rnephew (Reviews Here)
Patchset 3 moves telemetry to use the version in py_utils, running tryjob on that to ...
4 years, 1 month ago (2016-10-26 17:29:19 UTC) #11
nednguyen
On 2016/10/26 17:29:19, rnephew (Reviews Here) wrote: > Patchset 3 moves telemetry to use the ...
4 years, 1 month ago (2016-10-26 17:38:43 UTC) #12
nednguyen
On 2016/10/26 17:38:43, nednguyen wrote: > On 2016/10/26 17:29:19, rnephew (Reviews Here) wrote: > > ...
4 years, 1 month ago (2016-10-26 17:39:32 UTC) #15
nednguyen
https://codereview.chromium.org/2451553006/diff/80001/common/py_utils/py_utils/py_utils_unittest.py File common/py_utils/py_utils/py_utils_unittest.py (right): https://codereview.chromium.org/2451553006/diff/80001/common/py_utils/py_utils/py_utils_unittest.py#newcode29 common/py_utils/py_utils/py_utils_unittest.py:29: @mock.patch('time.sleep', mock.Mock) Instead of use mock, can you just ...
4 years, 1 month ago (2016-10-26 17:42:12 UTC) #16
rnephew (Reviews Here)
> I think we should only one step at a time. The steps are: > ...
4 years, 1 month ago (2016-10-26 17:54:22 UTC) #17
rnephew (Reviews Here)
https://codereview.chromium.org/2451553006/diff/80001/common/py_utils/py_utils/py_utils_unittest.py File common/py_utils/py_utils/py_utils_unittest.py (right): https://codereview.chromium.org/2451553006/diff/80001/common/py_utils/py_utils/py_utils_unittest.py#newcode29 common/py_utils/py_utils/py_utils_unittest.py:29: @mock.patch('time.sleep', mock.Mock) On 2016/10/26 17:42:12, nednguyen wrote: > Instead ...
4 years, 1 month ago (2016-10-26 17:54:29 UTC) #18
nednguyen
On 2016/10/26 17:54:22, rnephew (Reviews Here) wrote: > > I think we should only one ...
4 years, 1 month ago (2016-10-26 17:56:50 UTC) #19
nednguyen
https://codereview.chromium.org/2451553006/diff/80001/common/py_utils/py_utils/__init__.py File common/py_utils/py_utils/__init__.py (right): https://codereview.chromium.org/2451553006/diff/80001/common/py_utils/py_utils/__init__.py#newcode124 common/py_utils/py_utils/__init__.py:124: logging.info('Continuing to wait %ds for %s. Elapsed: %ds.', timeout, ...
4 years, 1 month ago (2016-10-26 18:00:07 UTC) #20
rnephew (Reviews Here)
I undid the changes, see comment on the one file left about why its there. ...
4 years, 1 month ago (2016-10-26 18:12:48 UTC) #23
nednguyen
lgtm I am fine with either implement the wait as-is or using exponential back-off https://codereview.chromium.org/2451553006/diff/120001/common/py_utils/py_utils/__init__.py ...
4 years, 1 month ago (2016-10-26 18:59:40 UTC) #24
rnephew (Reviews Here)
Killed the logging, I'm going to land it with the current timing implementation, and when ...
4 years, 1 month ago (2016-10-26 19:02:38 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2451553006/160001
4 years, 1 month ago (2016-10-26 19:03:01 UTC) #28
commit-bot: I haz the power
4 years, 1 month ago (2016-10-26 19:30:36 UTC) #30
Message was sent while issue was closed.
Committed patchset #8 (id:160001) as
https://chromium.googlesource.com/external/github.com/catapult-project/catapu...

Powered by Google App Engine
This is Rietveld 408576698