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

Issue 1851143002: Find annotated tests by exposing API in instrumentation_test_instance (Closed)

Created:
4 years, 8 months ago by Yoland Yan(Google)
Modified:
4 years, 5 months ago
CC:
chromium-reviews, jbudorick+watch_chromium.org, mikecase+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Find annotated tests by exposing API in instrumentation_test_instance BUG=601909 Committed: https://crrev.com/97dc1912066a4312ffac05dbad24880897be80e9 Cr-Commit-Position: refs/heads/master@{#402699}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Add find_disabled_tests.py #

Total comments: 2

Patch Set 3 : Reorg function, add logging, docstring, and other minor stuff #

Patch Set 4 : Reorg function, add logging, docstring, and other minor stuff #

Patch Set 5 : Minor change #

Total comments: 60

Patch Set 6 : #

Total comments: 18

Patch Set 7 : #

Patch Set 8 : #

Total comments: 57

Patch Set 9 : #

Patch Set 10 : #

Total comments: 10

Patch Set 11 : Rebase #

Patch Set 12 : Change script name #

Patch Set 13 : Change after mikecase's comments #

Total comments: 24

Patch Set 14 : Change after John's comments #

Total comments: 14

Patch Set 15 : Change after John's comment #

Patch Set 16 : Changes to accommodate the recipe change in recipe #

Patch Set 17 : Nit #

Patch Set 18 : Changes after recipe side change #

Total comments: 6

Patch Set 19 : Change nits #

Patch Set 20 : Rebase #

Patch Set 21 : Changes on instrumentation_test_instance_test.py #

Patch Set 22 : Changes on instrumentation_test_instance_test.py #

Total comments: 5

Patch Set 23 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+375 lines, -166 lines) Patch
M build/android/pylib/instrumentation/instrumentation_test_instance.py View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 5 chunks +157 lines, -137 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 14 15 16 17 18 19 20 21 22 16 chunks +37 lines, -29 lines 0 comments Download
A tools/android/find_annotated_tests.py View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +181 lines, -0 lines 0 comments Download

Messages

