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

Issue 1165523002: [Android] Refactor browser test execution. (Closed)

Created:
5 years, 6 months ago by jbudorick
Modified:
5 years, 6 months ago
CC:
chromium-reviews, darin-cc_chromium.org, jam, jbudorick+watch_chromium.org, jochen+watch_chromium.org, klundberg+watch_chromium.org, mkwst+moarreviews-shell_chromium.org, mlamouri+watch-content_chromium.org, yfriedman+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] Refactor browser test execution. This change allows us to run multiple browser tests within a single invocation of an app. It does so by moving the test activity into its own process, running each test individually within that activity, and killing the process between each test. BUG=472360 Committed: https://crrev.com/b049103fa4848e304102a24e78c6ba994130a535 Cr-Commit-Position: refs/heads/master@{#334149}

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : temporary: hard-code isolate files #

Patch Set 4 : #

Patch Set 5 : pre-review cleaning #

Patch Set 6 : more pre-review cleaning #

Patch Set 7 : #

Total comments: 6

Patch Set 8 : ted's comments #

Patch Set 9 : per-shard timeouts #

Patch Set 10 : synchronous process kill #

Total comments: 4

Patch Set 11 : cjhopman comments #

Total comments: 1

Patch Set 12 : rebase #

Patch Set 13 : rebase #

Patch Set 14 : Add content/shell/android/browsertests/ to components/test/DEPS #

Unified diffs Side-by-side diffs Delta from patch set Stats (+594 lines, -193 lines) Patch
M build/android/pylib/gtest/gtest_test_instance.py View 1 2 3 4 5 6 7 8 9 10 11 7 chunks +68 lines, -0 lines 0 comments Download
M build/android/pylib/gtest/local_device_gtest_run.py View 1 2 3 4 5 6 7 8 9 10 11 8 chunks +37 lines, -36 lines 0 comments Download
M build/android/pylib/gtest/setup.py View 1 2 3 4 1 chunk +2 lines, -21 lines 0 comments Download
M build/android/test_runner.py View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +4 lines, -0 lines 0 comments Download
M build/apk_test.gypi View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M build/config/android/internal_rules.gni View 1 2 3 4 5 6 7 8 1 chunk +8 lines, -0 lines 0 comments Download
M build/config/android/rules.gni View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -0 lines 0 comments Download
M components/components_tests.gyp View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -0 lines 0 comments Download
M components/test/DEPS View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +1 line, -0 lines 0 comments Download
M components/test/android/browsertests_apk/AndroidManifest.xml.jinja2 View 1 chunk +2 lines, -1 line 0 comments Download
M components/test/android/browsertests_apk/src/org/chromium/components_browsertests_apk/ComponentsBrowserTestsActivity.java View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +19 lines, -39 lines 0 comments Download
M components/test/android/browsertests_apk/src/org/chromium/components_browsertests_apk/ComponentsBrowserTestsApplication.java View 1 chunk +1 line, -1 line 0 comments Download
M content/content_tests.gypi View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +16 lines, -0 lines 0 comments Download
A content/shell/android/browsertests/src/org/chromium/content_shell/browsertests/ContentShellBrowserTestActivity.java View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +89 lines, -0 lines 0 comments Download
M content/shell/android/browsertests_apk/AndroidManifest.xml.jinja2 View 1 1 chunk +2 lines, -1 line 0 comments Download
M content/shell/android/browsertests_apk/src/org/chromium/content_browsertests_apk/ContentBrowserTestsActivity.java View 1 2 3 4 5 6 7 8 9 10 2 chunks +19 lines, -35 lines 0 comments Download
M content/shell/android/browsertests_apk/src/org/chromium/content_browsertests_apk/ContentBrowserTestsApplication.java View 1 chunk +1 line, -1 line 0 comments Download
M testing/android/appurify_support/java/src/org/chromium/test/support/RobotiumBundleGenerator.java View 1 2 3 4 5 6 7 3 chunks +9 lines, -4 lines 0 comments Download
M testing/android/native_test.gyp View 1 chunk +1 line, -0 lines 0 comments Download
M testing/android/native_test/java/src/org/chromium/native_test/NativeBrowserTestActivity.java View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +40 lines, -1 line 0 comments Download
M testing/android/native_test/java/src/org/chromium/native_test/NativeTestActivity.java View 1 2 3 4 5 6 7 8 9 10 11 5 chunks +26 lines, -5 lines 0 comments Download
M testing/android/native_test/java/src/org/chromium/native_test/NativeTestInstrumentationTestRunner.java View 1 2 3 4 5 6 7 8 9 10 11 6 chunks +188 lines, -37 lines 0 comments Download
M testing/android/native_test/java/src/org/chromium/native_test/NativeUnitTestActivity.java View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -1 line 0 comments Download
M testing/android/reporter/java/src/org/chromium/test/reporter/TestStatusReceiver.java View 1 2 3 4 5 7 chunks +28 lines, -2 lines 0 comments Download
M testing/android/reporter/java/src/org/chromium/test/reporter/TestStatusReporter.java View 3 chunks +29 lines, -8 lines 0 comments Download

Messages

