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

Issue 1234153004: Cache device apk checksums in device_utils.py (Closed)

Created:
5 years, 5 months ago by agrieve
Modified:
5 years, 4 months ago
Reviewers:
perezju, 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@gtest-fast
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Cache device apk checksums in device_utils.py On my machine, this brings the time to run: bin/run_base_unittests --gtest-filter PathUtilsTest.TestGetDataDirectory from ~18 seconds to ~15 seconds BUG= Committed: https://crrev.com/69a68c76ec6d27e8b27eeb0851bbc3247b700a3b Cr-Commit-Position: refs/heads/master@{#342860}

Patch Set 1 #

Total comments: 6

Patch Set 2 : hook uninstall #

Total comments: 6

Patch Set 3 : address review comments #

Total comments: 4

Patch Set 4 : add Uninstall() #

Total comments: 11

Patch Set 5 : some style nits #

Unified diffs Side-by-side diffs Delta from patch set Stats (+174 lines, -95 lines) Patch
M build/android/pylib/device/device_utils.py View 1 2 3 4 9 chunks +80 lines, -15 lines 0 comments Download
M build/android/pylib/device/device_utils_test.py View 1 2 3 16 chunks +94 lines, -80 lines 0 comments Download

Depends on Patchset:

Dependent Patchsets:

Messages