Total messages: 78 (26 generated)
Yoland Yan(Google)
Basically moved some private proguard related methods to functions for external usage. I wonder why ...
4 years, 8 months ago (2016-04-01 19:26:05 UTC) #2
jbudorick
https://codereview.chromium.org/1851143002/diff/1/build/android/pylib/instrumentation/instrumentation_test_instance.py File build/android/pylib/instrumentation/instrumentation_test_instance.py (right): https://codereview.chromium.org/1851143002/diff/1/build/android/pylib/instrumentation/instrumentation_test_instance.py#newcode190 build/android/pylib/instrumentation/instrumentation_test_instance.py:190: def GetTestsFromPickle(pickle_path, jar_path): Can you upload a version of ...
4 years, 8 months ago (2016-04-06 17:28:33 UTC) #4
Yoland Yan(Google)
https://codereview.chromium.org/1851143002/diff/1/build/android/pylib/instrumentation/instrumentation_test_instance.py File build/android/pylib/instrumentation/instrumentation_test_instance.py (right): https://codereview.chromium.org/1851143002/diff/1/build/android/pylib/instrumentation/instrumentation_test_instance.py#newcode190 build/android/pylib/instrumentation/instrumentation_test_instance.py:190: def GetTestsFromPickle(pickle_path, jar_path): On 2016/04/06 17:28:33, jbudorick wrote: > ...
4 years, 8 months ago (2016-04-06 19:30:32 UTC) #5
jbudorick
https://codereview.chromium.org/1851143002/diff/20001/build/android/pylib/instrumentation/instrumentation_test_instance.py File build/android/pylib/instrumentation/instrumentation_test_instance.py (right): https://codereview.chromium.org/1851143002/diff/20001/build/android/pylib/instrumentation/instrumentation_test_instance.py#newcode190 build/android/pylib/instrumentation/instrumentation_test_instance.py:190: def GetTestsFromPickle(pickle_path, jar_path): Thanks for putting up with my ...
4 years, 8 months ago (2016-04-06 20:33:30 UTC) #6
Yoland Yan(Google)
https://codereview.chromium.org/1851143002/diff/20001/build/android/pylib/instrumentation/instrumentation_test_instance.py File build/android/pylib/instrumentation/instrumentation_test_instance.py (right): https://codereview.chromium.org/1851143002/diff/20001/build/android/pylib/instrumentation/instrumentation_test_instance.py#newcode190 build/android/pylib/instrumentation/instrumentation_test_instance.py:190: def GetTestsFromPickle(pickle_path, jar_path): On 2016/04/06 20:33:30, jbudorick wrote: > ...
4 years, 8 months ago (2016-04-06 22:04:19 UTC) #8
Yoland Yan(Google)
4 years, 8 months ago (2016-04-11 23:24:06 UTC) #10
perezju
Lots of comments, sorry for that :-/ https://codereview.chromium.org/1851143002/diff/80001/build/android/pylib/instrumentation/instrumentation_test_instance.py File build/android/pylib/instrumentation/instrumentation_test_instance.py (left): https://codereview.chromium.org/1851143002/diff/80001/build/android/pylib/instrumentation/instrumentation_test_instance.py#oldcode140 build/android/pylib/instrumentation/instrumentation_test_instance.py:140: nit: bring ...
4 years, 8 months ago (2016-04-12 10:29:04 UTC) #11
Yoland Yan(Google)
On 2016/04/12 10:29:04, perezju wrote: > Lots of comments, sorry for that :-/ > > ...
4 years, 8 months ago (2016-04-12 20:08:53 UTC) #12
Yoland Yan(Google)
On 2016/04/12 10:29:04, perezju wrote: > Lots of comments, sorry for that :-/ > > ...
4 years, 8 months ago (2016-04-12 20:08:55 UTC) #13
Yoland Yan(Google)
Will upload the next patch once the discussion is finished in comments https://codereview.chromium.org/1851143002/diff/80001/build/android/pylib/instrumentation/instrumentation_test_instance.py File build/android/pylib/instrumentation/instrumentation_test_instance.py ...
4 years, 8 months ago (2016-04-13 01:03:11 UTC) #14
Yoland Yan(Google)
https://codereview.chromium.org/1851143002/diff/80001/build/android/pylib/instrumentation/instrumentation_test_instance.py File build/android/pylib/instrumentation/instrumentation_test_instance.py (right): https://codereview.chromium.org/1851143002/diff/80001/build/android/pylib/instrumentation/instrumentation_test_instance.py#newcode252 build/android/pylib/instrumentation/instrumentation_test_instance.py:252: a.update(c['annotations']) On 2016/04/12 10:29:02, perezju wrote: > you could ...
4 years, 8 months ago (2016-04-13 02:18:43 UTC) #15
perezju
https://codereview.chromium.org/1851143002/diff/80001/build/android/pylib/instrumentation/instrumentation_test_instance.py File build/android/pylib/instrumentation/instrumentation_test_instance.py (right): https://codereview.chromium.org/1851143002/diff/80001/build/android/pylib/instrumentation/instrumentation_test_instance.py#newcode285 build/android/pylib/instrumentation/instrumentation_test_instance.py:285: return any_annotation_matches(annotations, all_annotations) On 2016/04/13 01:03:11, yolandyan wrote: > ...
4 years, 8 months ago (2016-04-13 09:53:47 UTC) #16
Yoland Yan(Google)
https://codereview.chromium.org/1851143002/diff/80001/build/android/pylib/instrumentation/instrumentation_test_instance.py File build/android/pylib/instrumentation/instrumentation_test_instance.py (right): https://codereview.chromium.org/1851143002/diff/80001/build/android/pylib/instrumentation/instrumentation_test_instance.py#newcode285 build/android/pylib/instrumentation/instrumentation_test_instance.py:285: return any_annotation_matches(annotations, all_annotations) On 2016/04/13 09:53:46, perezju wrote: > ...
4 years, 8 months ago (2016-04-22 17:50:26 UTC) #17
perezju
Looking a lot better. Only a few more comments left. Also, could you run your ...
4 years, 8 months ago (2016-04-25 12:45:08 UTC) #18
Yoland Yan(Google)
I am WFH today and can't scp the json output file from my computer to ...
4 years, 8 months ago (2016-04-26 01:10:08 UTC) #19
Yoland Yan(Google)
I am WFH today and can't scp the json output file from my computer to ...
4 years, 8 months ago (2016-04-26 01:10:12 UTC) #20
Yoland Yan(Google)
On 2016/04/26 01:10:12, yolandyan wrote: > I am WFH today and can't scp the json ...
4 years, 7 months ago (2016-04-27 03:17:27 UTC) #22
Yoland Yan(Google)
On 2016/04/26 01:10:12, yolandyan wrote: > I am WFH today and can't scp the json ...
4 years, 7 months ago (2016-04-27 03:17:30 UTC) #23
perezju
Thanks for the output json. Looking all good! Only a couple issues left. https://codereview.chromium.org/1851143002/diff/140001/tools/android/find_disabled_tests.py File ...
4 years, 7 months ago (2016-04-27 09:29:16 UTC) #24
jbudorick
https://codereview.chromium.org/1851143002/diff/140001/build/android/pylib/instrumentation/instrumentation_test_instance.py File build/android/pylib/instrumentation/instrumentation_test_instance.py (right): https://codereview.chromium.org/1851143002/diff/140001/build/android/pylib/instrumentation/instrumentation_test_instance.py#newcode195 build/android/pylib/instrumentation/instrumentation_test_instance.py:195: def FilterTests(tests, test_filter=None, annotations=None, nit: GetAllTests (and its helpers) ...
4 years, 7 months ago (2016-04-28 14:17:15 UTC) #25
perezju
https://codereview.chromium.org/1851143002/diff/140001/tools/android/find_disabled_tests.py File tools/android/find_disabled_tests.py (right): https://codereview.chromium.org/1851143002/diff/140001/tools/android/find_disabled_tests.py#newcode33 tools/android/find_disabled_tests.py:33: class _JSONKeyName(object): On 2016/04/28 14:17:14, jbudorick wrote: > I ...
4 years, 7 months ago (2016-04-28 14:33:58 UTC) #26
perezju
lgtm modulo what we discussed today on gvc, and also wait for John. will have ...
4 years, 7 months ago (2016-04-28 16:03:36 UTC) #27
Yoland Yan(Google)
https://codereview.chromium.org/1851143002/diff2/140001:180001/tools/android/find_disabled_tests.py https://codereview.chromium.org/1851143002/diff/140001/tools/android/find_disabled_tests.py File tools/android/find_disabled_tests.py (right): https://codereview.chromium.org/1851143002/diff/140001/tools/android/find_disabled_tests.py#newcode1 tools/android/find_disabled_tests.py:1: #!/usr/bin/env python On 2016/04/28 14:17:14, jbudorick wrote: > ...
4 years, 7 months ago (2016-04-29 19:51:44 UTC) #28
Yoland Yan(Google)
friendly ping ;)
4 years, 6 months ago (2016-06-10 20:40:31 UTC) #29
mikecase (-- gone --)
a few comments. https://codereview.chromium.org/1851143002/diff/180001/tools/android/find_disabled_tests.py File tools/android/find_disabled_tests.py (right): https://codereview.chromium.org/1851143002/diff/180001/tools/android/find_disabled_tests.py#newcode1 tools/android/find_disabled_tests.py:1: #!/usr/bin/env python as mentioned, rename script ...
4 years, 6 months ago (2016-06-10 20:59:03 UTC) #30
the real yoland
I believe this CL is ready too ;) https://codereview.chromium.org/1851143002/diff/180001/tools/android/find_disabled_tests.py File tools/android/find_disabled_tests.py (right): https://codereview.chromium.org/1851143002/diff/180001/tools/android/find_disabled_tests.py#newcode1 tools/android/find_disabled_tests.py:1: #!/usr/bin/env ...
4 years, 6 months ago (2016-06-10 22:20:40 UTC) #32
the real yoland
I believe this CL is ready too ;)
4 years, 6 months ago (2016-06-10 22:20:41 UTC) #34
jbudorick
https://codereview.chromium.org/1851143002/diff/240001/build/android/pylib/instrumentation/instrumentation_test_instance.py File build/android/pylib/instrumentation/instrumentation_test_instance.py (right): https://codereview.chromium.org/1851143002/diff/240001/build/android/pylib/instrumentation/instrumentation_test_instance.py#newcode301 build/android/pylib/instrumentation/instrumentation_test_instance.py:301: nit: +1 blank line https://codereview.chromium.org/1851143002/diff/240001/build/android/pylib/instrumentation/instrumentation_test_instance.py#newcode330 build/android/pylib/instrumentation/instrumentation_test_instance.py:330: nit: +1 blank ...
4 years, 6 months ago (2016-06-11 00:24:03 UTC) #35
the real yoland
https://codereview.chromium.org/1851143002/diff/240001/build/android/pylib/instrumentation/instrumentation_test_instance.py File build/android/pylib/instrumentation/instrumentation_test_instance.py (right): https://codereview.chromium.org/1851143002/diff/240001/build/android/pylib/instrumentation/instrumentation_test_instance.py#newcode301 build/android/pylib/instrumentation/instrumentation_test_instance.py:301: On 2016/06/11 at 00:24:02, jbudorick wrote: > nit: +1 ...
4 years, 6 months ago (2016-06-11 01:35:43 UTC) #37
jbudorick
https://codereview.chromium.org/1851143002/diff/260001/tools/android/find_annotated_tests.py File tools/android/find_annotated_tests.py (right): https://codereview.chromium.org/1851143002/diff/260001/tools/android/find_annotated_tests.py#newcode40 tools/android/find_annotated_tests.py:40: # TODO(yolandyan): currently the script only support on bug ...
4 years, 6 months ago (2016-06-13 17:35:15 UTC) #38
the real yoland
https://codereview.chromium.org/1851143002/diff/260001/tools/android/find_annotated_tests.py File tools/android/find_annotated_tests.py (right): https://codereview.chromium.org/1851143002/diff/260001/tools/android/find_annotated_tests.py#newcode40 tools/android/find_annotated_tests.py:40: # TODO(yolandyan): currently the script only support on bug ...
4 years, 6 months ago (2016-06-13 19:41:53 UTC) #39
Yoland Yan(Google)
This script is changed to accommodate recipe changes in https://codereview.chromium.org/2063323002/ This script's both soul and ...
4 years, 6 months ago (2016-06-14 22:23:56 UTC) #40
jbudorick
lgtm w nits https://codereview.chromium.org/1851143002/diff/340001/tools/android/find_annotated_tests.py File tools/android/find_annotated_tests.py (right): https://codereview.chromium.org/1851143002/diff/340001/tools/android/find_annotated_tests.py#newcode39 tools/android/find_annotated_tests.py:39: """Store annotations in the existing annotation_dict ...
4 years, 6 months ago (2016-06-16 21:04:53 UTC) #41
the real yoland
https://codereview.chromium.org/1851143002/diff/340001/tools/android/find_annotated_tests.py File tools/android/find_annotated_tests.py (right): https://codereview.chromium.org/1851143002/diff/340001/tools/android/find_annotated_tests.py#newcode39 tools/android/find_annotated_tests.py:39: """Store annotations in the existing annotation_dict and return bug ...
4 years, 6 months ago (2016-06-16 22:17:55 UTC) #43
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1851143002/360001
4 years, 6 months ago (2016-06-24 05:48:42 UTC) #46
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/206573)
4 years, 6 months ago (2016-06-24 05:57:22 UTC) #48
the real yoland
4 years, 6 months ago (2016-06-24 05:58:41 UTC) #50
Xianzhu
rs lgtm.
4 years, 6 months ago (2016-06-24 19:12:58 UTC) #52
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/1851143002/360001
4 years, 6 months ago (2016-06-24 19:16:55 UTC) #54
commit-bot: I haz the power
Try jobs failed on following builders: ios-simulator on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-simulator/builds/26538) ios-simulator-gn on master.tryserver.chromium.mac (JOB_FAILED, ...
4 years, 6 months ago (2016-06-24 19:20:24 UTC) #56
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/1851143002/360001
4 years, 6 months ago (2016-06-24 20:58:42 UTC) #58
commit-bot: I haz the power
Try jobs failed on following builders: ios-simulator on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-simulator/builds/26617) ios-simulator-gn on master.tryserver.chromium.mac (JOB_FAILED, ...
4 years, 6 months ago (2016-06-24 21:01:06 UTC) #60
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/1851143002/380001
4 years, 6 months ago (2016-06-24 21:04:05 UTC) #62
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: ios-simulator on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-simulator/builds/26623) ios-simulator-gn on ...
4 years, 6 months ago (2016-06-24 21:07:00 UTC) #64
perezju
On 2016/06/24 21:07:00, commit-bot: I haz the power wrote: > Dry run: Try jobs failed ...
4 years, 5 months ago (2016-06-27 08:25:46 UTC) #65
jbudorick
still lgtm w/ nits Sorry about the rebase conflict. I think that was my fault. ...
4 years, 5 months ago (2016-06-28 07:46:42 UTC) #66
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/1851143002/440001
4 years, 5 months ago (2016-06-28 22:47:48 UTC) #68
commit-bot: I haz the power
Dry run: 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/208993)
4 years, 5 months ago (2016-06-28 23:55:21 UTC) #70
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/1851143002/440001
4 years, 5 months ago (2016-06-29 02:35:19 UTC) #74
commit-bot: I haz the power
Committed patchset #23 (id:440001)
4 years, 5 months ago (2016-06-29 03:30:39 UTC) #75
commit-bot: I haz the power
Patchset 23 (id:??) landed as https://crrev.com/97dc1912066a4312ffac05dbad24880897be80e9 Cr-Commit-Position: refs/heads/master@{#402699}
4 years, 5 months ago (2016-06-29 03:32:32 UTC) #77
the real yoland
4 years, 5 months ago (2016-07-06 23:34:22 UTC) #78
Message was sent while issue was closed.
https://codereview.chromium.org/1851143002/diff/420001/build/android/pylib/in...
File build/android/pylib/instrumentation/instrumentation_test_instance_test.py
(right):

https://codereview.chromium.org/1851143002/diff/420001/build/android/pylib/in...
build/android/pylib/instrumentation/instrumentation_test_instance_test.py:19:
_INSTRUMENTATION_TEST_INSTANCE_PATH = ('pylib.instrumentation.'
On 2016/06/28 at 07:46:42, jbudorick (EMEA til June 30) wrote:
> nit: I think you can fit the string on one line if you drop
pylib.instrumentation down

Done

https://codereview.chromium.org/1851143002/diff/420001/build/android/pylib/in...
build/android/pylib/instrumentation/instrumentation_test_instance_test.py:98:
return_value=raw_tests):
On 2016/06/28 at 07:46:42, jbudorick (EMEA til June 30) wrote:
> nit: indentation is off. either:
>  - drop the first param onto its own line + indent four spaces
>  - indent subsequent lines to the depth of the first param
> 
> (same throughout)

Done

Powered by Google App Engine
This is Rietveld 408576698