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

Issue 839893004: Refactor test scripts for android to improve performance (Closed)

Created:
5 years, 11 months ago by Jaekyun Seok (inactive)
Modified:
5 years, 11 months ago
CC:
chromium-reviews, klundberg+watch_chromium.org, yfriedman+watch_chromium.org, jbudorick+watch_chromium.org, klundberg
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Refactor test scripts for android to improve performance -. Skip checking package existence -. Skip stopping an Activity -. Reduce waiting time for fifo BUG=449354 Committed: https://crrev.com/e3a24e9786ac3483c60e91c39742243aa15e7a14 Cr-Commit-Position: refs/heads/master@{#312552}

Patch Set 1 #

Patch Set 2 : Rename a parameter #

Total comments: 20

Patch Set 3 : Apply jbudorick's comments #

Patch Set 4 : Cache application paths #

Total comments: 3

Patch Set 5 : Skip checking package on JBMR2 or above #

Unified diffs Side-by-side diffs Delta from patch set Stats (+54 lines, -32 lines) Patch
M build/android/pylib/device/device_utils.py View 1 2 3 4 1 chunk +6 lines, -3 lines 0 comments Download
M build/android/pylib/device/device_utils_test.py View 1 2 3 4 1 chunk +19 lines, -3 lines 0 comments Download
M build/android/pylib/gtest/test_package_apk.py View 1 2 3 3 chunks +9 lines, -6 lines 0 comments Download
M build/android/pylib/gtest/test_runner.py View 1 2 2 chunks +20 lines, -20 lines 0 comments Download

Messages

