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

Issue 1748173002: New API for persistent ADB shell (Closed)

Created:
4 years, 9 months ago by alexandermont
Modified:
4 years, 8 months ago
CC:
catapult-reviews_chromium.org, charliea (OOO until 10-5)
Base URL:
git@github.com:catapult-project/catapult@master
Target Ref:
refs/heads/master
Project:
catapult
Visibility:
Public.

Description

New API for persistent ADB shell Implement a "persistent ADB shell", which allows for setting up an ADB shell in a separate process and passing commands to it. This is necessary to allow ADB communication with less overhead than creating a new ADB shell for each command entered. Committed: https://chromium.googlesource.com/external/github.com/catapult-project/catapult/+/87ef16864757739c019c49c2cc1a0a27e28fdc31

Patch Set 1 #

Patch Set 2 : remove extra import #

Patch Set 3 : add split_lines parameter to RunShellCommand #

Total comments: 11

Patch Set 4 : code review changes #

Total comments: 14

Patch Set 5 : #

Total comments: 9

Patch Set 6 : changes from rnephew code review #

Patch Set 7 : add test case and fix filtering #

Total comments: 17

Patch Set 8 : changes from code review #

Patch Set 9 : refactor RunCommand #

Total comments: 5

Patch Set 10 : more changes from code review #

Total comments: 4

Patch Set 11 : fix nits #

Unified diffs Side-by-side diffs Delta from patch set Stats (+128 lines, -0 lines) Patch
M devil/devil/android/sdk/adb_wrapper.py View 1 2 3 4 5 6 7 8 9 10 3 chunks +111 lines, -0 lines 0 comments Download
M devil/devil/android/sdk/adb_wrapper_devicetest.py View 1 2 3 4 5 6 7 8 9 2 chunks +17 lines, -0 lines 0 comments Download

Messages

