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

Issue 1208483004: Make instrumentation test dependency on a support APK explicit (Closed)

Created:
5 years, 6 months ago by dgn
Modified:
5 years, 5 months ago
Reviewers:
cjhopman, jbudorick
CC:
chromium-reviews, jbudorick+watch_chromium.org, klundberg+watch_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

Make instrumentation test dependency on a support APK explicit Add an argument (support_apk_name) to the GYP and GN instrumentation_test_apk targets to provide a support APK. The argument is optional, but when present, the build will fail if the APK is not installable BUG=501797 Committed: https://crrev.com/0ac9fec88bf9a042410192b304ae1bc252df8aa7 Cr-Commit-Position: refs/heads/master@{#339046}

Patch Set 1 #

Total comments: 3

Patch Set 2 : Use GYP and GN to set whether the support apk is needed #

Total comments: 4

Patch Set 3 : make paths relative to the output directory #

Total comments: 4

Patch Set 4 : fix paths, update commit title #

Patch Set 5 : Fix patch dependency #

Patch Set 6 : Rebase #

Total comments: 2

Patch Set 7 : Moved rebase_path inside the rule and updated doc #

Patch Set 8 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+32 lines, -2 lines) Patch
M build/android/gyp/create_test_runner_script.py View 1 2 3 2 chunks +4 lines, -0 lines 0 comments Download
M build/android/pylib/instrumentation/test_package.py View 1 1 chunk +2 lines, -0 lines 0 comments Download
M build/android/test_runner.gypi View 1 2 3 2 chunks +9 lines, -0 lines 0 comments Download
M build/android/test_runner.py View 1 2 3 4 5 6 7 2 chunks +5 lines, -2 lines 0 comments Download
M build/config/android/internal_rules.gni View 1 2 3 4 5 6 7 1 chunk +6 lines, -0 lines 0 comments Download
M build/config/android/rules.gni View 1 2 3 4 5 6 2 chunks +6 lines, -0 lines 0 comments Download

Messages

Total messages: 24 (5 generated)
dgn
PTAL
5 years, 6 months ago (2015-06-24 13:03:07 UTC) #2
jbudorick
https://codereview.chromium.org/1208483004/diff/1/build/android/pylib/instrumentation/test_package.py File build/android/pylib/instrumentation/test_package.py (right): https://codereview.chromium.org/1208483004/diff/1/build/android/pylib/instrumentation/test_package.py#newcode20 build/android/pylib/instrumentation/test_package.py:20: if not os.path.exists(test_support_apk_path): As written, this requires each test ...
5 years, 6 months ago (2015-06-24 13:05:11 UTC) #3
dgn
https://codereview.chromium.org/1208483004/diff/1/build/android/pylib/instrumentation/test_package.py File build/android/pylib/instrumentation/test_package.py (right): https://codereview.chromium.org/1208483004/diff/1/build/android/pylib/instrumentation/test_package.py#newcode20 build/android/pylib/instrumentation/test_package.py:20: if not os.path.exists(test_support_apk_path): On 2015/06/24 at 13:05:11, jbudorick wrote: ...
5 years, 6 months ago (2015-06-24 14:06:54 UTC) #4
dgn
Ok, it should be good now, PTAL https://codereview.chromium.org/1208483004/diff/1/build/android/pylib/instrumentation/test_package.py File build/android/pylib/instrumentation/test_package.py (right): https://codereview.chromium.org/1208483004/diff/1/build/android/pylib/instrumentation/test_package.py#newcode20 build/android/pylib/instrumentation/test_package.py:20: if not ...
5 years, 6 months ago (2015-06-24 16:03:04 UTC) #5
jbudorick
https://codereview.chromium.org/1208483004/diff/20001/build/android/test_runner.gypi File build/android/test_runner.gypi (right): https://codereview.chromium.org/1208483004/diff/20001/build/android/test_runner.gypi#newcode54 build/android/test_runner.gypi:54: 'test_runner_args': ['--isolate-file-path', '<(isolate_file)'] On 2015/06/24 at 16:03:04, dgn wrote: ...
5 years, 6 months ago (2015-06-24 17:46:39 UTC) #6
dgn
https://codereview.chromium.org/1208483004/diff/20001/build/android/test_runner.py File build/android/test_runner.py (right): https://codereview.chromium.org/1208483004/diff/20001/build/android/test_runner.py#newcode335 build/android/test_runner.py:335: group.add_argument('--support-apk', dest='support_apk', On 2015/06/24 17:46:39, jbudorick wrote: > If ...
5 years, 6 months ago (2015-06-24 21:29:50 UTC) #7
jbudorick
Also - rephrase the patch title. https://codereview.chromium.org/1208483004/diff/2/build/android/test_runner.gypi File build/android/test_runner.gypi (right): https://codereview.chromium.org/1208483004/diff/2/build/android/test_runner.gypi#newcode51 build/android/test_runner.gypi:51: 'apks/<(support_apk_name).apk' You could ...
5 years, 6 months ago (2015-06-25 02:59:59 UTC) #9
cjhopman
https://codereview.chromium.org/1208483004/diff/2/build/config/android/internal_rules.gni File build/config/android/internal_rules.gni (right): https://codereview.chromium.org/1208483004/diff/2/build/config/android/internal_rules.gni#newcode1522 build/config/android/internal_rules.gni:1522: "apks/$_support_apk_name.apk", On 2015/06/25 02:59:59, jbudorick wrote: > On 2015/06/24 ...
5 years, 5 months ago (2015-06-30 23:07:13 UTC) #10
dgn
https://codereview.chromium.org/1208483004/diff/90001/build/config/android/internal_rules.gni File build/config/android/internal_rules.gni (right): https://codereview.chromium.org/1208483004/diff/90001/build/config/android/internal_rules.gni#newcode1552 build/config/android/internal_rules.gni:1552: invoker.support_apk_path, On 2015/06/30 at 23:07:13, cjhopman wrote: > invoker.support_apk_path ...
5 years, 5 months ago (2015-07-01 09:56:28 UTC) #11
dgn
PTAL
5 years, 5 months ago (2015-07-09 17:43:45 UTC) #12
jbudorick
build/android/ lgtm Sorry for the delay.
5 years, 5 months ago (2015-07-14 00:59:22 UTC) #13
dgn
Thanks John! Chris: Could you please have a look?
5 years, 5 months ago (2015-07-15 10:30:10 UTC) #14
cjhopman
lgtm
5 years, 5 months ago (2015-07-15 20:06:32 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1208483004/130001
5 years, 5 months ago (2015-07-16 00:05:45 UTC) #17
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_compile_dbg_32_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_compile_dbg_32_ng/builds/73927)
5 years, 5 months ago (2015-07-16 00:35:37 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1208483004/130001
5 years, 5 months ago (2015-07-16 14:46:36 UTC) #21
commit-bot: I haz the power
Committed patchset #8 (id:130001)
5 years, 5 months ago (2015-07-16 16:25:39 UTC) #22
commit-bot: I haz the power
Patchset 8 (id:??) landed as https://crrev.com/0ac9fec88bf9a042410192b304ae1bc252df8aa7 Cr-Commit-Position: refs/heads/master@{#339046}
5 years, 5 months ago (2015-07-16 16:27:50 UTC) #23
Yusuf
5 years, 5 months ago (2015-07-16 23:32:27 UTC) #24
Message was sent while issue was closed.
A revert of this CL (patchset #8 id:130001) has been created in
https://codereview.chromium.org/1237983004/ by yusufo@chromium.org.

The reason for reverting is: Cast tests failing on ToT after this..

Powered by Google App Engine
This is Rietveld 408576698