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

Issue 1034053002: [Android] Add an out-of-app instrumentation driver APK. (Closed)

Created:
5 years, 9 months ago by jbudorick
Modified:
5 years, 8 months ago
CC:
chromium-reviews, mlamouri+watch-content_chromium.org, mkwst+moarreviews-shell_chromium.org, jam, android-webview-reviews_chromium.org, darin-cc_chromium.org, yfriedman+watch_chromium.org, klundberg+watch_chromium.org, erikwright+watch_chromium.org, jbudorick+watch_chromium.org, jochen+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Android] Add an out-of-app instrumentation driver APK. BUG=444049 Committed: https://crrev.com/79d22ed2b74d0ff1082f6febfd3fd93c0574d130 Cr-Commit-Position: refs/heads/master@{#326900}

Patch Set 1 #

Total comments: 28

Patch Set 2 : everything but the rename #

Patch Set 3 : the rename #

Total comments: 18

Patch Set 4 : #

Patch Set 5 : rebase after native_test/ move #

Patch Set 6 : Passenger -> Broker #

Total comments: 6

Patch Set 7 : Yaron's comments #

Total comments: 4

Patch Set 8 : adding heartbeats #

Total comments: 2

Patch Set 9 : stopHeartbeat #

Patch Set 10 : make the gtest wrapper actually use appurify_support #

Patch Set 11 : gn support #

Patch Set 12 : fix unittest_apk gn template #

Total comments: 6

Patch Set 13 : thestig + cjhopman comments #

Patch Set 14 : fix AndroidWebviewTest manifest changes #

Total comments: 2

Patch Set 15 : cjhopman comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1092 lines, -92 lines) Patch
M android_webview/android_webview_tests.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +2 lines, -0 lines 0 comments Download
M android_webview/javatests/AndroidManifest.xml View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +3 lines, -1 line 0 comments Download
M base/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +1 line, -0 lines 0 comments Download
M base/base.gyp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +1 line, -0 lines 0 comments Download
M base/test/android/javatests/src/org/chromium/base/test/BaseInstrumentationTestRunner.java View 1 2 3 4 5 6 7 8 9 10 11 12 3 chunks +5 lines, -1 line 0 comments Download
M build/android/pylib/instrumentation/instrumentation_test_instance.py View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 9 chunks +78 lines, -15 lines 0 comments Download
M build/android/pylib/local/device/local_device_instrumentation_test_run.py View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +30 lines, -11 lines 0 comments Download
M build/android/pylib/remote/device/remote_device_helper.py View 1 chunk +2 lines, -1 line 0 comments Download
M build/android/pylib/remote/device/remote_device_instrumentation_test_run.py View 1 2 2 chunks +28 lines, -3 lines 0 comments Download
M build/android/pylib/remote/device/remote_device_test_run.py View 1 2 3 4 5 6 7 8 9 5 chunks +11 lines, -3 lines 0 comments Download
M build/apk_test.gypi View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M build/config/android/rules.gni View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +1 line, -0 lines 0 comments Download
M chrome/android/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/android/shell/javatests/AndroidManifest.xml View 1 2 3 4 5 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +2 lines, -0 lines 0 comments Download
M content/content_tests.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +2 lines, -0 lines 0 comments Download
M content/shell/android/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +2 lines, -0 lines 0 comments Download
M content/shell/android/javatests/AndroidManifest.xml View 1 2 3 4 5 1 chunk +3 lines, -1 line 0 comments Download
A testing/android/appurify_support.gyp View 1 2 3 1 chunk +22 lines, -0 lines 0 comments Download
A testing/android/appurify_support/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 1 chunk +15 lines, -0 lines 0 comments Download
A testing/android/appurify_support/java/src/org/chromium/test/support/ResultsBundleGenerator.java View 1 2 3 1 chunk +30 lines, -0 lines 0 comments Download
A testing/android/appurify_support/java/src/org/chromium/test/support/RobotiumBundleGenerator.java View 1 2 3 1 chunk +56 lines, -0 lines 0 comments Download
A testing/android/broker/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 1 chunk +13 lines, -0 lines 0 comments Download
A testing/android/broker/java/src/org/chromium/test/broker/OnDeviceInstrumentationBroker.java View 1 2 3 4 5 1 chunk +64 lines, -0 lines 0 comments Download
A testing/android/driver/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 1 chunk +21 lines, -0 lines 0 comments Download
A testing/android/driver/java/AndroidManifest.xml View 1 2 3 4 5 6 1 chunk +23 lines, -0 lines 0 comments Download
A testing/android/driver/java/src/org/chromium/test/driver/OnDeviceInstrumentationDriver.java View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +271 lines, -0 lines 0 comments Download
M testing/android/native_test/java/src/org/chromium/native_test/ChromeNativeTestInstrumentationTestRunner.java View 1 2 3 4 5 6 7 8 9 6 chunks +11 lines, -56 lines 0 comments Download
A testing/android/on_device_instrumentation.gyp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +79 lines, -0 lines 0 comments Download
A testing/android/reporter/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 1 chunk +19 lines, -0 lines 0 comments Download
A testing/android/reporter/java/src/org/chromium/test/reporter/TestStatusListener.java View 1 2 3 4 5 6 7 8 1 chunk +78 lines, -0 lines 0 comments Download
A testing/android/reporter/java/src/org/chromium/test/reporter/TestStatusReceiver.java View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +128 lines, -0 lines 0 comments Download
A testing/android/reporter/java/src/org/chromium/test/reporter/TestStatusReporter.java View 1 2 3 4 5 6 7 8 1 chunk +83 lines, -0 lines 0 comments Download

