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

Issue 2935503002: List Java Instru Test Information From JUnit Runner (Closed)

Created:
3 years, 6 months ago by the real yoland
Modified:
3 years, 4 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

List Java Instru Test Information From JUnit Runner This CL allow test information that was once listed by parsing proguard dump or dexdump to be produced by JUnit runner run all the tests without executing them. The TestListInstrumentationRunListener is registered in the BaseChromiumAndroidJUnitRunner and will write all tests to a json file which then will be pulled to host side by host side runner script BUG=640116 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.android:android_cronet_tester Review-Url: https://codereview.chromium.org/2935503002 Cr-Commit-Position: refs/heads/master@{#489826} Committed: https://chromium.googlesource.com/chromium/src/+/682e23394ce75a8b9d19a5ee351f401706e5cff7

Patch Set 1 #

Total comments: 2

Patch Set 2 : List tests from Android Instrumentation test runner #

Total comments: 10

Patch Set 3 : address comments #

Total comments: 19

Patch Set 4 : address comments #

Total comments: 1

Patch Set 5 : add tests #

Total comments: 18

Patch Set 6 : address comments #

Patch Set 7 : compiling error fix #

Total comments: 20

Patch Set 8 : change proguard flag for test annotations + address comments #

Patch Set 9 : remove android webview manifest xml #

Patch Set 10 : add test exclusion #

Total comments: 4

Patch Set 11 : remove system println #

Total comments: 14

Patch Set 12 : address comments #

Patch Set 13 : minor fix #

Total comments: 7

Patch Set 14 : address issues #

Total comments: 7

Patch Set 15 : address nits #

Patch Set 16 : Rebase #

Patch Set 17 : fix error #

Patch Set 18 : change proguard flags for cronets targets #

Total comments: 12