Total messages: 37 (12 generated)
alexandermont
Here is the new API for the persistent ADB shell. Note that the file pshell_test ...
4 years, 9 months ago (2016-02-29 23:48:08 UTC) #2
alexandermont
Add split_lines function to RunShellCommand
4 years, 9 months ago (2016-03-07 18:45:38 UTC) #3
jbudorick
https://codereview.chromium.org/1748173002/diff/40001/devil/devil/android/device_utils.py File devil/devil/android/device_utils.py (right): https://codereview.chromium.org/1748173002/diff/40001/devil/devil/android/device_utils.py#newcode716 devil/devil/android/device_utils.py:716: timeout=None, retries=None, split_lines=True): I do think this is the ...
4 years, 9 months ago (2016-03-07 19:27:05 UTC) #4
alexandermont
changes from code review https://codereview.chromium.org/1748173002/diff/40001/devil/devil/android/device_utils.py File devil/devil/android/device_utils.py (right): https://codereview.chromium.org/1748173002/diff/40001/devil/devil/android/device_utils.py#newcode716 devil/devil/android/device_utils.py:716: timeout=None, retries=None, split_lines=True): On 2016/03/07 ...
4 years, 9 months ago (2016-03-08 19:26:01 UTC) #5
jbudorick
https://codereview.chromium.org/1748173002/diff/60001/devil/devil/android/device_utils.py File devil/devil/android/device_utils.py (right): https://codereview.chromium.org/1748173002/diff/60001/devil/devil/android/device_utils.py#newcode833 devil/devil/android/device_utils.py:833: if split_lines and single_line: I'm wondering about what single_line ...
4 years, 9 months ago (2016-03-16 16:55:16 UTC) #7
alexandermont
https://codereview.chromium.org/1748173002/diff/60001/devil/devil/android/device_utils.py File devil/devil/android/device_utils.py (right): https://codereview.chromium.org/1748173002/diff/60001/devil/devil/android/device_utils.py#newcode833 devil/devil/android/device_utils.py:833: if split_lines and single_line: On 2016/03/16 at 16:55:16, jbudorick ...
4 years, 9 months ago (2016-03-16 18:12:52 UTC) #8
alexandermont
4 years, 9 months ago (2016-03-16 21:56:34 UTC) #10
alexandermont
4 years, 9 months ago (2016-03-16 21:57:12 UTC) #12
Zhen Wang
https://codereview.chromium.org/1748173002/diff/80001/devil/devil/android/sdk/adb_wrapper.py File devil/devil/android/sdk/adb_wrapper.py (right): https://codereview.chromium.org/1748173002/diff/80001/devil/devil/android/sdk/adb_wrapper.py#newcode145 devil/devil/android/sdk/adb_wrapper.py:145: self._process.stdin.write(send_cmd) Why does this add 40 ms additonal latency? ...
4 years, 9 months ago (2016-03-18 22:50:16 UTC) #14
nednguyen
https://codereview.chromium.org/1748173002/diff/80001/devil/devil/android/sdk/adb_wrapper.py File devil/devil/android/sdk/adb_wrapper.py (right): https://codereview.chromium.org/1748173002/diff/80001/devil/devil/android/sdk/adb_wrapper.py#newcode167 devil/devil/android/sdk/adb_wrapper.py:167: (output, _) = self._process.communicate( On 2016/03/18 22:50:16, Zhen Wang ...
4 years, 9 months ago (2016-03-18 23:14:03 UTC) #15
rnephew (Reviews Here)
I think it would be prudent to add some unit tests for this before submitting. ...
4 years, 9 months ago (2016-03-21 22:42:37 UTC) #17
alexandermont
https://codereview.chromium.org/1748173002/diff/80001/devil/devil/android/device_utils.py File devil/devil/android/device_utils.py (right): https://codereview.chromium.org/1748173002/diff/80001/devil/devil/android/device_utils.py#newcode819 devil/devil/android/device_utils.py:819: raise ValueError('single_line=True is redundant with split_lines=False') On 2016/03/21 at ...
4 years, 9 months ago (2016-03-23 18:07:30 UTC) #18
alexandermont
4 years, 9 months ago (2016-03-23 18:09:52 UTC) #19
alexandermont
4 years, 9 months ago (2016-03-23 19:11:12 UTC) #20
jbudorick
https://codereview.chromium.org/1748173002/diff/120001/devil/devil/android/device_utils.py File devil/devil/android/device_utils.py (right): https://codereview.chromium.org/1748173002/diff/120001/devil/devil/android/device_utils.py#newcode717 devil/devil/android/device_utils.py:717: timeout=None, retries=None, split_lines=True): If this change isn't used in ...
4 years, 9 months ago (2016-03-24 15:45:49 UTC) #21
alexandermont
https://codereview.chromium.org/1748173002/diff/120001/devil/devil/android/device_utils.py File devil/devil/android/device_utils.py (right): https://codereview.chromium.org/1748173002/diff/120001/devil/devil/android/device_utils.py#newcode717 devil/devil/android/device_utils.py:717: timeout=None, retries=None, split_lines=True): On 2016/03/24 at 15:45:48, jbudorick wrote: ...
4 years, 9 months ago (2016-03-24 18:53:57 UTC) #23
alexandermont
4 years, 8 months ago (2016-04-01 00:11:40 UTC) #24
charliea (OOO until 10-5)
Moving myself to cc on this CL
4 years, 8 months ago (2016-04-01 17:22:17 UTC) #25
jbudorick
https://codereview.chromium.org/1748173002/diff/160001/devil/devil/android/sdk/adb_wrapper.py File devil/devil/android/sdk/adb_wrapper.py (right): https://codereview.chromium.org/1748173002/diff/160001/devil/devil/android/sdk/adb_wrapper.py#newcode92 devil/devil/android/sdk/adb_wrapper.py:92: # Alternatively, we could try to detect the shell ...
4 years, 8 months ago (2016-04-01 17:37:30 UTC) #28
alexandermont
https://codereview.chromium.org/1748173002/diff/160001/devil/devil/android/sdk/adb_wrapper.py File devil/devil/android/sdk/adb_wrapper.py (right): https://codereview.chromium.org/1748173002/diff/160001/devil/devil/android/sdk/adb_wrapper.py#newcode92 devil/devil/android/sdk/adb_wrapper.py:92: # Alternatively, we could try to detect the shell ...
4 years, 8 months ago (2016-04-01 17:59:51 UTC) #29
jbudorick
lgtm w/ nits https://codereview.chromium.org/1748173002/diff/180001/devil/devil/android/sdk/adb_wrapper.py File devil/devil/android/sdk/adb_wrapper.py (left): https://codereview.chromium.org/1748173002/diff/180001/devil/devil/android/sdk/adb_wrapper.py#oldcode35 devil/devil/android/sdk/adb_wrapper.py:35: nit: please leave this line. https://codereview.chromium.org/1748173002/diff/180001/devil/devil/android/sdk/adb_wrapper.py ...
4 years, 8 months ago (2016-04-01 18:05:46 UTC) #30
alexandermont
4 years, 8 months ago (2016-04-01 18:37:34 UTC) #31
alexandermont
https://codereview.chromium.org/1748173002/diff/180001/devil/devil/android/sdk/adb_wrapper.py File devil/devil/android/sdk/adb_wrapper.py (left): https://codereview.chromium.org/1748173002/diff/180001/devil/devil/android/sdk/adb_wrapper.py#oldcode35 devil/devil/android/sdk/adb_wrapper.py:35: On 2016/04/01 at 18:05:46, jbudorick wrote: > nit: please ...
4 years, 8 months ago (2016-04-01 18:37:54 UTC) #32
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1748173002/200001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1748173002/200001
4 years, 8 months ago (2016-04-01 18:38:05 UTC) #35
commit-bot: I haz the power
4 years, 8 months ago (2016-04-01 18:50:23 UTC) #37
Message was sent while issue was closed.
Committed patchset #11 (id:200001) as
https://chromium.googlesource.com/external/github.com/catapult-project/catapu...

Powered by Google App Engine
This is Rietveld 408576698