Total messages: 23 (4 generated)
jbudorick
try job times so far: 4m2s in http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_android_rel_ng/builds/28105 3m33s in http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_android_rel_ng/builds/28698 3m41s in http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_android_rel_ng/builds/28723 The ...
5 years, 6 months ago (2015-06-02 04:08:18 UTC) #2
jbudorick
On 2015/06/02 at 04:08:18, jbudorick wrote: > try job times so far: > 4m2s in ...
5 years, 6 months ago (2015-06-02 04:09:10 UTC) #3
Jaekyun Seok (inactive)
On 2015/06/02 04:09:10, jbudorick wrote: > On 2015/06/02 at 04:08:18, jbudorick wrote: > > try ...
5 years, 6 months ago (2015-06-02 21:50:43 UTC) #4
jbudorick
Ted, Chris, thoughts?
5 years, 6 months ago (2015-06-04 20:24:32 UTC) #5
Ted C
lgtm https://codereview.chromium.org/1165523002/diff/120001/testing/android/native_test/java/src/org/chromium/native_test/NativeBrowserTestActivity.java File testing/android/native_test/java/src/org/chromium/native_test/NativeBrowserTestActivity.java (right): https://codereview.chromium.org/1165523002/diff/120001/testing/android/native_test/java/src/org/chromium/native_test/NativeBrowserTestActivity.java#newcode53 testing/android/native_test/java/src/org/chromium/native_test/NativeBrowserTestActivity.java:53: each line should have a * leading it ...
5 years, 6 months ago (2015-06-05 01:39:37 UTC) #6
jbudorick
Had to make process killing synchronous to keep the instrumentation from trying to launch NativeBrowserTestActivity ...
5 years, 6 months ago (2015-06-08 13:10:25 UTC) #7
jbudorick
cjhopman: ptal at build/
5 years, 6 months ago (2015-06-08 19:03:38 UTC) #8
jbudorick
On 2015/06/08 at 19:03:38, jbudorick wrote: > cjhopman: ptal at build/ ping
5 years, 6 months ago (2015-06-09 21:09:52 UTC) #9
Ted C
On 2015/06/08 13:10:25, jbudorick wrote: > Had to make process killing synchronous to keep the ...
5 years, 6 months ago (2015-06-09 21:15:12 UTC) #10
cjhopman
https://codereview.chromium.org/1165523002/diff/180001/content/shell/android/browsertests_apk/src/org/chromium/content_browsertests_apk/ContentBrowserTestsActivity.java File content/shell/android/browsertests_apk/src/org/chromium/content_browsertests_apk/ContentBrowserTestsActivity.java (right): https://codereview.chromium.org/1165523002/diff/180001/content/shell/android/browsertests_apk/src/org/chromium/content_browsertests_apk/ContentBrowserTestsActivity.java#newcode43 content/shell/android/browsertests_apk/src/org/chromium/content_browsertests_apk/ContentBrowserTestsActivity.java:43: protected void initializeBrowserProcess() { This function seems really, really ...
5 years, 6 months ago (2015-06-09 22:17:25 UTC) #11
jbudorick
https://codereview.chromium.org/1165523002/diff/180001/content/shell/android/browsertests_apk/src/org/chromium/content_browsertests_apk/ContentBrowserTestsActivity.java File content/shell/android/browsertests_apk/src/org/chromium/content_browsertests_apk/ContentBrowserTestsActivity.java (right): https://codereview.chromium.org/1165523002/diff/180001/content/shell/android/browsertests_apk/src/org/chromium/content_browsertests_apk/ContentBrowserTestsActivity.java#newcode43 content/shell/android/browsertests_apk/src/org/chromium/content_browsertests_apk/ContentBrowserTestsActivity.java:43: protected void initializeBrowserProcess() { On 2015/06/09 at 22:17:24, cjhopman ...
5 years, 6 months ago (2015-06-10 02:41:54 UTC) #12
jbudorick
cjhopman: ping
5 years, 6 months ago (2015-06-11 14:41:48 UTC) #13
cjhopman
lgtm
5 years, 6 months ago (2015-06-11 20:25:37 UTC) #14
jbudorick
+jochen for components/test/DEPS OWNERS
5 years, 6 months ago (2015-06-12 00:05:40 UTC) #16
jochen (gone - plz use gerrit)
lgtm
5 years, 6 months ago (2015-06-12 08:36:52 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1165523002/260001
5 years, 6 months ago (2015-06-12 13:01:53 UTC) #20
commit-bot: I haz the power
Committed patchset #14 (id:260001)
5 years, 6 months ago (2015-06-12 13:06:25 UTC) #21
commit-bot: I haz the power
Patchset 14 (id:??) landed as https://crrev.com/b049103fa4848e304102a24e78c6ba994130a535 Cr-Commit-Position: refs/heads/master@{#334149}
5 years, 6 months ago (2015-06-12 13:07:27 UTC) #22
jbudorick
5 years, 6 months ago (2015-06-12 13:18:27 UTC) #23
Message was sent while issue was closed.
A revert of this CL (patchset #14 id:260001) has been created in
https://codereview.chromium.org/1186513002/ by jbudorick@chromium.org.

The reason for reverting is: broke cronet_sample_test_apk compilation :(.

Powered by Google App Engine
This is Rietveld 408576698