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

Issue 647013002: [Android] Reland of '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] Reland of 'Add zip pushing and refine push mode selection.' BUG=400440 Committed: https://crrev.com/8c07d893d4c539c6097e8b249c96785e98c1a9e8 Cr-Commit-Position: refs/heads/master@{#299284}

Patch Set 1 #

Patch Set 2 : fixed for reland. #

Patch Set 3 : #

Patch Set 4 : rebase #

Patch Set 5 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+495 lines, -238 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 1 1 chunk +3 lines, -0 lines 0 comments Download
A build/android/pylib/device/commands/commands.gyp View 1 1 chunk +18 lines, -0 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 chunk +94 lines, -0 lines 0 comments Download
M build/android/pylib/device/device_utils.py View 1 2 3 4 14 chunks +193 lines, -91 lines 0 comments Download
M build/android/pylib/device/device_utils_test.py View 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 2 3 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: 15 (5 generated)
jbudorick
This is a reland of https://codereview.chromium.org/646523002/. The original patch (reproduced in patchset 1) broke on ...
6 years, 2 months ago (2014-10-10 19:34:51 UTC) #2
jbudorick
I should add: this fixes the issue by moving parts of GetFilesChanged up into DeviceUtils ...
6 years, 2 months ago (2014-10-10 19:38:07 UTC) #3
craigdh
rubberstamp lgtm.
6 years, 2 months ago (2014-10-10 20:07:41 UTC) #4
cjhopman
lgtm
6 years, 2 months ago (2014-10-10 23:24:06 UTC) #5
tonyg
lgtm for telemetry owners
6 years, 2 months ago (2014-10-11 00:59:16 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/647013002/460001
6 years, 2 months ago (2014-10-13 07:59:18 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/647013002/680001
6 years, 2 months ago (2014-10-13 10:54:33 UTC) #11
commit-bot: I haz the power
Committed patchset #5 (id:680001)
6 years, 2 months ago (2014-10-13 11:39:56 UTC) #12
commit-bot: I haz the power
Patchset 5 (id:??) landed as https://crrev.com/8c07d893d4c539c6097e8b249c96785e98c1a9e8 Cr-Commit-Position: refs/heads/master@{#299284}
6 years, 2 months ago (2014-10-13 11:40:47 UTC) #13
Kibeom Kim (inactive)
6 years, 2 months ago (2014-10-13 18:51:14 UTC) #15
Message was sent while issue was closed.
I synced today and was having the below issue. Reverting this CL locally solved.

ninja -C out/Debug -j 400 chrome_apk && adb shell am force-stop
com.google.android.apps.chrome ; adb shell am start
com.google.android.apps.chrome/.Main
ninja: Entering directory `out/Debug'
[825/862] ACTION Compiling chrome_java java sources
Note:
../chrome/android/java/src/org/chromium/chrome/browser/TtsPlatformImpl.java uses
or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
[829/862] ACTION Linting chrome_java

org/chromium/chrome/browser/WebappAuthenticator$1.class Potentially insecure
random numbers on Android 4.3 and older. Read
https://android-developers.blogspot.com/2013/08/some-securerandom-thoughts.html
for more info.: TrulyRandom [warning]
org/chromium/chrome/browser/appmenu/AppMenuButtonHelper.class
`org/chromium/chrome/browser/appmenu/AppMenuButtonHelper#onTouch` should call
`View#performClick` when a click is detected: ClickableViewAccessibility
[warning]

Lint found 2 new issues.
 - For full explanation refer to out/Debug/gen/chrome_java/lint_result.xml
 - Wanna suppress these issues?
    1. Read comment in build/android/lint/suppressions.xml
    2. Run "python build/android/lint/suppress.py
out/Debug/gen/chrome_java/lint_result.xml"

[835/862] ACTION Compiling chrome_private_java java sources
Note:
../../../clank/java/apps/chrome/src/com/google/android/apps/chrome/snapshot/cloudprint/AuthTokenHelper.java
uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
[859/861] ACTION Pushing libraries to device for chrome_apk
FAILED: cd ../../clank/native/framework; python
../../../build/android/gyp/push_libraries.py
"--build-device-configuration=../../../out/Debug/build_devices.cfg"
"--libraries-dir=../../../out/Debug/chrome_apk/lib.stripped/lib/armeabi-v7a"
"--device-dir=/data/data/org.chromium.gyp_managed_install/chrome_apk/Debug/lib.stripped"
"--libraries=@FileArg(../../../out/Debug/chrome_apk/native_libraries.json:libraries)"
"--stamp=../../../out/Debug/chrome_apk/push.stamp" "--configuration-name=Debug"
CRITICAL:root:5237 KB/s (8858440 bytes in 1.651s)

CRITICAL:root:3771 KB/s (8858440 bytes in 2.294s)

CRITICAL:root:2797 KB/s (8858440 bytes in 3.092s)

CRITICAL:root:4054 KB/s (8858440 bytes in 2.133s)

Traceback (most recent call last):
  File "../../../build/android/gyp/push_libraries.py", line 80, in <module>
    sys.exit(main(sys.argv[1:]))
  File "../../../build/android/gyp/push_libraries.py", line 73, in main
    DoPush(options)
  File "../../../build/android/gyp/push_libraries.py", line 50, in DoPush
    input_strings=[device_path])
  File
"/usr/local/google/code/clankium-master/src/build/android/gyp/util/md5_check.py",
line 30, in CallAndRecordIfStale
    function()
  File "../../../build/android/gyp/push_libraries.py", line 43, in Push
    device.PushChangedFiles([(host_path, device_path)])
  File
"/usr/local/google/code/clankium-master/src/build/android/gyp/util/build_device.py",
line 37, in PushChangedFiles
    return self.device.PushChangedFiles(*args, **kwargs)
  File "../../../build/android/gyp/../pylib/device/decorators.py", line 51, in
TimeoutRetryWrapper
    return timeout_retry.Run(impl, timeout, retries)
  File "../../../build/android/gyp/../pylib/utils/timeout_retry.py", line 45, in
Run
    thread_group.JoinAll(watchdog_timer.WatchdogTimer(timeout))
  File "../../../build/android/gyp/../pylib/utils/reraiser_thread.py", line 141,
in JoinAll
    self._JoinAll(watcher)
  File "../../../build/android/gyp/../pylib/utils/reraiser_thread.py", line 128,
in _JoinAll
    thread.ReraiseIfException()
  File "../../../build/android/gyp/../pylib/utils/reraiser_thread.py", line 76,
in run
    self._ret = self._func(*self._args, **self._kwargs)
  File "../../../build/android/gyp/../pylib/utils/timeout_retry.py", line 37, in
RunOnTimeoutThread
    ret[0] = func(*args, **kwargs)
  File "../../../build/android/gyp/../pylib/device/decorators.py", line 49, in
impl
    return f(*args, **kwargs)
  File "../../../build/android/gyp/../pylib/device/device_utils.py", line 536,
in PushChangedFiles
    self._PushChangedFilesZipped(files)
  File "../../../build/android/gyp/../pylib/device/device_utils.py", line 631,
in _PushChangedFilesZipped
    env={'PATH': '$PATH:%s' % install_commands.BIN_DIR})
  File "../../../build/android/gyp/../pylib/device/device_utils.py", line 324,
in _RunShellCommandImpl
    cmd.split(), 'Nonzero exit code (%d)' % code, device=str(self))
pylib.device.device_errors.AdbCommandFailedError: (device: 00311c79e0151656) adb
command 'PATH=$PATH:/data/local/tmp/bin unzip /storage/emulated/legacy/tmp.zip'
failed with message: 'Nonzero exit code (134)'
[859/861] ACTION Signing/aligning chrome_apk APK:
chrome_apk/Chrome-standalone-unsigned.apk^C
ninja: build stopped: interrupted by user.
Starting: Intent { act=android.intent.action.MAIN
cat=[android.intent.category.LAUNCHER] cmp=com.google.android.apps.chrome/.Main
}

Powered by Google App Engine
This is Rietveld 408576698