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

Issue 2791613003: [Instrumentation Test Speed] Install apks in parallel with concurrent_adb enabled (Closed)

Created:
3 years, 8 months ago by shenghuazhang
Modified:
3 years, 8 months ago
CC:
agrieve+watch_chromium.org, chromium-reviews, jbudorick+watch_chromium.org, mikecase+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

[Instrumentation Test Speed] Install apks in parallel with concurrent_adb enabled The current install_apk installs all apks one by one. This CL enables apks installation in parallel when execute the test with command '--enable-concurrent-adb'. In this way, the total individial_device_set_up time decreases. BUG=670302 Review-Url: https://codereview.chromium.org/2791613003 Cr-Commit-Position: refs/heads/master@{#463529} Committed: https://chromium.googlesource.com/chromium/src/+/7ff10a8c4f7295430af4d3bac32ffb713fb42761

Patch Set 1 #

Total comments: 2

Patch Set 2 : John Comment #

Total comments: 5

Patch Set 3 : John comment #

Patch Set 4 : John comment #

Total comments: 13

Patch Set 5 : John & Case comment #

Patch Set 6 : John & Case Comment #

Total comments: 6

Patch Set 7 : Case comment #

Total comments: 2

Patch Set 8 : agrieve & jbudorick comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+33 lines, -23 lines) Patch
M build/android/pylib/local/device/local_device_instrumentation_test_run.py View 1 2 3 4 5 6 7 2 chunks +33 lines, -23 lines 0 comments Download

Messages