Total messages: 31 (6 generated)
Jaekyun Seok (inactive)
Karin, please review this CL.
5 years, 11 months ago (2015-01-16 07:43:38 UTC) #2
jbudorick
Started a try job to see how this affects content_browsertest execution time. I'm curious as ...
5 years, 11 months ago (2015-01-16 14:21:42 UTC) #4
jbudorick
On 2015/01/16 14:21:42, jbudorick wrote: > Started a try job to see how this affects ...
5 years, 11 months ago (2015-01-16 15:18:18 UTC) #5
klundberg
Moved myself to CC as John is the best reviewer for this :-)
5 years, 11 months ago (2015-01-16 15:21:29 UTC) #8
Jaekyun Seok (inactive)
On 2015/01/16 15:18:18, jbudorick wrote: > On 2015/01/16 14:21:42, jbudorick wrote: > > Started a ...
5 years, 11 months ago (2015-01-18 23:01:18 UTC) #9
jbudorick
Kicked off another try job. https://codereview.chromium.org/839893004/diff/20001/build/android/pylib/device/device_utils.py File build/android/pylib/device/device_utils.py (right): https://codereview.chromium.org/839893004/diff/20001/build/android/pylib/device/device_utils.py#newcode642 build/android/pylib/device/device_utils.py:642: if (not package_check_needed) or ...
5 years, 11 months ago (2015-01-20 14:11:23 UTC) #10
Jaekyun Seok (inactive)
https://codereview.chromium.org/839893004/diff/20001/build/android/pylib/device/device_utils.py File build/android/pylib/device/device_utils.py (right): https://codereview.chromium.org/839893004/diff/20001/build/android/pylib/device/device_utils.py#newcode642 build/android/pylib/device/device_utils.py:642: if (not package_check_needed) or self.GetApplicationPath(package): On 2015/01/20 14:11:23, jbudorick ...
5 years, 11 months ago (2015-01-20 22:00:23 UTC) #11
jbudorick
https://codereview.chromium.org/839893004/diff/20001/build/android/pylib/device/device_utils.py File build/android/pylib/device/device_utils.py (right): https://codereview.chromium.org/839893004/diff/20001/build/android/pylib/device/device_utils.py#newcode642 build/android/pylib/device/device_utils.py:642: if (not package_check_needed) or self.GetApplicationPath(package): On 2015/01/20 22:00:23, Jaekyun ...
5 years, 11 months ago (2015-01-20 22:04:04 UTC) #12
Jaekyun Seok (inactive)
https://codereview.chromium.org/839893004/diff/20001/build/android/pylib/device/device_utils.py File build/android/pylib/device/device_utils.py (right): https://codereview.chromium.org/839893004/diff/20001/build/android/pylib/device/device_utils.py#newcode642 build/android/pylib/device/device_utils.py:642: if (not package_check_needed) or self.GetApplicationPath(package): On 2015/01/20 22:04:04, jbudorick ...
5 years, 11 months ago (2015-01-20 22:11:17 UTC) #13
jbudorick
+Juan, who has also done a substantial amount of work on DeviceUtils https://codereview.chromium.org/839893004/diff/20001/build/android/pylib/device/device_utils.py File build/android/pylib/device/device_utils.py ...
5 years, 11 months ago (2015-01-20 22:22:44 UTC) #15
jbudorick
On 2015/01/20 22:22:44, jbudorick wrote: > +Juan, who has also done a substantial amount of ...
5 years, 11 months ago (2015-01-20 22:24:00 UTC) #16
Jaekyun Seok (inactive)
https://codereview.chromium.org/839893004/diff/20001/build/android/pylib/device/device_utils.py File build/android/pylib/device/device_utils.py (right): https://codereview.chromium.org/839893004/diff/20001/build/android/pylib/device/device_utils.py#newcode642 build/android/pylib/device/device_utils.py:642: if (not package_check_needed) or self.GetApplicationPath(package): On 2015/01/20 22:22:43, jbudorick ...
5 years, 11 months ago (2015-01-20 23:20:35 UTC) #17
jbudorick
https://codereview.chromium.org/839893004/diff/20001/build/android/pylib/device/device_utils.py File build/android/pylib/device/device_utils.py (right): https://codereview.chromium.org/839893004/diff/20001/build/android/pylib/device/device_utils.py#newcode642 build/android/pylib/device/device_utils.py:642: if (not package_check_needed) or self.GetApplicationPath(package): On 2015/01/20 23:20:35, Jaekyun ...
5 years, 11 months ago (2015-01-20 23:34:24 UTC) #18
perezju
https://codereview.chromium.org/839893004/diff/20001/build/android/pylib/device/device_utils.py File build/android/pylib/device/device_utils.py (right): https://codereview.chromium.org/839893004/diff/20001/build/android/pylib/device/device_utils.py#newcode642 build/android/pylib/device/device_utils.py:642: if (not package_check_needed) or self.GetApplicationPath(package): Yeah, I also dislike ...
5 years, 11 months ago (2015-01-21 10:28:52 UTC) #19
jbudorick
https://codereview.chromium.org/839893004/diff/20001/build/android/pylib/device/device_utils.py File build/android/pylib/device/device_utils.py (right): https://codereview.chromium.org/839893004/diff/20001/build/android/pylib/device/device_utils.py#newcode642 build/android/pylib/device/device_utils.py:642: if (not package_check_needed) or self.GetApplicationPath(package): On 2015/01/21 10:28:52, perezju ...
5 years, 11 months ago (2015-01-21 14:57:00 UTC) #20
jbudorick
https://codereview.chromium.org/839893004/diff/20001/build/android/pylib/device/device_utils.py File build/android/pylib/device/device_utils.py (right): https://codereview.chromium.org/839893004/diff/20001/build/android/pylib/device/device_utils.py#newcode642 build/android/pylib/device/device_utils.py:642: if (not package_check_needed) or self.GetApplicationPath(package): On 2015/01/21 14:57:00, jbudorick ...
5 years, 11 months ago (2015-01-21 15:03:14 UTC) #21
Jaekyun Seok (inactive)
On 2015/01/21 15:03:14, jbudorick wrote: > https://codereview.chromium.org/839893004/diff/20001/build/android/pylib/device/device_utils.py > File build/android/pylib/device/device_utils.py (right): > > https://codereview.chromium.org/839893004/diff/20001/build/android/pylib/device/device_utils.py#newcode642 > ...
5 years, 11 months ago (2015-01-21 21:54:24 UTC) #22
Jaekyun Seok (inactive)
PTAL. I've uploaded a new patch to cache application paths.
5 years, 11 months ago (2015-01-21 22:41:45 UTC) #23
jbudorick
On 2015/01/21 21:54:24, Jaekyun Seok wrote: > On 2015/01/21 15:03:14, jbudorick wrote: > > > ...
5 years, 11 months ago (2015-01-21 22:46:47 UTC) #24
jbudorick
@perezju: I suggested the cache in AdbWrapper (or in some way that involved AdbWrapper) because, ...
5 years, 11 months ago (2015-01-21 22:54:09 UTC) #25
Jaekyun Seok (inactive)
PTAL. I confirmed that the hanging problem of "pm clear" was fixed since JB MR2. ...
5 years, 11 months ago (2015-01-22 02:12:52 UTC) #26
jbudorick
lgtm IIRC, the devices attached to the CQ bots are on some build of KitKat, ...
5 years, 11 months ago (2015-01-22 02:22:16 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/839893004/80001
5 years, 11 months ago (2015-01-22 02:27:35 UTC) #29
commit-bot: I haz the power
Committed patchset #5 (id:80001)
5 years, 11 months ago (2015-01-22 03:24:20 UTC) #30
commit-bot: I haz the power
5 years, 11 months ago (2015-01-22 03:25:15 UTC) #31
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/e3a24e9786ac3483c60e91c39742243aa15e7a14
Cr-Commit-Position: refs/heads/master@{#312552}

Powered by Google App Engine
This is Rietveld 408576698