Total messages: 30 (3 generated)
agrieve
Come up with this while I was looking at why it was so slow on ...
5 years, 5 months ago (2015-07-16 16:03:03 UTC) #2
jbudorick
This CL worries me for a few reasons: - stale cache data. Not everything is ...
5 years, 5 months ago (2015-07-16 16:31:33 UTC) #4
jbudorick
On 2015/07/16 at 16:03:03, agrieve wrote: > Come up with this while I was looking ...
5 years, 5 months ago (2015-07-16 16:32:21 UTC) #5
jbudorick
On 2015/07/16 at 16:32:21, jbudorick wrote: > On 2015/07/16 at 16:03:03, agrieve wrote: > > ...
5 years, 5 months ago (2015-07-16 16:53:52 UTC) #6
agrieve
Had the same concerns about Uninstall being missing / cache somehow becoming out-of-date. Still, multiple ...
5 years, 5 months ago (2015-07-16 19:01:21 UTC) #7
agrieve
On 2015/07/16 16:53:52, jbudorick wrote: > On 2015/07/16 at 16:32:21, jbudorick wrote: > > On ...
5 years, 5 months ago (2015-07-16 19:04:39 UTC) #8
jbudorick
On 2015/07/16 at 19:04:39, agrieve wrote: > On 2015/07/16 16:53:52, jbudorick wrote: > > On ...
5 years, 5 months ago (2015-07-16 19:11:22 UTC) #9
agrieve
On 2015/07/16 19:11:22, jbudorick wrote: > On 2015/07/16 at 19:04:39, agrieve wrote: > > On ...
5 years, 4 months ago (2015-07-28 14:19:05 UTC) #10
agrieve
On 2015/07/28 14:19:05, agrieve wrote: > On 2015/07/16 19:11:22, jbudorick wrote: > > On 2015/07/16 ...
5 years, 4 months ago (2015-07-31 15:50:10 UTC) #11
agrieve
On 2015/07/31 15:50:10, agrieve wrote: > On 2015/07/28 14:19:05, agrieve wrote: > > On 2015/07/16 ...
5 years, 4 months ago (2015-08-06 17:54:07 UTC) #12
jbudorick
https://codereview.chromium.org/1234153004/diff/20001/build/android/pylib/device/device_utils.py File build/android/pylib/device/device_utils.py (right): https://codereview.chromium.org/1234153004/diff/20001/build/android/pylib/device/device_utils.py#newcode195 build/android/pylib/device/device_utils.py:195: self._package_to_device_apk_paths_cache[package_name] = [] I would still prefer to use ...
5 years, 4 months ago (2015-08-06 19:28:22 UTC) #13
agrieve
https://codereview.chromium.org/1234153004/diff/20001/build/android/pylib/device/device_utils.py File build/android/pylib/device/device_utils.py (right): https://codereview.chromium.org/1234153004/diff/20001/build/android/pylib/device/device_utils.py#newcode195 build/android/pylib/device/device_utils.py:195: self._package_to_device_apk_paths_cache[package_name] = [] On 2015/08/06 19:28:22, jbudorick wrote: > ...
5 years, 4 months ago (2015-08-11 14:07:46 UTC) #14
jbudorick
https://codereview.chromium.org/1234153004/diff/40001/build/android/pylib/device/device_utils.py File build/android/pylib/device/device_utils.py (right): https://codereview.chromium.org/1234153004/diff/40001/build/android/pylib/device/device_utils.py#newcode198 build/android/pylib/device/device_utils.py:198: old_adb_uninstall = self.adb.Uninstall urgh, cache invalidation. I don't like ...
5 years, 4 months ago (2015-08-11 14:32:27 UTC) #15
agrieve
https://codereview.chromium.org/1234153004/diff/40001/build/android/pylib/device/device_utils.py File build/android/pylib/device/device_utils.py (right): https://codereview.chromium.org/1234153004/diff/40001/build/android/pylib/device/device_utils.py#newcode198 build/android/pylib/device/device_utils.py:198: old_adb_uninstall = self.adb.Uninstall On 2015/08/11 14:32:27, jbudorick wrote: > ...
5 years, 4 months ago (2015-08-11 14:48:35 UTC) #16
jbudorick
https://codereview.chromium.org/1234153004/diff/40001/build/android/pylib/device/device_utils.py File build/android/pylib/device/device_utils.py (right): https://codereview.chromium.org/1234153004/diff/40001/build/android/pylib/device/device_utils.py#newcode198 build/android/pylib/device/device_utils.py:198: old_adb_uninstall = self.adb.Uninstall On 2015/08/11 at 14:48:34, agrieve wrote: ...
5 years, 4 months ago (2015-08-11 14:53:19 UTC) #17
agrieve
On 2015/08/11 14:53:19, jbudorick wrote: > https://codereview.chromium.org/1234153004/diff/40001/build/android/pylib/device/device_utils.py > File build/android/pylib/device/device_utils.py (right): > > https://codereview.chromium.org/1234153004/diff/40001/build/android/pylib/device/device_utils.py#newcode198 > ...
5 years, 4 months ago (2015-08-11 15:13:20 UTC) #18
jbudorick
https://codereview.chromium.org/1234153004/diff/40001/build/android/pylib/device/device_utils.py File build/android/pylib/device/device_utils.py (right): https://codereview.chromium.org/1234153004/diff/40001/build/android/pylib/device/device_utils.py#newcode198 build/android/pylib/device/device_utils.py:198: old_adb_uninstall = self.adb.Uninstall On 2015/08/11 at 14:53:19, jbudorick wrote: ...
5 years, 4 months ago (2015-08-11 15:13:31 UTC) #19
jbudorick
https://codereview.chromium.org/1234153004/diff/60001/build/android/pylib/device/device_utils.py File build/android/pylib/device/device_utils.py (right): https://codereview.chromium.org/1234153004/diff/60001/build/android/pylib/device/device_utils.py#newcode528 build/android/pylib/device/device_utils.py:528: if should_install: nit: I know this is how it ...
5 years, 4 months ago (2015-08-11 15:21:05 UTC) #20
agrieve
https://codereview.chromium.org/1234153004/diff/60001/build/android/pylib/device/device_utils.py File build/android/pylib/device/device_utils.py (right): https://codereview.chromium.org/1234153004/diff/60001/build/android/pylib/device/device_utils.py#newcode528 build/android/pylib/device/device_utils.py:528: if should_install: On 2015/08/11 15:21:04, jbudorick wrote: > nit: ...
5 years, 4 months ago (2015-08-11 15:26:08 UTC) #21
jbudorick
https://codereview.chromium.org/1234153004/diff/60001/build/android/pylib/device/device_utils.py File build/android/pylib/device/device_utils.py (right): https://codereview.chromium.org/1234153004/diff/60001/build/android/pylib/device/device_utils.py#newcode1085 build/android/pylib/device/device_utils.py:1085: if ret is None: On 2015/08/11 at 15:26:08, agrieve ...
5 years, 4 months ago (2015-08-11 15:29:53 UTC) #22
agrieve
On 2015/08/11 15:29:53, jbudorick wrote: > https://codereview.chromium.org/1234153004/diff/60001/build/android/pylib/device/device_utils.py > File build/android/pylib/device/device_utils.py (right): > > https://codereview.chromium.org/1234153004/diff/60001/build/android/pylib/device/device_utils.py#newcode1085 > ...
5 years, 4 months ago (2015-08-11 15:35:39 UTC) #23
jbudorick
On 2015/08/11 at 15:35:39, agrieve wrote: > On 2015/08/11 15:29:53, jbudorick wrote: > > https://codereview.chromium.org/1234153004/diff/60001/build/android/pylib/device/device_utils.py ...
5 years, 4 months ago (2015-08-11 15:39:17 UTC) #24
jbudorick
lgtm
5 years, 4 months ago (2015-08-11 16:01:26 UTC) #25
jbudorick
On 2015/08/11 at 16:01:26, jbudorick wrote: > lgtm Also: thanks!
5 years, 4 months ago (2015-08-11 16:01:58 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1234153004/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1234153004/80001
5 years, 4 months ago (2015-08-11 17:29:12 UTC) #28
commit-bot: I haz the power
Committed patchset #5 (id:80001)
5 years, 4 months ago (2015-08-11 19:16:00 UTC) #29
commit-bot: I haz the power
5 years, 4 months ago (2015-08-11 19:16:57 UTC) #30
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/69a68c76ec6d27e8b27eeb0851bbc3247b700a3b
Cr-Commit-Position: refs/heads/master@{#342860}

Powered by Google App Engine
This is Rietveld 408576698