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

Issue 1077173002: [Android] Tune DeviceUtils commands that are prone to large outputs. (Closed)

Created:
5 years, 8 months ago by jbudorick
Modified:
5 years, 8 months ago
CC:
chromium-reviews, klundberg+watch_chromium.org, yfriedman+watch_chromium.org, jbudorick+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Android] Tune DeviceUtils commands that are prone to large outputs. BUG=472144 Committed: https://crrev.com/6e20669903fad7caa6d6b326ba9e6992f0761680 Cr-Commit-Position: refs/heads/master@{#325241}

Patch Set 1 #

Total comments: 7

Patch Set 2 : PIPESTATUS #

Total comments: 15

Patch Set 3 : perezju comments #

Total comments: 5

Patch Set 4 : #

Total comments: 2

Patch Set 5 : rebase and fix SingleQuote #

Unified diffs Side-by-side diffs Delta from patch set Stats (+136 lines, -41 lines) Patch
M build/android/pylib/device/device_errors.py View 1 1 chunk +5 lines, -1 line 0 comments Download
M build/android/pylib/device/device_utils.py View 1 2 3 4 4 chunks +38 lines, -6 lines 0 comments Download
M build/android/pylib/device/device_utils_test.py View 1 2 3 4 8 chunks +92 lines, -33 lines 0 comments Download
M build/android/pylib/utils/mock_calls.py View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 22 (4 generated)
jbudorick
5 years, 8 months ago (2015-04-10 15:58:29 UTC) #2
rnephew (Reviews Here)
On 2015/04/10 15:58:29, jbudorick wrote: Not that it matters, LGTM
5 years, 8 months ago (2015-04-10 16:16:39 UTC) #3
perezju
not lgtm. These are the sorts of things we *could* fix at DeviceUtils without reading ...
5 years, 8 months ago (2015-04-13 09:58:33 UTC) #4
rnephew (Wrong account)
https://codereview.chromium.org/1077173002/diff/1/build/android/pylib/device/device_utils.py File build/android/pylib/device/device_utils.py (right): https://codereview.chromium.org/1077173002/diff/1/build/android/pylib/device/device_utils.py#newcode1024 build/android/pylib/device/device_utils.py:1024: large_output=(not bool(size)))) On 2015/04/13 09:58:32, perezju wrote: > I ...
5 years, 8 months ago (2015-04-13 17:21:04 UTC) #6
jbudorick
Added _RunPipedShellCommand for ps | grep and showmap | grep https://codereview.chromium.org/1077173002/diff/1/build/android/pylib/device/device_utils.py File build/android/pylib/device/device_utils.py (right): https://codereview.chromium.org/1077173002/diff/1/build/android/pylib/device/device_utils.py#newcode1024 ...
5 years, 8 months ago (2015-04-13 17:44:29 UTC) #7
perezju
Thanks, this is looking really good! I just have a few minor comments/questions. https://codereview.chromium.org/1077173002/diff/20001/build/android/pylib/device/device_utils.py File ...
5 years, 8 months ago (2015-04-14 10:17:29 UTC) #8
perezju
On 2015/04/14 10:17:29, perezju wrote: > https://codereview.chromium.org/1077173002/diff/20001/build/android/pylib/device/device_utils.py#newcode579 > build/android/pylib/device/device_utils.py:579: script = ' '.join(script) > I'm ...
5 years, 8 months ago (2015-04-14 10:18:11 UTC) #9
perezju
https://codereview.chromium.org/1077173002/diff/20001/build/android/pylib/device/device_utils.py File build/android/pylib/device/device_utils.py (right): https://codereview.chromium.org/1077173002/diff/20001/build/android/pylib/device/device_utils.py#newcode1465 build/android/pylib/device/device_utils.py:1465: 'showmap %s | grep TOTAL' % str(pid), as_root=True, check_return=True) ...
5 years, 8 months ago (2015-04-14 10:49:19 UTC) #10
jbudorick
https://codereview.chromium.org/1077173002/diff/20001/build/android/pylib/device/device_utils.py File build/android/pylib/device/device_utils.py (right): https://codereview.chromium.org/1077173002/diff/20001/build/android/pylib/device/device_utils.py#newcode579 build/android/pylib/device/device_utils.py:579: script = ' '.join(script) On 2015/04/14 10:17:29, perezju wrote: ...
5 years, 8 months ago (2015-04-14 13:42:46 UTC) #11
perezju
lgtm with nits https://codereview.chromium.org/1077173002/diff/40001/build/android/pylib/device/device_utils.py File build/android/pylib/device/device_utils.py (right): https://codereview.chromium.org/1077173002/diff/40001/build/android/pylib/device/device_utils.py#newcode1384 build/android/pylib/device/device_utils.py:1384: check_return=False) nit: I'm ok with this, ...
5 years, 8 months ago (2015-04-14 14:13:35 UTC) #12
jbudorick
ptal https://codereview.chromium.org/1077173002/diff/40001/build/android/pylib/device/device_utils.py File build/android/pylib/device/device_utils.py (right): https://codereview.chromium.org/1077173002/diff/40001/build/android/pylib/device/device_utils.py#newcode1384 build/android/pylib/device/device_utils.py:1384: check_return=False) On 2015/04/14 14:13:35, perezju wrote: > nit: ...
5 years, 8 months ago (2015-04-14 16:56:13 UTC) #13
perezju
lgtm https://codereview.chromium.org/1077173002/diff/40001/build/android/pylib/device/device_utils.py File build/android/pylib/device/device_utils.py (right): https://codereview.chromium.org/1077173002/diff/40001/build/android/pylib/device/device_utils.py#newcode1555 build/android/pylib/device/device_utils.py:1555: if d.GetDeviceSerial() not in blacklist] On 2015/04/14 16:56:12, ...
5 years, 8 months ago (2015-04-15 09:40:43 UTC) #14
perezju
https://codereview.chromium.org/1077173002/diff/60001/build/android/pylib/device/device_utils.py File build/android/pylib/device/device_utils.py (right): https://codereview.chromium.org/1077173002/diff/60001/build/android/pylib/device/device_utils.py#newcode1384 build/android/pylib/device/device_utils.py:1384: cmd_helper.SingleQuote('ps | grep -F %s' % process_name)) Oh, no, ...
5 years, 8 months ago (2015-04-15 09:48:43 UTC) #15
perezju
Also you probably need to rebase after https://codereview.chromium.org/1079113002/
5 years, 8 months ago (2015-04-15 10:43:37 UTC) #16
jbudorick
https://codereview.chromium.org/1077173002/diff/60001/build/android/pylib/device/device_utils.py File build/android/pylib/device/device_utils.py (right): https://codereview.chromium.org/1077173002/diff/60001/build/android/pylib/device/device_utils.py#newcode1384 build/android/pylib/device/device_utils.py:1384: cmd_helper.SingleQuote('ps | grep -F %s' % process_name)) On 2015/04/15 ...
5 years, 8 months ago (2015-04-15 13:43:15 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1077173002/80001
5 years, 8 months ago (2015-04-15 13:43:42 UTC) #20
commit-bot: I haz the power
Committed patchset #5 (id:80001)
5 years, 8 months ago (2015-04-15 14:52:21 UTC) #21
commit-bot: I haz the power
5 years, 8 months ago (2015-04-15 14:53:12 UTC) #22
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/6e20669903fad7caa6d6b326ba9e6992f0761680
Cr-Commit-Position: refs/heads/master@{#325241}

Powered by Google App Engine
This is Rietveld 408576698