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

Issue 1325893002: Defer running of install_commands.Installed() until necessary (Closed)

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

Description

Speed up device_utils's zip pushing, and don't use a constant temp file - Defers running of a few adb commands so that they happen while the host zip is being constructed. - Combines unzip & chmod into a single command Reduces time to re-push all .so files from 23s->21s BUG=520082 Committed: https://crrev.com/ff506f629332dbeb3efb3df73cf8ff5b168312e8 Cr-Commit-Position: refs/heads/master@{#347478}

Patch Set 1 #

Patch Set 2 : single check #

Total comments: 2

Patch Set 3 : Reworked it #

Patch Set 4 : prefetch NeedsSU #

Total comments: 4

Patch Set 5 : review comments #

Total comments: 2

Patch Set 6 : review nit #

Unified diffs Side-by-side diffs Delta from patch set Stats (+89 lines, -59 lines) Patch
M build/android/devil/android/device_utils.py View 1 2 3 4 5 5 chunks +45 lines, -36 lines 0 comments Download
M build/android/devil/android/device_utils_test.py View 1 2 3 4 3 chunks +39 lines, -21 lines 0 comments Download
M build/android/pylib/device/commands/install_commands.py View 1 2 2 chunks +5 lines, -2 lines 0 comments Download

Messages

Total messages: 14 (3 generated)
agrieve
5 years, 3 months ago (2015-09-01 20:27:56 UTC) #2
jbudorick
https://codereview.chromium.org/1325893002/diff/20001/build/android/pylib/device/commands/install_commands.py File build/android/pylib/device/commands/install_commands.py (left): https://codereview.chromium.org/1325893002/diff/20001/build/android/pylib/device/commands/install_commands.py#oldcode25 build/android/pylib/device/commands/install_commands.py:25: return (all(device.FileExists('%s/%s' % (BIN_DIR, c)) for c in _COMMANDS) ...
5 years, 3 months ago (2015-09-01 20:33:20 UTC) #3
agrieve
Settled on keeping the existing explicit check for unzip (although we might want to change ...
5 years, 3 months ago (2015-09-02 15:34:49 UTC) #4
agrieve
On 2015/09/02 15:34:49, agrieve wrote: > Settled on keeping the existing explicit check for unzip ...
5 years, 3 months ago (2015-09-04 13:56:54 UTC) #5
jbudorick
https://codereview.chromium.org/1325893002/diff/60001/build/android/devil/android/device_utils.py File build/android/devil/android/device_utils.py (left): https://codereview.chromium.org/1325893002/diff/60001/build/android/devil/android/device_utils.py#oldcode1163 build/android/devil/android/device_utils.py:1163: try: What happened to the exception handler on installation ...
5 years, 3 months ago (2015-09-04 16:09:11 UTC) #6
agrieve
https://codereview.chromium.org/1325893002/diff/60001/build/android/devil/android/device_utils.py File build/android/devil/android/device_utils.py (left): https://codereview.chromium.org/1325893002/diff/60001/build/android/devil/android/device_utils.py#oldcode1163 build/android/devil/android/device_utils.py:1163: try: On 2015/09/04 16:09:11, jbudorick wrote: > What happened ...
5 years, 3 months ago (2015-09-04 17:21:24 UTC) #7
jbudorick
lgtm w/ nit https://codereview.chromium.org/1325893002/diff/80001/build/android/devil/android/device_utils.py File build/android/devil/android/device_utils.py (right): https://codereview.chromium.org/1325893002/diff/80001/build/android/devil/android/device_utils.py#newcode1158 build/android/devil/android/device_utils.py:1158: elif not self._PushChangedFilesZipped(files, nit: most of ...
5 years, 3 months ago (2015-09-04 17:33:27 UTC) #8
agrieve
https://codereview.chromium.org/1325893002/diff/80001/build/android/devil/android/device_utils.py File build/android/devil/android/device_utils.py (right): https://codereview.chromium.org/1325893002/diff/80001/build/android/devil/android/device_utils.py#newcode1158 build/android/devil/android/device_utils.py:1158: elif not self._PushChangedFilesZipped(files, On 2015/09/04 17:33:27, jbudorick wrote: > ...
5 years, 3 months ago (2015-09-04 18:39:39 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1325893002/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1325893002/100001
5 years, 3 months ago (2015-09-04 18:42:58 UTC) #12
commit-bot: I haz the power
Committed patchset #6 (id:100001)
5 years, 3 months ago (2015-09-04 20:11:17 UTC) #13
commit-bot: I haz the power
5 years, 3 months ago (2015-09-04 20:11:53 UTC) #14
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/ff506f629332dbeb3efb3df73cf8ff5b168312e8
Cr-Commit-Position: refs/heads/master@{#347478}

Powered by Google App Engine
This is Rietveld 408576698