Patch Set 19 : address nyquist comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+686 lines, -86 lines) Patch
M base/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 3 chunks +3 lines, -0 lines 0 comments Download
M base/test/android/javatests/src/org/chromium/base/test/BaseChromiumAndroidJUnitRunner.java View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 2 chunks +65 lines, -1 line 0 comments Download
A base/test/android/javatests/src/org/chromium/base/test/TestListInstrumentationRunListener.java View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +150 lines, -0 lines 0 comments Download
A base/test/android/junit/src/org/chromium/base/test/TestListInstrumentationRunListenerTest.java View 1 2 3 4 5 6 7 8 9 10 1 chunk +120 lines, -0 lines 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 14 chunks +78 lines, -35 lines 0 comments Download
M build/android/pylib/instrumentation/instrumentation_test_instance_test.py View 1 2 3 4 5 6 7 8 9 10 11 12 13 11 chunks +184 lines, -44 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 15 16 17 18 6 chunks +65 lines, -5 lines 0 comments Download
M components/cronet/android/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +2 lines, -0 lines 0 comments Download
M components/cronet/android/cronet_impl_platform_proguard.cfg View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +9 lines, -1 line 0 comments Download
M components/cronet/android/test/proguard.cfg View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +1 line, -0 lines 0 comments Download
M testing/android/proguard_for_test.flags View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +9 lines, -0 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 126 (86 generated)
the real yoland
please let me know about your concerns for this CL As for example, please checkout ...
3 years, 6 months ago (2017-06-09 21:38:30 UTC) #2
the real yoland
On 2017/06/09 at 21:38:30, the real yoland wrote: > please let me know about your ...
3 years, 6 months ago (2017-06-09 21:39:30 UTC) #3
jbudorick
I think I may have misunderstood your strategy for converting the WebView tests. The level ...
3 years, 6 months ago (2017-06-12 13:21:43 UTC) #4
the real yoland
The process takes about 10 seconds to list all tests for Chrome public test apk.
3 years, 5 months ago (2017-07-11 00:42:48 UTC) #6
mikecase (-- gone --)
https://codereview.chromium.org/2935503002/diff/20001/base/test/android/javatests/src/org/chromium/base/test/BaseChromiumAndroidJUnitRunner.java File base/test/android/javatests/src/org/chromium/base/test/BaseChromiumAndroidJUnitRunner.java (right): https://codereview.chromium.org/2935503002/diff/20001/base/test/android/javatests/src/org/chromium/base/test/BaseChromiumAndroidJUnitRunner.java#newcode57 base/test/android/javatests/src/org/chromium/base/test/BaseChromiumAndroidJUnitRunner.java:57: results = executorBuilder.build().execute(listTestRequest); can you explain how this works? ...
3 years, 5 months ago (2017-07-11 21:14:51 UTC) #7
the real yoland
https://codereview.chromium.org/2935503002/diff/20001/base/test/android/javatests/src/org/chromium/base/test/BaseChromiumAndroidJUnitRunner.java File base/test/android/javatests/src/org/chromium/base/test/BaseChromiumAndroidJUnitRunner.java (right): https://codereview.chromium.org/2935503002/diff/20001/base/test/android/javatests/src/org/chromium/base/test/BaseChromiumAndroidJUnitRunner.java#newcode57 base/test/android/javatests/src/org/chromium/base/test/BaseChromiumAndroidJUnitRunner.java:57: results = executorBuilder.build().execute(listTestRequest); On 2017/07/11 at 21:14:51, mikecase wrote: ...
3 years, 5 months ago (2017-07-14 03:15:46 UTC) #8
the real yoland
John, the approach I told you earlier was to use command line argument `-e runListener ...
3 years, 5 months ago (2017-07-14 03:33:17 UTC) #9
jbudorick
https://codereview.chromium.org/2935503002/diff/40001/base/test/android/javatests/src/org/chromium/base/test/BaseChromiumAndroidJUnitRunner.java File base/test/android/javatests/src/org/chromium/base/test/BaseChromiumAndroidJUnitRunner.java (right): https://codereview.chromium.org/2935503002/diff/40001/base/test/android/javatests/src/org/chromium/base/test/BaseChromiumAndroidJUnitRunner.java#newcode12 base/test/android/javatests/src/org/chromium/base/test/BaseChromiumAndroidJUnitRunner.java:12: import android.support.test.internal.runner.RunnerArgs; Talking about this offline. https://codereview.chromium.org/2935503002/diff/40001/base/test/android/javatests/src/org/chromium/base/test/BaseChromiumAndroidJUnitRunner.java#newcode30 base/test/android/javatests/src/org/chromium/base/test/BaseChromiumAndroidJUnitRunner.java:30: private ...
3 years, 5 months ago (2017-07-14 18:43:56 UTC) #10
the real yoland
https://codereview.chromium.org/2935503002/diff/40001/base/test/android/javatests/src/org/chromium/base/test/BaseChromiumAndroidJUnitRunner.java File base/test/android/javatests/src/org/chromium/base/test/BaseChromiumAndroidJUnitRunner.java (right): https://codereview.chromium.org/2935503002/diff/40001/base/test/android/javatests/src/org/chromium/base/test/BaseChromiumAndroidJUnitRunner.java#newcode30 base/test/android/javatests/src/org/chromium/base/test/BaseChromiumAndroidJUnitRunner.java:30: private static final String LIST_ALL_TESTS_FLAG = "listAllTests"; On 2017/07/14 ...
3 years, 5 months ago (2017-07-18 04:20:22 UTC) #11
the real yoland
Added Java robolectric tests (because of dep on org.json.JSONObject) and python instrumentation test instance tests
3 years, 5 months ago (2017-07-18 23:35:34 UTC) #12
mikecase (-- gone --)
some nits. But this looks pretty good to me. https://codereview.chromium.org/2935503002/diff/60001/base/test/android/javatests/src/org/chromium/base/test/TestListInstrumentationRunListener.java File base/test/android/javatests/src/org/chromium/base/test/TestListInstrumentationRunListener.java (right): https://codereview.chromium.org/2935503002/diff/60001/base/test/android/javatests/src/org/chromium/base/test/TestListInstrumentationRunListener.java#newcode152 base/test/android/javatests/src/org/chromium/base/test/TestListInstrumentationRunListener.java:152: ...
3 years, 5 months ago (2017-07-18 23:59:12 UTC) #17
the real yoland
https://codereview.chromium.org/2935503002/diff/80001/base/test/android/javatests/src/org/chromium/base/test/TestListInstrumentationRunListener.java File base/test/android/javatests/src/org/chromium/base/test/TestListInstrumentationRunListener.java (right): https://codereview.chromium.org/2935503002/diff/80001/base/test/android/javatests/src/org/chromium/base/test/TestListInstrumentationRunListener.java#newcode126 base/test/android/javatests/src/org/chromium/base/test/TestListInstrumentationRunListener.java:126: * or "hashCode". On 2017/07/18 at 23:59:11, mikecase wrote: ...
3 years, 5 months ago (2017-07-19 00:12:49 UTC) #18
mikecase (-- gone --)
final comments. https://codereview.chromium.org/2935503002/diff/140001/base/test/android/javatests/src/org/chromium/base/test/TestListInstrumentationRunListener.java File base/test/android/javatests/src/org/chromium/base/test/TestListInstrumentationRunListener.java (right): https://codereview.chromium.org/2935503002/diff/140001/base/test/android/javatests/src/org/chromium/base/test/TestListInstrumentationRunListener.java#newcode40 base/test/android/javatests/src/org/chromium/base/test/TestListInstrumentationRunListener.java:40: private final Map<Class<?>, List<JSONObject>> mTestClassJSONObjects = new ...
3 years, 5 months ago (2017-07-19 17:11:02 UTC) #27
jbudorick
https://codereview.chromium.org/2935503002/diff/140001/base/BUILD.gn File base/BUILD.gn (right): https://codereview.chromium.org/2935503002/diff/140001/base/BUILD.gn#newcode2698 base/BUILD.gn:2698: "test/android/javatests/src/org/chromium/base/test/TestListInstrumentationRunListener.java", nit: alphabetize https://codereview.chromium.org/2935503002/diff/140001/base/test/android/javatests/src/org/chromium/base/test/TestListInstrumentationRunListener.java File base/test/android/javatests/src/org/chromium/base/test/TestListInstrumentationRunListener.java (right): https://codereview.chromium.org/2935503002/diff/140001/base/test/android/javatests/src/org/chromium/base/test/TestListInstrumentationRunListener.java#newcode74 base/test/android/javatests/src/org/chromium/base/test/TestListInstrumentationRunListener.java:74: ...
3 years, 5 months ago (2017-07-19 20:43:34 UTC) #32
the real yoland
https://codereview.chromium.org/2935503002/diff/140001/base/BUILD.gn File base/BUILD.gn (right): https://codereview.chromium.org/2935503002/diff/140001/base/BUILD.gn#newcode2698 base/BUILD.gn:2698: "test/android/javatests/src/org/chromium/base/test/TestListInstrumentationRunListener.java", On 2017/07/19 at 20:43:34, jbudorick wrote: > nit: ...
3 years, 5 months ago (2017-07-20 02:04:33 UTC) #35
mikecase (-- gone --)
lgtm if you remove changes to android_webview/javatests/AndroidManifest.xml
3 years, 5 months ago (2017-07-20 21:20:28 UTC) #42
the real yoland
On 2017/07/20 at 21:20:28, mikecase wrote: > lgtm if you remove changes to android_webview/javatests/AndroidManifest.xml Done
3 years, 5 months ago (2017-07-21 03:04:19 UTC) #44
the real yoland
Change since last comment: https://codereview.chromium.org/2935503002/diff2/140001:280001/base/BUILD.gn
3 years, 5 months ago (2017-07-21 18:06:33 UTC) #50
mikecase (-- gone --)
https://codereview.chromium.org/2935503002/diff/280001/base/test/android/junit/src/org/chromium/base/test/TestListInstrumentationRunListenerTest.java File base/test/android/junit/src/org/chromium/base/test/TestListInstrumentationRunListenerTest.java (right): https://codereview.chromium.org/2935503002/diff/280001/base/test/android/junit/src/org/chromium/base/test/TestListInstrumentationRunListenerTest.java#newcode107 base/test/android/junit/src/org/chromium/base/test/TestListInstrumentationRunListenerTest.java:107: System.out.println(json.toString()); probably dont want println in test
3 years, 5 months ago (2017-07-21 18:47:14 UTC) #51
the real yoland
https://codereview.chromium.org/2935503002/diff/280001/base/test/android/junit/src/org/chromium/base/test/TestListInstrumentationRunListenerTest.java File base/test/android/junit/src/org/chromium/base/test/TestListInstrumentationRunListenerTest.java (right): https://codereview.chromium.org/2935503002/diff/280001/base/test/android/junit/src/org/chromium/base/test/TestListInstrumentationRunListenerTest.java#newcode107 base/test/android/junit/src/org/chromium/base/test/TestListInstrumentationRunListenerTest.java:107: System.out.println(json.toString()); On 2017/07/21 at 18:47:13, mikecase wrote: > probably ...
3 years, 5 months ago (2017-07-21 18:58:08 UTC) #53
jbudorick
https://codereview.chromium.org/2935503002/diff/280001/base/test/android/javatests/src/org/chromium/base/test/TestListInstrumentationRunListener.java File base/test/android/javatests/src/org/chromium/base/test/TestListInstrumentationRunListener.java (right): https://codereview.chromium.org/2935503002/diff/280001/base/test/android/javatests/src/org/chromium/base/test/TestListInstrumentationRunListener.java#newcode78 base/test/android/javatests/src/org/chromium/base/test/TestListInstrumentationRunListener.java:78: throw e; nit: Do we need to catch this ...
3 years, 5 months ago (2017-07-21 19:35:09 UTC) #55
the real yoland
https://codereview.chromium.org/2935503002/diff/300001/build/android/pylib/instrumentation/instrumentation_test_instance.py File build/android/pylib/instrumentation/instrumentation_test_instance.py (right): https://codereview.chromium.org/2935503002/diff/300001/build/android/pylib/instrumentation/instrumentation_test_instance.py#newcode258 build/android/pylib/instrumentation/instrumentation_test_instance.py:258: def _GetAllTestsFromRunnerPickle(test_apk): On 2017/07/21 at 19:35:08, jbudorick wrote: > ...
3 years, 5 months ago (2017-07-21 22:24:09 UTC) #58
jbudorick
https://codereview.chromium.org/2935503002/diff/340001/build/android/pylib/instrumentation/instrumentation_test_instance.py File build/android/pylib/instrumentation/instrumentation_test_instance.py (right): https://codereview.chromium.org/2935503002/diff/340001/build/android/pylib/instrumentation/instrumentation_test_instance.py#newcode812 build/android/pylib/instrumentation/instrumentation_test_instance.py:812: def GetTests(self, raw_tests=None): This is a bit odd -- ...
3 years, 5 months ago (2017-07-24 04:01:06 UTC) #67
the real yoland
https://codereview.chromium.org/2935503002/diff/340001/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/2935503002/diff/340001/build/android/pylib/local/device/local_device_instrumentation_test_run.py#newcode574 build/android/pylib/local/device/local_device_instrumentation_test_run.py:574: device = self._env.devices[0] On 2017/07/24 at 04:01:06, jbudorick wrote: ...
3 years, 5 months ago (2017-07-24 20:18:50 UTC) #69
the real yoland
https://codereview.chromium.org/2935503002/diff/360001/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/2935503002/diff/360001/build/android/pylib/local/device/local_device_instrumentation_test_run.py#newcode608 build/android/pylib/local/device/local_device_instrumentation_test_run.py:608: raw_tests = [tl for tl in raw_test_lists if tl][0] ...
3 years, 5 months ago (2017-07-24 21:08:34 UTC) #71
jbudorick
lgtm w/ nits https://codereview.chromium.org/2935503002/diff/360001/build/android/pylib/instrumentation/instrumentation_test_instance.py File build/android/pylib/instrumentation/instrumentation_test_instance.py (right): https://codereview.chromium.org/2935503002/diff/360001/build/android/pylib/instrumentation/instrumentation_test_instance.py#newcode833 build/android/pylib/instrumentation/instrumentation_test_instance.py:833: super nit: -1 blank line https://codereview.chromium.org/2935503002/diff/360001/build/android/pylib/local/device/local_device_instrumentation_test_run.py ...
3 years, 5 months ago (2017-07-24 22:24:38 UTC) #74
the real yoland
https://codereview.chromium.org/2935503002/diff/360001/build/android/pylib/instrumentation/instrumentation_test_instance.py File build/android/pylib/instrumentation/instrumentation_test_instance.py (right): https://codereview.chromium.org/2935503002/diff/360001/build/android/pylib/instrumentation/instrumentation_test_instance.py#newcode833 build/android/pylib/instrumentation/instrumentation_test_instance.py:833: On 2017/07/24 at 22:24:38, jbudorick wrote: > super nit: ...
3 years, 5 months ago (2017-07-24 23:25:42 UTC) #75
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/2935503002/380001
3 years, 5 months ago (2017-07-25 17:51:43 UTC) #82
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/498989)
3 years, 5 months ago (2017-07-25 18:00:35 UTC) #84
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/2935503002/400001
3 years, 5 months ago (2017-07-25 18:04:24 UTC) #88
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/2935503002/420001
3 years, 4 months ago (2017-07-25 23:50:36 UTC) #101
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/499457)
3 years, 4 months ago (2017-07-25 23:59:00 UTC) #103
the real yoland
add +nyquist for OWNER stamp on base/ files
3 years, 4 months ago (2017-07-26 01:23:43 UTC) #105
the real yoland
add +xunjieli for cronet OWNER stamp
3 years, 4 months ago (2017-07-26 03:46:27 UTC) #110
xunjieli
lgtm
3 years, 4 months ago (2017-07-26 12:46:27 UTC) #113
nyquist
lgtm % comments https://codereview.chromium.org/2935503002/diff/440001/base/test/android/javatests/src/org/chromium/base/test/BaseChromiumAndroidJUnitRunner.java File base/test/android/javatests/src/org/chromium/base/test/BaseChromiumAndroidJUnitRunner.java (right): https://codereview.chromium.org/2935503002/diff/440001/base/test/android/javatests/src/org/chromium/base/test/BaseChromiumAndroidJUnitRunner.java#newcode29 base/test/android/javatests/src/org/chromium/base/test/BaseChromiumAndroidJUnitRunner.java:29: private Bundle mArguments; non-static member should ...
3 years, 4 months ago (2017-07-26 17:25:08 UTC) #114
the real yoland
https://codereview.chromium.org/2935503002/diff/440001/base/test/android/javatests/src/org/chromium/base/test/BaseChromiumAndroidJUnitRunner.java File base/test/android/javatests/src/org/chromium/base/test/BaseChromiumAndroidJUnitRunner.java (right): https://codereview.chromium.org/2935503002/diff/440001/base/test/android/javatests/src/org/chromium/base/test/BaseChromiumAndroidJUnitRunner.java#newcode29 base/test/android/javatests/src/org/chromium/base/test/BaseChromiumAndroidJUnitRunner.java:29: private Bundle mArguments; On 2017/07/26 at 17:25:07, nyquist wrote: ...
3 years, 4 months ago (2017-07-26 18:02:34 UTC) #117
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/2935503002/460001
3 years, 4 months ago (2017-07-27 00:26:29 UTC) #122
commit-bot: I haz the power
Committed patchset #19 (id:460001) as https://chromium.googlesource.com/chromium/src/+/682e23394ce75a8b9d19a5ee351f401706e5cff7
3 years, 4 months ago (2017-07-27 01:17:08 UTC) #125
awdf
3 years, 4 months ago (2017-07-27 11:20:28 UTC) #126
Message was sent while issue was closed.
A revert of this CL (patchset #19 id:460001) has been created in
https://codereview.chromium.org/2991833003/ by awdf@chromium.org.

The reason for reverting is: Reverting as the likely cause of many webview
layout test runner failures - see crbug.com/749468.

Powered by Google App Engine
This is Rietveld 408576698