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

Issue 794583004: Reland of Migrate DeviceUtils.ReadFile to adb_wrapper (Closed)

Created:
6 years ago by perezju
Modified:
6 years ago
Reviewers:
jbudorick, Sami
CC:
chromium-reviews, klundberg+watch_chromium.org, telemetry+watch_chromium.org, yfriedman+watch_chromium.org, jbudorick+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Reland of Migrate DeviceUtils.ReadFile to adb_wrapper Original description: The implementation is based on a simple 'cat' run by shell on the device (with optional as_root). Interface changes: - The return value is a string (instead of a list of lines). - An exception is raised if the file cannot be read (instead of returning an empty list). Original CL: https://codereview.chromium.org/775333002/ BUG=267773 Committed: https://crrev.com/a8d3b82a9c779568ee64ec5c261c6c7024ef8759 Cr-Commit-Position: refs/heads/master@{#307881}

Patch Set 1 : original CL 775333002 #

Patch Set 2 : change in missing client #

Patch Set 3 : command line file should be read as_root #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+69 lines, -77 lines) Patch
M build/android/pylib/device/device_utils.py View 3 chunks +15 lines, -12 lines 0 comments Download
M build/android/pylib/device/device_utils_test.py View 2 chunks +18 lines, -41 lines 0 comments Download
M build/android/pylib/flag_changer.py View 3 chunks +8 lines, -5 lines 0 comments Download
M build/android/pylib/instrumentation/test_runner.py View 1 chunk +2 lines, -4 lines 0 comments Download
M build/android/pylib/perf/thermal_throttle.py View 1 chunk +1 line, -1 line 0 comments Download
M build/android/tombstones.py View 1 chunk +2 lines, -1 line 0 comments Download
M tools/telemetry/telemetry/core/backends/chrome/android_browser_backend.py View 1 2 1 chunk +2 lines, -1 line 2 comments Download
M tools/telemetry/telemetry/core/forwarders/android_forwarder.py View 2 chunks +2 lines, -2 lines 0 comments Download
M tools/telemetry/telemetry/core/platform/android_platform_backend.py View 1 chunk +1 line, -1 line 0 comments Download
M tools/telemetry/telemetry/core/platform/android_platform_backend_unittest.py View 1 chunk +2 lines, -2 lines 0 comments Download
M tools/telemetry/telemetry/core/platform/power_monitor/android_temperature_monitor.py View 2 chunks +14 lines, -5 lines 0 comments Download
M tools/telemetry/telemetry/core/platform/power_monitor/android_temperature_monitor_unittest.py View 1 chunk +1 line, -1 line 0 comments Download
M tools/telemetry/telemetry/core/platform/profiler/android_profiling_helper_unittest.py View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 11 (2 generated)
perezju
My previous search for clients (searching for device\.WriteFile) missed this one. This time I also ...
6 years ago (2014-12-10 17:22:27 UTC) #2
Sami
tools/telemetry/telemetry/core/backends/chrome/android_browser_backend.py lgtm (and the other bits too that didn't change from the previous version).
6 years ago (2014-12-10 17:50:26 UTC) #3
jbudorick
lgtm https://codereview.chromium.org/794583004/diff/40001/tools/telemetry/telemetry/core/backends/chrome/android_browser_backend.py File tools/telemetry/telemetry/core/backends/chrome/android_browser_backend.py (right): https://codereview.chromium.org/794583004/diff/40001/tools/telemetry/telemetry/core/backends/chrome/android_browser_backend.py#newcode227 tools/telemetry/telemetry/core/backends/chrome/android_browser_backend.py:227: cmdline_file, as_root=True) On 2014/12/10 17:22:27, perezju wrote: > ...
6 years ago (2014-12-11 01:56:24 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/794583004/40001
6 years ago (2014-12-11 09:06:10 UTC) #6
perezju
On 2014/12/11 01:56:24, jbudorick wrote: > lgtm > > https://codereview.chromium.org/794583004/diff/40001/tools/telemetry/telemetry/core/backends/chrome/android_browser_backend.py > File tools/telemetry/telemetry/core/backends/chrome/android_browser_backend.py > (right): ...
6 years ago (2014-12-11 09:07:19 UTC) #7
commit-bot: I haz the power
Committed patchset #3 (id:40001)
6 years ago (2014-12-11 10:06:34 UTC) #8
commit-bot: I haz the power
Patchset 3 (id:??) landed as https://crrev.com/a8d3b82a9c779568ee64ec5c261c6c7024ef8759 Cr-Commit-Position: refs/heads/master@{#307881}
6 years ago (2014-12-11 10:07:19 UTC) #9
capn
It appears that this might have made the Android Debug (Nexus 7) GPU bot go ...
6 years ago (2014-12-11 15:31:34 UTC) #10
perezju
6 years ago (2014-12-11 15:53:30 UTC) #11
Message was sent while issue was closed.
A revert of this CL (patchset #3 id:40001) has been created in
https://codereview.chromium.org/796013004/ by perezju@chromium.org.

The reason for reverting is: Broke again android perf bots and nexus 7 debug
with error:

CRITICAL:root:Cannot set Chrome command line. Fix this by flashing to a
userdebug build..

Powered by Google App Engine
This is Rietveld 408576698