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

Issue 646523002: [Android] Add zip pushing and refine push mode selection. (Closed)

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

Description

[Android] Add zip pushing and refine push mode selection. This patch revises the implementation of DeviceUtils.PushChangedFiles and changes its interface (slightly). PushChangedFiles now: - takes a list of (host_path, device_path) tuples, each of which are analogous to the original parameters. - continues to use AndroidCommands.GetFilesChanged to determine which files need pushing - attempts to pick the fastest method out of: - individual file pushes - entire directory pushes - zip-push-unzip BUG=400440 Committed: https://crrev.com/b53e3ccca7fa26a51f3980f250f5527581324316 Cr-Commit-Position: refs/heads/master@{#299098}

Patch Set 1 #

Total comments: 7

Patch Set 2 : address comments from craigdh #

Total comments: 8

Patch Set 3 : address comments from cjhopman #

Patch Set 4 : address last comment from cjhopman #

Patch Set 5 : fix findbugs issues. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+446 lines, -243 lines) Patch
M build/android/gyp/create_device_library_links.py View 1 chunk +2 lines, -1 line 0 comments Download
M build/android/gyp/push_libraries.py View 1 chunk +1 line, -1 line 0 comments Download
M build/android/provision_devices.py View 1 chunk +1 line, -1 line 0 comments Download
A + build/android/pylib/device/commands/__init__.py View 0 chunks +-1 lines, --1 lines 0 comments Download
A + build/android/pylib/device/commands/commands.gyp View 1 chunk +7 lines, -6 lines 0 comments Download
A build/android/pylib/device/commands/install_commands.py View 1 chunk +43 lines, -0 lines 0 comments Download
A build/android/pylib/device/commands/java/src/org/chromium/android/commands/unzip/Unzip.java View 1 2 3 4 1 chunk +94 lines, -0 lines 0 comments Download
M build/android/pylib/device/device_utils.py View 1 2 3 14 chunks +159 lines, -91 lines 0 comments Download
M build/android/pylib/device/device_utils_test.py View 1 2 3 4 chunks +113 lines, -122 lines 0 comments Download
M build/android/pylib/forwarder.py View 1 chunk +2 lines, -2 lines 0 comments Download
M build/android/pylib/gtest/test_package_apk.py View 1 chunk +2 lines, -2 lines 0 comments Download
M build/android/pylib/gtest/test_package_exe.py View 2 chunks +3 lines, -3 lines 0 comments Download
M build/android/pylib/gtest/test_runner.py View 1 chunk +3 lines, -3 lines 0 comments Download
M build/android/pylib/instrumentation/test_runner.py View 2 chunks +9 lines, -6 lines 0 comments Download
M build/android/pylib/uiautomator/test_package.py View 1 chunk +1 line, -1 line 0 comments Download
M build/android/pylib/valgrind_tools.py View 1 chunk +3 lines, -3 lines 0 comments Download
M build/apk_test.gypi View 1 chunk +1 line, -0 lines 0 comments Download
M build/java_apk.gypi View 1 1 chunk +1 line, -0 lines 0 comments Download
M tools/telemetry/telemetry/core/backends/chrome/android_browser_backend.py View 1 chunk +1 line, -1 line 0 comments Download
M tools/telemetry/telemetry/core/platform/profiler/android_prebuilt_profiler_helper.py View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 19 (4 generated)
jbudorick
Notable changes in step times: - unit_tests ~6m15s -> ~4m - content_browsertests ~8m45s -> ~7m30s ...
6 years, 2 months ago (2014-10-09 12:25:11 UTC) #2
craigdh
pylib lgtm. https://codereview.chromium.org/646523002/diff/1/build/android/pylib/device/device_utils.py File build/android/pylib/device/device_utils.py (right): https://codereview.chromium.org/646523002/diff/1/build/android/pylib/device/device_utils.py#newcode537 build/android/pylib/device/device_utils.py:537: self._PushChangedFilesZipped(files) have you looked into using rsync? ...
6 years, 2 months ago (2014-10-09 16:21:00 UTC) #3
craigdh
https://codereview.chromium.org/646523002/diff/1/build/android/pylib/device/device_utils.py File build/android/pylib/device/device_utils.py (right): https://codereview.chromium.org/646523002/diff/1/build/android/pylib/device/device_utils.py#newcode632 build/android/pylib/device/device_utils.py:632: zip_file.close() On 2014/10/09 16:21:00, craigdh wrote: > close in ...
6 years, 2 months ago (2014-10-09 16:22:43 UTC) #4
jbudorick
https://codereview.chromium.org/646523002/diff/1/build/android/pylib/device/device_utils.py File build/android/pylib/device/device_utils.py (right): https://codereview.chromium.org/646523002/diff/1/build/android/pylib/device/device_utils.py#newcode537 build/android/pylib/device/device_utils.py:537: self._PushChangedFilesZipped(files) On 2014/10/09 16:21:00, craigdh wrote: > have you ...
6 years, 2 months ago (2014-10-09 16:43:59 UTC) #5
craigdh
https://codereview.chromium.org/646523002/diff/1/build/android/pylib/device/device_utils.py File build/android/pylib/device/device_utils.py (right): https://codereview.chromium.org/646523002/diff/1/build/android/pylib/device/device_utils.py#newcode537 build/android/pylib/device/device_utils.py:537: self._PushChangedFilesZipped(files) On 2014/10/09 16:43:58, jbudorick wrote: > On 2014/10/09 ...
6 years, 2 months ago (2014-10-09 16:48:44 UTC) #6
jbudorick
https://codereview.chromium.org/646523002/diff/1/build/android/pylib/device/device_utils.py File build/android/pylib/device/device_utils.py (right): https://codereview.chromium.org/646523002/diff/1/build/android/pylib/device/device_utils.py#newcode537 build/android/pylib/device/device_utils.py:537: self._PushChangedFilesZipped(files) On 2014/10/09 16:48:44, craigdh wrote: > On 2014/10/09 ...
6 years, 2 months ago (2014-10-09 16:58:32 UTC) #7
cjhopman
*.gyp/gypi lgtm https://codereview.chromium.org/646523002/diff/50001/build/android/pylib/device/device_utils.py File build/android/pylib/device/device_utils.py (right): https://codereview.chromium.org/646523002/diff/50001/build/android/pylib/device/device_utils.py#newcode508 build/android/pylib/device/device_utils.py:508: self._RunShellCommandImpl(['mkdir', '-p', '"%s"' % d], It's may ...
6 years, 2 months ago (2014-10-09 17:50:23 UTC) #8
tonyg
lgtm for telemetry owners -- I didn't review the rest of the patch
6 years, 2 months ago (2014-10-09 18:14:01 UTC) #9
jbudorick
https://codereview.chromium.org/646523002/diff/50001/build/android/pylib/device/device_utils.py File build/android/pylib/device/device_utils.py (right): https://codereview.chromium.org/646523002/diff/50001/build/android/pylib/device/device_utils.py#newcode508 build/android/pylib/device/device_utils.py:508: self._RunShellCommandImpl(['mkdir', '-p', '"%s"' % d], On 2014/10/09 17:50:23, cjhopman ...
6 years, 2 months ago (2014-10-09 19:26:40 UTC) #10
cjhopman
https://codereview.chromium.org/646523002/diff/50001/build/android/pylib/device/device_utils.py File build/android/pylib/device/device_utils.py (right): https://codereview.chromium.org/646523002/diff/50001/build/android/pylib/device/device_utils.py#newcode584 build/android/pylib/device/device_utils.py:584: zip_dir = tempfile.mkdtemp() On 2014/10/09 19:26:40, jbudorick wrote: > ...
6 years, 2 months ago (2014-10-09 20:27:39 UTC) #11
jbudorick
https://codereview.chromium.org/646523002/diff/50001/build/android/pylib/device/device_utils.py File build/android/pylib/device/device_utils.py (right): https://codereview.chromium.org/646523002/diff/50001/build/android/pylib/device/device_utils.py#newcode584 build/android/pylib/device/device_utils.py:584: zip_dir = tempfile.mkdtemp() On 2014/10/09 20:27:39, cjhopman wrote: > ...
6 years, 2 months ago (2014-10-10 09:33:48 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/646523002/250001
6 years, 2 months ago (2014-10-10 09:39:34 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/646523002/440001
6 years, 2 months ago (2014-10-10 11:23:24 UTC) #17
commit-bot: I haz the power
Committed patchset #5 (id:440001)
6 years, 2 months ago (2014-10-10 12:44:06 UTC) #18
commit-bot: I haz the power
6 years, 2 months ago (2014-10-10 12:44:39 UTC) #19
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/b53e3ccca7fa26a51f3980f250f5527581324316
Cr-Commit-Position: refs/heads/master@{#299098}

Powered by Google App Engine
This is Rietveld 408576698