Total messages: 23 (7 generated)
shenghuazhang
Test speed comparison results by this CL is documented in this doc: https://docs.google.com/a/google.com/document/d/1IBGvSFpXv7mcJ6fvjIO_KeQNU-9S66PgAVHGbZm8cXs/edit?usp=sharing
3 years, 8 months ago (2017-03-31 23:17:03 UTC) #2
jbudorick
https://codereview.chromium.org/2791613003/diff/1/build/android/pylib/local/device/local_device_instrumentation_test_run.py File build/android/pylib/local/device/local_device_instrumentation_test_run.py (right): https://codereview.chromium.org/2791613003/diff/1/build/android/pylib/local/device/local_device_instrumentation_test_run.py#newcode128 build/android/pylib/local/device/local_device_instrumentation_test_run.py:128: pool = ThreadPool(processes=len(apk_resource_array)) Instead of using a ThreadPool, split ...
3 years, 8 months ago (2017-04-01 00:58:19 UTC) #3
shenghuazhang
+mikecase as reviewer.
3 years, 8 months ago (2017-04-04 02:11:30 UTC) #6
jbudorick
https://codereview.chromium.org/2791613003/diff/20001/build/android/pylib/local/device/local_device_instrumentation_test_run.py File build/android/pylib/local/device/local_device_instrumentation_test_run.py (right): https://codereview.chromium.org/2791613003/diff/20001/build/android/pylib/local/device/local_device_instrumentation_test_run.py#newcode78 build/android/pylib/local/device/local_device_instrumentation_test_run.py:78: def single_apk_install(apk_permission_pair): These three functions shouldn't be necessary w/ ...
3 years, 8 months ago (2017-04-04 02:52:23 UTC) #7
jbudorick
https://codereview.chromium.org/2791613003/diff/20001/build/android/pylib/local/device/local_device_instrumentation_test_run.py File build/android/pylib/local/device/local_device_instrumentation_test_run.py (right): https://codereview.chromium.org/2791613003/diff/20001/build/android/pylib/local/device/local_device_instrumentation_test_run.py#newcode99 build/android/pylib/local/device/local_device_instrumentation_test_run.py:99: def install_apk(): On 2017/04/04 02:52:23, jbudorick wrote: > Rather ...
3 years, 8 months ago (2017-04-04 23:03:47 UTC) #8
shenghuazhang
https://codereview.chromium.org/2791613003/diff/20001/build/android/pylib/local/device/local_device_instrumentation_test_run.py File build/android/pylib/local/device/local_device_instrumentation_test_run.py (right): https://codereview.chromium.org/2791613003/diff/20001/build/android/pylib/local/device/local_device_instrumentation_test_run.py#newcode78 build/android/pylib/local/device/local_device_instrumentation_test_run.py:78: def single_apk_install(apk_permission_pair): On 2017/04/04 02:52:23, jbudorick wrote: > These ...
3 years, 8 months ago (2017-04-05 03:00:16 UTC) #9
mikecase (-- gone --)
This seems really sweet. Some comments. https://codereview.chromium.org/2791613003/diff/60001/build/android/pylib/local/device/local_device_instrumentation_test_run.py File build/android/pylib/local/device/local_device_instrumentation_test_run.py (right): https://codereview.chromium.org/2791613003/diff/60001/build/android/pylib/local/device/local_device_instrumentation_test_run.py#newcode106 build/android/pylib/local/device/local_device_instrumentation_test_run.py:106: for apk in ...
3 years, 8 months ago (2017-04-05 15:46:11 UTC) #10
mikecase (-- gone --)
https://codereview.chromium.org/2791613003/diff/60001/build/android/pylib/local/device/local_device_instrumentation_test_run.py File build/android/pylib/local/device/local_device_instrumentation_test_run.py (right): https://codereview.chromium.org/2791613003/diff/60001/build/android/pylib/local/device/local_device_instrumentation_test_run.py#newcode184 build/android/pylib/local/device/local_device_instrumentation_test_run.py:184: steps = install_apk_steps + [set_debug_app, edit_shared_prefs, On 2017/04/05 at ...
3 years, 8 months ago (2017-04-05 16:29:06 UTC) #11
jbudorick
https://codereview.chromium.org/2791613003/diff/60001/build/android/pylib/local/device/local_device_instrumentation_test_run.py File build/android/pylib/local/device/local_device_instrumentation_test_run.py (right): https://codereview.chromium.org/2791613003/diff/60001/build/android/pylib/local/device/local_device_instrumentation_test_run.py#newcode78 build/android/pylib/local/device/local_device_instrumentation_test_run.py:78: def install_apk(): This function should no longer exist. We ...
3 years, 8 months ago (2017-04-05 16:32:29 UTC) #12
shenghuazhang
Did a quick research about set-debug-app. Please look into the comment. https://codereview.chromium.org/2791613003/diff/60001/build/android/pylib/local/device/local_device_instrumentation_test_run.py File build/android/pylib/local/device/local_device_instrumentation_test_run.py (right): ...
3 years, 8 months ago (2017-04-05 18:57:05 UTC) #13
mikecase (-- gone --)
lgtm! just nits. https://codereview.chromium.org/2791613003/diff/100001/build/android/pylib/local/device/local_device_instrumentation_test_run.py File build/android/pylib/local/device/local_device_instrumentation_test_run.py (right): https://codereview.chromium.org/2791613003/diff/100001/build/android/pylib/local/device/local_device_instrumentation_test_run.py#newcode80 build/android/pylib/local/device/local_device_instrumentation_test_run.py:80: return lambda: dev.Install(apk, permissions=permissions) super nit: ...
3 years, 8 months ago (2017-04-08 00:50:12 UTC) #14
shenghuazhang
https://codereview.chromium.org/2791613003/diff/100001/build/android/pylib/local/device/local_device_instrumentation_test_run.py File build/android/pylib/local/device/local_device_instrumentation_test_run.py (right): https://codereview.chromium.org/2791613003/diff/100001/build/android/pylib/local/device/local_device_instrumentation_test_run.py#newcode80 build/android/pylib/local/device/local_device_instrumentation_test_run.py:80: return lambda: dev.Install(apk, permissions=permissions) On 2017/04/08 00:50:12, mikecase wrote: ...
3 years, 8 months ago (2017-04-08 01:29:35 UTC) #15
agrieve
lgtm https://codereview.chromium.org/2791613003/diff/120001/build/android/pylib/local/device/local_device_instrumentation_test_run.py File build/android/pylib/local/device/local_device_instrumentation_test_run.py (right): https://codereview.chromium.org/2791613003/diff/120001/build/android/pylib/local/device/local_device_instrumentation_test_run.py#newcode106 build/android/pylib/local/device/local_device_instrumentation_test_run.py:106: steps.extend([install_helper(apk, None) nit: you don't need the []s ...
3 years, 8 months ago (2017-04-10 18:37:06 UTC) #16
jbudorick
lgtm https://codereview.chromium.org/2791613003/diff/120001/build/android/pylib/local/device/local_device_instrumentation_test_run.py File build/android/pylib/local/device/local_device_instrumentation_test_run.py (right): https://codereview.chromium.org/2791613003/diff/120001/build/android/pylib/local/device/local_device_instrumentation_test_run.py#newcode96 build/android/pylib/local/device/local_device_instrumentation_test_run.py:96: steps.append(lambda: local_device_test_run.IncrementalInstall( optional nit: maybe move this into ...
3 years, 8 months ago (2017-04-10 19:02:54 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2791613003/140001
3 years, 8 months ago (2017-04-11 03:00:13 UTC) #20
commit-bot: I haz the power
3 years, 8 months ago (2017-04-11 04:13:50 UTC) #23
Message was sent while issue was closed.
Committed patchset #8 (id:140001) as
https://chromium.googlesource.com/chromium/src/+/7ff10a8c4f7295430af4d3bac32f...

Powered by Google App Engine
This is Rietveld 408576698