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

Issue 715853002: Migrate device utils WriteFile to AdbWrapper (Closed)

Created:
6 years, 1 month ago by perezju
Modified:
6 years, 1 month 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

Migrate device utils WriteFile to AdbWrapper Also merged the functionality of WriteFile and WriteTextFile into a single method. BUG=267773 Committed: https://crrev.com/6de48323f78311342108fda8b2f59ba3848eea81 Cr-Commit-Position: refs/heads/master@{#303902}

Patch Set 1 #

Total comments: 5

Patch Set 2 : fixed edge cases #

Total comments: 13

Patch Set 3 : added tests with large contents #

Patch Set 4 : fixed another echo bug #

Total comments: 3

Patch Set 5 : fixed bug running shell commands with su #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+102 lines, -168 lines) Patch
M build/android/pylib/device/commands/install_commands.py View 1 chunk +1 line, -1 line 0 comments Download
M build/android/pylib/device/device_utils.py View 1 2 3 4 4 chunks +28 lines, -38 lines 3 comments Download
M build/android/pylib/device/device_utils_test.py View 1 2 3 4 4 chunks +70 lines, -124 lines 0 comments Download
M tools/telemetry/telemetry/core/backends/chrome/android_browser_backend.py View 3 chunks +3 lines, -5 lines 0 comments Download

Messages

Total messages: 19 (2 generated)
perezju
ptal I've also merged WriteTextFile into WriteFile, and removed the couple of references to it ...
6 years, 1 month ago (2014-11-11 23:05:35 UTC) #2
jbudorick
https://codereview.chromium.org/715853002/diff/1/build/android/pylib/device/device_utils.py File build/android/pylib/device/device_utils.py (right): https://codereview.chromium.org/715853002/diff/1/build/android/pylib/device/device_utils.py#newcode902 build/android/pylib/device/device_utils.py:902: self.RunShellCommand(['mv', device_temp.name, device_path], Is DeviceTempFile ok with its temporary ...
6 years, 1 month ago (2014-11-11 23:16:04 UTC) #3
perezju
https://codereview.chromium.org/715853002/diff/1/build/android/pylib/device/device_utils.py File build/android/pylib/device/device_utils.py (right): https://codereview.chromium.org/715853002/diff/1/build/android/pylib/device/device_utils.py#newcode902 build/android/pylib/device/device_utils.py:902: self.RunShellCommand(['mv', device_temp.name, device_path], On 2014/11/11 23:16:03, jbudorick wrote: > ...
6 years, 1 month ago (2014-11-11 23:26:33 UTC) #4
perezju
Ok, so I ran a bunch of end-to-end roundtrip tests locally on my machine with ...
6 years, 1 month ago (2014-11-12 01:31:24 UTC) #5
jbudorick
lgtm https://codereview.chromium.org/715853002/diff/20001/build/android/pylib/device/device_utils.py File build/android/pylib/device/device_utils.py (right): https://codereview.chromium.org/715853002/diff/20001/build/android/pylib/device/device_utils.py#newcode901 build/android/pylib/device/device_utils.py:901: self.RunShellCommand(sh_cmd, as_root=as_root, check_return=True) On 2014/11/12 01:31:24, perezju wrote: ...
6 years, 1 month ago (2014-11-12 01:42:38 UTC) #6
Sami
Great find with the 'su' bug! https://codereview.chromium.org/715853002/diff/20001/build/android/pylib/device/device_utils.py File build/android/pylib/device/device_utils.py (right): https://codereview.chromium.org/715853002/diff/20001/build/android/pylib/device/device_utils.py#newcode880 build/android/pylib/device/device_utils.py:880: force_push: A boolean ...
6 years, 1 month ago (2014-11-12 14:14:14 UTC) #7
perezju
just replying to some of your comments https://codereview.chromium.org/715853002/diff/20001/build/android/pylib/device/device_utils.py File build/android/pylib/device/device_utils.py (right): https://codereview.chromium.org/715853002/diff/20001/build/android/pylib/device/device_utils.py#newcode880 build/android/pylib/device/device_utils.py:880: force_push: A ...
6 years, 1 month ago (2014-11-12 17:37:03 UTC) #8
perezju
Uh, oh... just found another "su" bug. https://codereview.chromium.org/715853002/diff/60001/build/android/pylib/device/device_utils.py File build/android/pylib/device/device_utils.py (right): https://codereview.chromium.org/715853002/diff/60001/build/android/pylib/device/device_utils.py#newcode901 build/android/pylib/device/device_utils.py:901: self.RunShellCommand(sh_cmd, as_root=as_root, ...
6 years, 1 month ago (2014-11-12 17:59:48 UTC) #9
Sami
https://codereview.chromium.org/715853002/diff/60001/build/android/pylib/device/device_utils.py File build/android/pylib/device/device_utils.py (right): https://codereview.chromium.org/715853002/diff/60001/build/android/pylib/device/device_utils.py#newcode901 build/android/pylib/device/device_utils.py:901: self.RunShellCommand(sh_cmd, as_root=as_root, check_return=True) On 2014/11/12 17:59:48, perezju wrote: > ...
6 years, 1 month ago (2014-11-12 18:23:10 UTC) #10
perezju
ptal https://codereview.chromium.org/715853002/diff/60001/build/android/pylib/device/device_utils.py File build/android/pylib/device/device_utils.py (right): https://codereview.chromium.org/715853002/diff/60001/build/android/pylib/device/device_utils.py#newcode901 build/android/pylib/device/device_utils.py:901: self.RunShellCommand(sh_cmd, as_root=as_root, check_return=True) On 2014/11/12 18:23:10, Sami wrote: ...
6 years, 1 month ago (2014-11-12 19:30:41 UTC) #11
jbudorick
On 2014/11/12 19:30:41, perezju wrote: > ptal > > https://codereview.chromium.org/715853002/diff/60001/build/android/pylib/device/device_utils.py > File build/android/pylib/device/device_utils.py (right): > ...
6 years, 1 month ago (2014-11-12 19:34:57 UTC) #12
Sami
Thanks Juan, lgtm. https://codereview.chromium.org/715853002/diff/80001/build/android/pylib/device/device_utils.py File build/android/pylib/device/device_utils.py (right): https://codereview.chromium.org/715853002/diff/80001/build/android/pylib/device/device_utils.py#newcode439 build/android/pylib/device/device_utils.py:439: # "su -c sh -c" allows ...
6 years, 1 month ago (2014-11-12 19:45:38 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/715853002/80001
6 years, 1 month ago (2014-11-12 20:49:41 UTC) #15
commit-bot: I haz the power
Committed patchset #5 (id:80001)
6 years, 1 month ago (2014-11-12 22:08:52 UTC) #16
commit-bot: I haz the power
Patchset 5 (id:??) landed as https://crrev.com/6de48323f78311342108fda8b2f59ba3848eea81 Cr-Commit-Position: refs/heads/master@{#303902}
6 years, 1 month ago (2014-11-12 22:09:30 UTC) #17
Sami
A revert of this CL (patchset #5 id:80001) has been created in https://codereview.chromium.org/725553002/ by skyostil@chromium.org. ...
6 years, 1 month ago (2014-11-13 12:00:22 UTC) #18
Sami
6 years, 1 month ago (2014-11-13 13:46:59 UTC) #19
Message was sent while issue was closed.
Also seems to affect Nexus 7v2:
http://build.chromium.org/p/chromium.perf/builders/Android%20Nexus7v2%20Perf/...

Powered by Google App Engine
This is Rietveld 408576698