Messages

Total messages: 40 (6 generated)
jbudorick
Context: this lets us run instrumentation tests independently in a single call to |am instrument|, ...
5 years, 9 months ago (2015-03-26 03:33:12 UTC) #2
jbudorick
+klundberg for build/android/ I'll add OWNERS for the small changes in the other directories later.
5 years, 9 months ago (2015-03-26 03:34:34 UTC) #4
klundberg
build/android/ lgtm I looked at the other changes but prefer to let Ted give his ...
5 years, 9 months ago (2015-03-27 16:13:30 UTC) #5
Ted C
A couple high level questions, 1.) What happens if Outstrumentation is killed during the run ...
5 years, 8 months ago (2015-04-06 17:43:55 UTC) #7
jbudorick
re (1): turning on that flag had no effect. I'm going to keep experimenting because ...
5 years, 8 months ago (2015-04-07 00:54:39 UTC) #8
jbudorick
https://codereview.chromium.org/1034053002/diff/40001/testing/android/java/src/org/chromium/test/driver/OnDeviceInstrumentationDriver.java File testing/android/java/src/org/chromium/test/driver/OnDeviceInstrumentationDriver.java (right): https://codereview.chromium.org/1034053002/diff/40001/testing/android/java/src/org/chromium/test/driver/OnDeviceInstrumentationDriver.java#newcode42 testing/android/java/src/org/chromium/test/driver/OnDeviceInstrumentationDriver.java:42: public class OnDeviceInstrumentationDriver extends Instrumentation { Renamed: Outstrumentation -> ...
5 years, 8 months ago (2015-04-07 15:09:22 UTC) #9
Yaron
Is it possible somewhere to describe why this is necessary? I get that we have ...
5 years, 8 months ago (2015-04-07 15:39:05 UTC) #10
jbudorick
I'll go into more detail in the one-pager, but this is necessary because of our ...
5 years, 8 months ago (2015-04-07 19:24:45 UTC) #11
Yaron
On 2015/04/07 19:24:45, jbudorick wrote: > I'll go into more detail in the one-pager, but ...
5 years, 8 months ago (2015-04-07 20:08:43 UTC) #12
Yaron
https://codereview.chromium.org/1034053002/diff/40001/testing/android/java/src/org/chromium/test/passenger/OnDeviceInstrumentationPassenger.java File testing/android/java/src/org/chromium/test/passenger/OnDeviceInstrumentationPassenger.java (right): https://codereview.chromium.org/1034053002/diff/40001/testing/android/java/src/org/chromium/test/passenger/OnDeviceInstrumentationPassenger.java#newcode14 testing/android/java/src/org/chromium/test/passenger/OnDeviceInstrumentationPassenger.java:14: * An Activity target for OnDeviceInstrumentationPassenger that starts the ...
5 years, 8 months ago (2015-04-07 20:12:29 UTC) #13
Yaron
On 2015/04/07 20:12:29, Yaron wrote: > https://codereview.chromium.org/1034053002/diff/40001/testing/android/java/src/org/chromium/test/passenger/OnDeviceInstrumentationPassenger.java > File > testing/android/java/src/org/chromium/test/passenger/OnDeviceInstrumentationPassenger.java > (right): > > ...
5 years, 8 months ago (2015-04-07 20:12:58 UTC) #14
jbudorick
On 2015/04/07 20:08:43, Yaron wrote: > On 2015/04/07 19:24:45, jbudorick wrote: > > I'll go ...
5 years, 8 months ago (2015-04-08 15:58:22 UTC) #15
jbudorick
rebased. working on the one-pager.
5 years, 8 months ago (2015-04-10 17:10:56 UTC) #16
jbudorick
Passenger -> Broker draft one-pager (well, 1.5 pager) here: https://docs.google.com/a/chromium.org/document/d/1xQZvPBvzPs-MLACbNr2jdrANKnemq5qslO3ZSwy4XDM/edit?usp=sharing (currently requires @chromium.org for viewing ...
5 years, 8 months ago (2015-04-17 23:09:30 UTC) #17
Yaron
https://codereview.chromium.org/1034053002/diff/100001/build/java.gypi File build/java.gypi (right): https://codereview.chromium.org/1034053002/diff/100001/build/java.gypi#newcode104 build/java.gypi:104: 'java_in_dir_suffix%': '/src', Seems unnecessary - please revert this file. ...
5 years, 8 months ago (2015-04-18 00:22:58 UTC) #18
jbudorick
I'll be updating the doc to reflect the change to BroadcastReceiver. https://codereview.chromium.org/1034053002/diff/100001/build/java.gypi File build/java.gypi (right): ...
5 years, 8 months ago (2015-04-20 19:21:38 UTC) #19
Yaron
https://codereview.chromium.org/1034053002/diff/120001/testing/android/driver/java/src/org/chromium/test/driver/OnDeviceInstrumentationDriver.java File testing/android/driver/java/src/org/chromium/test/driver/OnDeviceInstrumentationDriver.java (right): https://codereview.chromium.org/1034053002/diff/120001/testing/android/driver/java/src/org/chromium/test/driver/OnDeviceInstrumentationDriver.java#newcode219 testing/android/driver/java/src/org/chromium/test/driver/OnDeviceInstrumentationDriver.java:219: finishedLock.wait(); Does this timeout somewhere if the app crashes? ...
5 years, 8 months ago (2015-04-20 20:59:54 UTC) #20
jbudorick
rebased, added heartbeats to detect crashed tests, updated doc https://codereview.chromium.org/1034053002/diff/120001/testing/android/driver/java/src/org/chromium/test/driver/OnDeviceInstrumentationDriver.java File testing/android/driver/java/src/org/chromium/test/driver/OnDeviceInstrumentationDriver.java (right): https://codereview.chromium.org/1034053002/diff/120001/testing/android/driver/java/src/org/chromium/test/driver/OnDeviceInstrumentationDriver.java#newcode219 testing/android/driver/java/src/org/chromium/test/driver/OnDeviceInstrumentationDriver.java:219: ...
5 years, 8 months ago (2015-04-21 17:28:20 UTC) #21
Yaron
lgtm https://codereview.chromium.org/1034053002/diff/140001/testing/android/reporter/java/src/org/chromium/test/reporter/TestStatusListener.java File testing/android/reporter/java/src/org/chromium/test/reporter/TestStatusListener.java (right): https://codereview.chromium.org/1034053002/diff/140001/testing/android/reporter/java/src/org/chromium/test/reporter/TestStatusListener.java#newcode75 testing/android/reporter/java/src/org/chromium/test/reporter/TestStatusListener.java:75: } mReporter.stopHeartbeat() ?
5 years, 8 months ago (2015-04-21 21:18:23 UTC) #22
jbudorick
https://codereview.chromium.org/1034053002/diff/140001/testing/android/reporter/java/src/org/chromium/test/reporter/TestStatusListener.java File testing/android/reporter/java/src/org/chromium/test/reporter/TestStatusListener.java (right): https://codereview.chromium.org/1034053002/diff/140001/testing/android/reporter/java/src/org/chromium/test/reporter/TestStatusListener.java#newcode75 testing/android/reporter/java/src/org/chromium/test/reporter/TestStatusListener.java:75: } On 2015/04/21 21:18:23, Yaron wrote: > mReporter.stopHeartbeat() ? ...
5 years, 8 months ago (2015-04-22 00:09:31 UTC) #23
jbudorick
adding owners: +torne for android_webview/ +thestig for base/base.gyp +cjhopman for build/apk_test.gypi
5 years, 8 months ago (2015-04-22 01:01:17 UTC) #25
Lei Zhang
What about GN?
5 years, 8 months ago (2015-04-22 01:07:16 UTC) #26
Torne
android_webview LGTM
5 years, 8 months ago (2015-04-22 09:40:23 UTC) #27
jbudorick
On 2015/04/22 01:07:16, Lei Zhang wrote: > What about GN? Added.
5 years, 8 months ago (2015-04-22 16:06:21 UTC) #28
Lei Zhang
https://codereview.chromium.org/1034053002/diff/220001/chrome/chrome_tests.gypi File chrome/chrome_tests.gypi (right): https://codereview.chromium.org/1034053002/diff/220001/chrome/chrome_tests.gypi#newcode2929 chrome/chrome_tests.gypi:2929: '../testing/android/on_device_instrumentation.gyp:broker_java', Why does chrome/android/BUILD.gn depend on //testing/android/driver:driver_apk vs broker_java ...
5 years, 8 months ago (2015-04-22 17:25:01 UTC) #29
cjhopman
https://codereview.chromium.org/1034053002/diff/220001/testing/android/driver/java/src/org/chromium/test/driver/OnDeviceInstrumentationDriver.java File testing/android/driver/java/src/org/chromium/test/driver/OnDeviceInstrumentationDriver.java (right): https://codereview.chromium.org/1034053002/diff/220001/testing/android/driver/java/src/org/chromium/test/driver/OnDeviceInstrumentationDriver.java#newcode210 testing/android/driver/java/src/org/chromium/test/driver/OnDeviceInstrumentationDriver.java:210: getContext().registerReceiver(r, TestStatusReceiver.INTENT_FILTER); It's odd to me that this needs ...
5 years, 8 months ago (2015-04-22 18:54:01 UTC) #30
jbudorick
https://codereview.chromium.org/1034053002/diff/220001/chrome/chrome_tests.gypi File chrome/chrome_tests.gypi (right): https://codereview.chromium.org/1034053002/diff/220001/chrome/chrome_tests.gypi#newcode2929 chrome/chrome_tests.gypi:2929: '../testing/android/on_device_instrumentation.gyp:broker_java', On 2015/04/22 17:25:01, Lei Zhang wrote: > Why ...
5 years, 8 months ago (2015-04-22 22:15:35 UTC) #31
Lei Zhang
base/ and chrome/ gyp/gn files lgtm
5 years, 8 months ago (2015-04-22 23:11:16 UTC) #32
cjhopman
lgtm https://codereview.chromium.org/1034053002/diff/260001/testing/android/on_device_instrumentation.gyp File testing/android/on_device_instrumentation.gyp (right): https://codereview.chromium.org/1034053002/diff/260001/testing/android/on_device_instrumentation.gyp#newcode52 testing/android/on_device_instrumentation.gyp:52: 'target_name': 'require_driver_apk', This could probably use a short ...
5 years, 8 months ago (2015-04-24 01:31:54 UTC) #33
jbudorick
https://codereview.chromium.org/1034053002/diff/260001/testing/android/on_device_instrumentation.gyp File testing/android/on_device_instrumentation.gyp (right): https://codereview.chromium.org/1034053002/diff/260001/testing/android/on_device_instrumentation.gyp#newcode52 testing/android/on_device_instrumentation.gyp:52: 'target_name': 'require_driver_apk', On 2015/04/24 01:31:54, cjhopman wrote: > This ...
5 years, 8 months ago (2015-04-24 19:58:47 UTC) #34
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1034053002/280001
5 years, 8 months ago (2015-04-24 19:59:21 UTC) #37
commit-bot: I haz the power
Committed patchset #15 (id:280001)
5 years, 8 months ago (2015-04-24 22:15:39 UTC) #38
commit-bot: I haz the power
Patchset 15 (id:??) landed as https://crrev.com/79d22ed2b74d0ff1082f6febfd3fd93c0574d130 Cr-Commit-Position: refs/heads/master@{#326900}
5 years, 8 months ago (2015-04-24 22:17:00 UTC) #39
Justin Donnelly
5 years, 8 months ago (2015-04-24 22:50:56 UTC) #40
Message was sent while issue was closed.
A revert of this CL (patchset #15 id:280001) has been created in
https://codereview.chromium.org/1094903008/ by jdonnelly@chromium.org.

The reason for reverting is: Broke the "Android" bot:

http://build.chromium.org/p/chromium/builders/Android/builds/38661.

Powered by Google App Engine
This is Rietveld 408576698