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

Issue 1674353004: [Android] Fix generated scripts for junit tests. (Closed)

Created:
4 years, 10 months ago by mikecase (-- gone --)
Modified:
4 years, 10 months ago
CC:
cbentzel+watch_chromium.org, chromium-reviews, darin-cc_chromium.org, jam, jbudorick+watch_chromium.org, mikecase+watch_chromium.org, vmpstr+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] Fix generated scripts for junit tests. Adding scripts to make it easy to run junit test. These are named out/bin/run_<junit_suite_name>. Moving the helper scripts that our test runner uses to run the junit test suites. These scripts are not meant to be run except by the test runner. Moving them into out/bin/helper/<script_names> so people don't accidently try to run them. BUG=511999 Committed: https://crrev.com/713185d2283e9a97e2a95b6c7c2f7eb531ae591c Cr-Commit-Position: refs/heads/master@{#375603}

Patch Set 1 #

Total comments: 13

Patch Set 2 : Addressed most of jbudoricks comments #

Total comments: 2

Patch Set 3 : Removed a single space. #

Total comments: 2

Patch Set 4 : Addressed jbudorick's GN format nit. #

Total comments: 4

Patch Set 5 : Alphabetized the gyp includes everywhere. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+72 lines, -17 lines) Patch
M base/base.gyp View 1 2 3 4 1 chunk +11 lines, -7 lines 0 comments Download
M build/android/pylib/junit/test_runner.py View 1 chunk +1 line, -1 line 0 comments Download
M build/android/test_runner.gypi View 1 2 chunks +13 lines, -0 lines 0 comments Download
M build/config/android/internal_rules.gni View 1 2 3 5 chunks +18 lines, -2 lines 0 comments Download
M build/config/android/rules.gni View 1 2 3 2 chunks +20 lines, -6 lines 0 comments Download
M build/host_jar.gypi View 1 chunk +1 line, -1 line 0 comments Download
M chrome/chrome_tests.gypi View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M content/content_tests.gypi View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M net/net.gyp View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M ui/android/ui_android.gyp View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 37 (10 generated)
mikecase (-- gone --)
Please take a look.
4 years, 10 months ago (2016-02-08 23:57:26 UTC) #2
jbudorick
https://codereview.chromium.org/1674353004/diff/1/base/base.gyp File base/base.gyp (right): https://codereview.chromium.org/1674353004/diff/1/base/base.gyp#newcode1516 base/base.gyp:1516: }, nit: indentation https://codereview.chromium.org/1674353004/diff/1/build/android/pylib/junit/test_runner.py File build/android/pylib/junit/test_runner.py (right): https://codereview.chromium.org/1674353004/diff/1/build/android/pylib/junit/test_runner.py#newcode30 build/android/pylib/junit/test_runner.py:30: ...
4 years, 10 months ago (2016-02-09 00:06:47 UTC) #3
mikecase (-- gone --)
https://codereview.chromium.org/1674353004/diff/1/base/base.gyp File base/base.gyp (right): https://codereview.chromium.org/1674353004/diff/1/base/base.gyp#newcode1516 base/base.gyp:1516: }, On 2016/02/09 at 00:06:47, jbudorick wrote: > nit: ...
4 years, 10 months ago (2016-02-09 00:54:34 UTC) #4
jbudorick
https://codereview.chromium.org/1674353004/diff/1/base/base.gyp File base/base.gyp (right): https://codereview.chromium.org/1674353004/diff/1/base/base.gyp#newcode1516 base/base.gyp:1516: }, On 2016/02/09 00:54:34, mikecase wrote: > On 2016/02/09 ...
4 years, 10 months ago (2016-02-09 01:22:22 UTC) #5
mikecase (-- gone --)
https://codereview.chromium.org/1674353004/diff/1/base/base.gyp File base/base.gyp (right): https://codereview.chromium.org/1674353004/diff/1/base/base.gyp#newcode1516 base/base.gyp:1516: }, On 2016/02/09 at 01:22:21, jbudorick wrote: > On ...
4 years, 10 months ago (2016-02-09 22:18:34 UTC) #6
mikecase (-- gone --)
ping. I'd like to commit this. Did you have any changes in mind or does ...
4 years, 10 months ago (2016-02-11 00:20:35 UTC) #7
jbudorick
lgtm w/ nit https://codereview.chromium.org/1674353004/diff/40001/build/config/android/internal_rules.gni File build/config/android/internal_rules.gni (right): https://codereview.chromium.org/1674353004/diff/40001/build/config/android/internal_rules.gni#newcode1699 build/config/android/internal_rules.gni:1699: if (defined(invoker.wrapper_script_name)) { I think the ...
4 years, 10 months ago (2016-02-11 21:45:34 UTC) #8
mikecase (-- gone --)
https://codereview.chromium.org/1674353004/diff/40001/build/config/android/internal_rules.gni File build/config/android/internal_rules.gni (right): https://codereview.chromium.org/1674353004/diff/40001/build/config/android/internal_rules.gni#newcode1699 build/config/android/internal_rules.gni:1699: if (defined(invoker.wrapper_script_name)) { On 2016/02/11 at 21:45:34, jbudorick wrote: ...
4 years, 10 months ago (2016-02-11 22:06:19 UTC) #9
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1674353004/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1674353004/60001
4 years, 10 months ago (2016-02-11 22:09:40 UTC) #11
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 10 months ago (2016-02-11 23:53:31 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1674353004/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1674353004/60001
4 years, 10 months ago (2016-02-12 00:03:52 UTC) #16
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/145418)
4 years, 10 months ago (2016-02-12 00:17:49 UTC) #18
mikecase (-- gone --)
+ newt@chromium.org for review of ui/android/ui_android.gyp + cbentzel@chromium.org for review of net/net.gyp + thestig@chromium.org for ...
4 years, 10 months ago (2016-02-12 20:16:54 UTC) #20
Lei Zhang
lgtm https://codereview.chromium.org/1674353004/diff/60001/base/base.gyp File base/base.gyp (right): https://codereview.chromium.org/1674353004/diff/60001/base/base.gyp#newcode1517 base/base.gyp:1517: '../build/android/test_runner.gypi' ], alphabetical order please.
4 years, 10 months ago (2016-02-12 21:33:16 UTC) #21
Lei Zhang
https://codereview.chromium.org/1674353004/diff/60001/chrome/chrome_tests.gypi File chrome/chrome_tests.gypi (right): https://codereview.chromium.org/1674353004/diff/60001/chrome/chrome_tests.gypi#newcode3120 chrome/chrome_tests.gypi:3120: '../build/android/test_runner.gypi', Ditto elsewhere.
4 years, 10 months ago (2016-02-12 21:33:43 UTC) #22
newt (away)
rubberstamp lgtm for ui/android
4 years, 10 months ago (2016-02-12 22:06:58 UTC) #23
cbentzel
On 2016/02/12 22:06:58, newt wrote: > rubberstamp lgtm for ui/android net/net.gyp LGTM
4 years, 10 months ago (2016-02-13 00:17:38 UTC) #24
mikecase (-- gone --)
https://codereview.chromium.org/1674353004/diff/60001/base/base.gyp File base/base.gyp (right): https://codereview.chromium.org/1674353004/diff/60001/base/base.gyp#newcode1517 base/base.gyp:1517: '../build/android/test_runner.gypi' ], On 2016/02/12 at 21:33:16, Lei Zhang wrote: ...
4 years, 10 months ago (2016-02-13 02:24:51 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1674353004/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1674353004/80001
4 years, 10 months ago (2016-02-16 16:32:51 UTC) #28
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 10 months ago (2016-02-16 17:43:48 UTC) #29
commit-bot: I haz the power
Patchset 5 (id:??) landed as https://crrev.com/713185d2283e9a97e2a95b6c7c2f7eb531ae591c Cr-Commit-Position: refs/heads/master@{#375603}
4 years, 10 months ago (2016-02-16 22:53:26 UTC) #31
agrieve
On 2016/02/16 22:53:26, commit-bot: I haz the power wrote: > Patchset 5 (id:??) landed as ...
4 years, 10 months ago (2016-02-18 03:11:29 UTC) #32
mikecase (-- gone --)
On 2016/02/18 at 03:11:29, agrieve wrote: > On 2016/02/16 22:53:26, commit-bot: I haz the power ...
4 years, 10 months ago (2016-02-18 17:19:13 UTC) #33
mikecase (-- gone --)
4 years, 10 months ago (2016-02-18 17:19:51 UTC) #34
agrieve
On 2016/02/18 17:19:13, mikecase wrote: > On 2016/02/18 at 03:11:29, agrieve wrote: > > On ...
4 years, 10 months ago (2016-02-18 18:03:33 UTC) #35
jbudorick
On 2016/02/18 18:03:33, agrieve wrote: > On 2016/02/18 17:19:13, mikecase wrote: > > On 2016/02/18 ...
4 years, 10 months ago (2016-02-18 18:18:52 UTC) #36
agrieve
4 years, 10 months ago (2016-02-18 19:47:28 UTC) #37
Message was sent while issue was closed.
On 2016/02/18 18:18:52, jbudorick wrote:
> On 2016/02/18 18:03:33, agrieve wrote:
> > On 2016/02/18 17:19:13, mikecase wrote:
> > > On 2016/02/18 at 03:11:29, agrieve wrote:
> > > > On 2016/02/16 22:53:26, commit-bot: I haz the power wrote:
> > > > > Patchset 5 (id:??) landed as
> > > > > https://crrev.com/713185d2283e9a97e2a95b6c7c2f7eb531ae591c
> > > > > Cr-Commit-Position: refs/heads/master@{#375603}
> > > > 
> > > > This change broke enable_incremental_javac=true by moving the generated
> > script
> > > for jmake into helper/jmake
> > > > 
> > > > I can fix up the path to include helper/, but I don't think it actually
> make
> > > sense to put all java_binary() wrappers in bin/helper. It's quite
reasonable
> > to
> > > have a java_binary() that users would want to execute directly.
> > > 
> > > oops. wasn't aware this would impact anything other than tests. So, would
> you
> > > want me to revert this CL, remove the 'helper' dir and just place
everything
> > in
> > > bin/, or other?
> > 
> > I think putting everything right in "bin" is fine. This is a bit of an
> > everyone-has-their-own-preference kind of thing I think.
> 
> this discussion would be better conducted in a crbug, but while I'm here: I
> disagree & think that we should be moving toward having scripts in bin/ itself
> be callable by users & move helper scripts to subdirectories.

I'm fine with that, but we should make a "used_only_by_tests = true" variable in
java_binary() rather than have the default script location for java_binary() be
in helpers.

Powered by Google App Engine
This is Rietveld 408576698