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

Issue 265743002: [Android] Switch to new interfaces of GetAVDs and RestartAdbServer. (Closed)

Created:
6 years, 7 months ago by jbudorick
Modified:
6 years, 7 months ago
Reviewers:
craigdh, bulach, frankf
CC:
chromium-reviews, klundberg+watch_chromium.org, bulach+watch_chromium.org, yfriedman+watch_chromium.org, ilevy-cc_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

[Android] Switch to new interfaces of GetAVDs and RestartAdbServer. BUG=267773 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=270336

Patch Set 1 #

Patch Set 2 : #

Total comments: 2

Patch Set 3 : #

Total comments: 3

Patch Set 4 : back to decorators. #

Total comments: 4

Patch Set 5 : rebase + nitfixes #

Total comments: 5

Patch Set 6 : #

Patch Set 7 : #

Patch Set 8 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+447 lines, -90 lines) Patch
M build/android/buildbot/bb_device_steps.py View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M build/android/pylib/base/test_dispatcher.py View 1 2 3 4 5 5 chunks +5 lines, -5 lines 0 comments Download
A + build/android/pylib/device/OWNERS View 1 2 3 4 1 chunk +2 lines, -2 lines 0 comments Download
M build/android/pylib/device/adb_wrapper.py View 1 2 3 4 5 9 chunks +27 lines, -66 lines 0 comments Download
M build/android/pylib/device/adb_wrapper_test.py View 1 2 3 4 5 4 chunks +6 lines, -5 lines 0 comments Download
A build/android/pylib/device/decorators.py View 1 2 3 4 5 6 7 1 chunk +71 lines, -0 lines 0 comments Download
A build/android/pylib/device/decorators_test.py View 1 2 3 4 5 6 1 chunk +199 lines, -0 lines 0 comments Download
A build/android/pylib/device/device_errors.py View 1 2 3 4 1 chunk +31 lines, -0 lines 0 comments Download
M build/android/pylib/device/device_utils.py View 1 2 3 4 5 6 3 chunks +27 lines, -2 lines 0 comments Download
A build/android/pylib/device/device_utils_test.py View 1 2 3 1 chunk +69 lines, -0 lines 0 comments Download
M build/android/pylib/gtest/test_package_apk.py View 1 2 3 4 5 2 chunks +2 lines, -2 lines 0 comments Download
M build/android/pylib/gtest/test_runner.py View 1 2 3 4 5 2 chunks +2 lines, -2 lines 0 comments Download
M build/android/pylib/instrumentation/test_runner.py View 1 2 3 4 5 3 chunks +4 lines, -4 lines 0 comments Download
M build/android/pylib/utils/test_environment.py View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 44 (0 generated)
jbudorick
6 years, 7 months ago (2014-04-30 23:15:00 UTC) #1
bulach
https://codereview.chromium.org/265743002/diff/20001/build/android/pylib/device/device_utils.py File build/android/pylib/device/device_utils.py (right): https://codereview.chromium.org/265743002/diff/20001/build/android/pylib/device/device_utils.py#newcode37 build/android/pylib/device/device_utils.py:37: kwargs['retries'] = retries nit: how about: timeout = kwargs['timeout'] ...
6 years, 7 months ago (2014-05-01 11:18:57 UTC) #2
jbudorick
On 2014/05/01 11:18:57, bulach wrote: > https://codereview.chromium.org/265743002/diff/20001/build/android/pylib/device/device_utils.py > File build/android/pylib/device/device_utils.py (right): > > https://codereview.chromium.org/265743002/diff/20001/build/android/pylib/device/device_utils.py#newcode37 > ...
6 years, 7 months ago (2014-05-01 14:09:18 UTC) #3
jbudorick
As anticipated, the member version is a bit uglier than the function version because we ...
6 years, 7 months ago (2014-05-01 15:53:39 UTC) #4
craigdh
On 2014/05/01 15:53:39, jbudorick wrote: > As anticipated, the member version is a bit uglier ...
6 years, 7 months ago (2014-05-01 16:03:25 UTC) #5
craigdh
On 2014/05/01 16:03:25, craigdh wrote: > On 2014/05/01 15:53:39, jbudorick wrote: > > As anticipated, ...
6 years, 7 months ago (2014-05-01 16:08:00 UTC) #6
frankf
https://codereview.chromium.org/265743002/diff/40001/build/android/pylib/device/device_utils.py File build/android/pylib/device/device_utils.py (right): https://codereview.chromium.org/265743002/diff/40001/build/android/pylib/device/device_utils.py#newcode22 build/android/pylib/device/device_utils.py:22: def RunWithTimeoutAndRetries(f, *args, **kwargs): There's also something similar in ...
6 years, 7 months ago (2014-05-01 18:31:01 UTC) #7
jbudorick
On 2014/05/01 18:31:01, frankf wrote: > https://codereview.chromium.org/265743002/diff/40001/build/android/pylib/device/device_utils.py > File build/android/pylib/device/device_utils.py (right): > > https://codereview.chromium.org/265743002/diff/40001/build/android/pylib/device/device_utils.py#newcode22 > ...
6 years, 7 months ago (2014-05-01 18:45:45 UTC) #8
bulach
On 2014/05/01 18:45:45, jbudorick wrote: > On 2014/05/01 18:31:01, frankf wrote: > > > https://codereview.chromium.org/265743002/diff/40001/build/android/pylib/device/device_utils.py ...
6 years, 7 months ago (2014-05-02 08:54:14 UTC) #9
craigdh
@Marcus, you definitely make some good points. I think we're mostly on the same page, ...
6 years, 7 months ago (2014-05-02 20:20:53 UTC) #10
jbudorick
On 2014/05/02 20:20:53, craigdh wrote: > @Marcus, you definitely make some good points. I think ...
6 years, 7 months ago (2014-05-05 16:28:09 UTC) #11
craigdh
Thanks! I have to say those are fairly identically difficult to read if you didn't ...
6 years, 7 months ago (2014-05-05 16:35:21 UTC) #12
jbudorick
On 2014/05/05 16:35:21, craigdh wrote: > Thanks! I have to say those are fairly identically ...
6 years, 7 months ago (2014-05-05 16:37:50 UTC) #13
bulach
yep, I think we're in the same page here, but let me further exemplify... :) ...
6 years, 7 months ago (2014-05-06 11:30:21 UTC) #14
jbudorick
On 2014/05/06 11:30:21, bulach wrote: > yep, I think we're in the same page here, ...
6 years, 7 months ago (2014-05-06 15:40:45 UTC) #15
craigdh
> I think the "Wait" mechanism on telemetry is a nice one, and perhaps we ...
6 years, 7 months ago (2014-05-06 15:50:06 UTC) #16
bulach
On 2014/05/06 15:50:06, craigdh wrote: > > I think the "Wait" mechanism on telemetry is ...
6 years, 7 months ago (2014-05-06 16:25:26 UTC) #17
jbudorick
After talking with Craig about this extensively, decorators with sensible default parameters for both timeouts ...
6 years, 7 months ago (2014-05-08 17:59:21 UTC) #18
bulach
On 2014/05/08 17:59:21, jbudorick wrote: > After talking with Craig about this extensively, decorators with ...
6 years, 7 months ago (2014-05-08 18:17:58 UTC) #19
jbudorick
On 2014/05/08 18:17:58, bulach wrote: > On 2014/05/08 17:59:21, jbudorick wrote: > > After talking ...
6 years, 7 months ago (2014-05-08 18:27:52 UTC) #20
craigdh
The sorts of commands that can't be retried are by far the edge case (most ...
6 years, 7 months ago (2014-05-08 19:21:03 UTC) #21
bulach
On 2014/05/08 19:21:03, craigdh wrote: > The sorts of commands that can't be retried are ...
6 years, 7 months ago (2014-05-09 08:37:59 UTC) #22
jbudorick
On 2014/05/09 08:37:59, bulach wrote: > On 2014/05/08 19:21:03, craigdh wrote: > > The sorts ...
6 years, 7 months ago (2014-05-09 15:10:10 UTC) #23
craigdh
Sounds good to me. Thanks for taking the time to discuss all this Marcus, hopefully ...
6 years, 7 months ago (2014-05-09 15:33:39 UTC) #24
bulach
On 2014/05/09 15:33:39, craigdh wrote: > Sounds good to me. Thanks for taking the time ...
6 years, 7 months ago (2014-05-09 17:08:07 UTC) #25
jbudorick
Now that we've resolved the timeout / retry discussion, I'm looking to get this in ...
6 years, 7 months ago (2014-05-13 15:30:43 UTC) #26
craigdh
lgtm w/ nit https://codereview.chromium.org/265743002/diff/60001/build/android/pylib/device/device_utils.py File build/android/pylib/device/device_utils.py (right): https://codereview.chromium.org/265743002/diff/60001/build/android/pylib/device/device_utils.py#newcode21 build/android/pylib/device/device_utils.py:21: _WithTimeoutAndRetries = decorators.WithTimeoutAndRetries This additional level ...
6 years, 7 months ago (2014-05-13 15:46:23 UTC) #27
bulach
lgtm with some other nits, thanks a ton! (hopefully not opening a can of worms ...
6 years, 7 months ago (2014-05-13 16:14:40 UTC) #28
craigdh
https://codereview.chromium.org/265743002/diff/60001/build/android/pylib/device/device_utils.py File build/android/pylib/device/device_utils.py (right): https://codereview.chromium.org/265743002/diff/60001/build/android/pylib/device/device_utils.py#newcode21 build/android/pylib/device/device_utils.py:21: _WithTimeoutAndRetries = decorators.WithTimeoutAndRetries I'm 100% with Marcus on this ...
6 years, 7 months ago (2014-05-13 16:18:17 UTC) #29
jbudorick
On 2014/05/13 16:14:40, bulach wrote: > lgtm with some other nits, thanks a ton! > ...
6 years, 7 months ago (2014-05-13 16:21:57 UTC) #30
jbudorick
Now with indirection-free use of the decorators + an OWNERS file for build/android/pylib/device/
6 years, 7 months ago (2014-05-13 16:50:08 UTC) #31
bulach
On 2014/05/13 16:21:57, jbudorick wrote: > On 2014/05/13 16:14:40, bulach wrote: > > lgtm with ...
6 years, 7 months ago (2014-05-13 16:56:12 UTC) #32
bulach
https://codereview.chromium.org/265743002/diff/80001/build/android/pylib/device/OWNERS File build/android/pylib/device/OWNERS (right): https://codereview.chromium.org/265743002/diff/80001/build/android/pylib/device/OWNERS#newcode1 build/android/pylib/device/OWNERS:1: set noparent ops, sorry... I wouldn't do setnoparent, in ...
6 years, 7 months ago (2014-05-13 16:57:52 UTC) #33
craigdh
still lgtm w/ new nits https://codereview.chromium.org/265743002/diff/80001/build/android/pylib/device/adb_wrapper.py File build/android/pylib/device/adb_wrapper.py (right): https://codereview.chromium.org/265743002/diff/80001/build/android/pylib/device/adb_wrapper.py#newcode23 build/android/pylib/device/adb_wrapper.py:23: BaseError = device_errors.BaseError I ...
6 years, 7 months ago (2014-05-13 16:59:41 UTC) #34
jbudorick
On 2014/05/13 16:59:41, craigdh wrote: > still lgtm w/ new nits > > https://codereview.chromium.org/265743002/diff/80001/build/android/pylib/device/adb_wrapper.py > ...
6 years, 7 months ago (2014-05-13 17:02:33 UTC) #35
jbudorick
On 2014/05/13 16:57:52, bulach wrote: > https://codereview.chromium.org/265743002/diff/80001/build/android/pylib/device/OWNERS > File build/android/pylib/device/OWNERS (right): > > https://codereview.chromium.org/265743002/diff/80001/build/android/pylib/device/OWNERS#newcode1 > ...
6 years, 7 months ago (2014-05-13 17:05:11 UTC) #36
jbudorick
On 2014/05/13 16:56:12, bulach wrote: > On 2014/05/13 16:21:57, jbudorick wrote: > > On 2014/05/13 ...
6 years, 7 months ago (2014-05-13 17:07:06 UTC) #37
craigdh
On 2014/05/13 17:05:11, jbudorick wrote: > On 2014/05/13 16:57:52, bulach wrote: > > > https://codereview.chromium.org/265743002/diff/80001/build/android/pylib/device/OWNERS ...
6 years, 7 months ago (2014-05-13 17:17:59 UTC) #38
frankf
lgtm https://codereview.chromium.org/265743002/diff/80001/build/android/pylib/device/OWNERS File build/android/pylib/device/OWNERS (right): https://codereview.chromium.org/265743002/diff/80001/build/android/pylib/device/OWNERS#newcode1 build/android/pylib/device/OWNERS:1: set noparent Hmm, I've had the opposite experience ...
6 years, 7 months ago (2014-05-13 18:16:30 UTC) #39
jbudorick
nits addressed. Added a new decorator for functions for which clients should never need to ...
6 years, 7 months ago (2014-05-13 22:10:03 UTC) #40
jbudorick
The CQ bit was checked by jbudorick@chromium.org
6 years, 7 months ago (2014-05-14 00:18:40 UTC) #41
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jbudorick@chromium.org/265743002/140001
6 years, 7 months ago (2014-05-14 00:20:06 UTC) #42
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). Please consider checking whether the failures are ...
6 years, 7 months ago (2014-05-14 03:45:07 UTC) #43
commit-bot: I haz the power
6 years, 7 months ago (2014-05-14 05:32:17 UTC) #44
Message was sent while issue was closed.
Change committed as 270336

Powered by Google App Engine
This is Rietveld 408576698