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

Issue 2182303002: Merging under test java into instrumentation test java. (Closed)

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

Description

Merging under test java into instrumentation test java. This enables us to run all ProGuard uninhibited by tests, since Proguard will now consider both the tests and the tested code while performing its optimizations. This is opposed to running ProGuard on the tested java, keeping stuff around for the tests, which would then use the tested code as a library. This turns on optimizations and removes test code from the shipped apk, saving us ~550kb in .dex size, and ~70kb memory per process. BUG=620323, 625704, 626710 Committed: https://crrev.com/d50624e2e5a9d9fe13596d83e73385c9c44069e9 Cr-Commit-Position: refs/heads/master@{#410056}

Patch Set 1 #

Patch Set 2 : Rebased #

Patch Set 3 : Merging instrumentation test apks and under test apks into single test apk #

Patch Set 4 : Merging instrumentation test apks and under test apks into single test apk #

Patch Set 5 : Cleaning up for review #

Total comments: 12

Patch Set 6 : Addressing agrieve's comments #

Total comments: 7

Patch Set 7 : updated comment #

Total comments: 2

Patch Set 8 : rebased #

Patch Set 9 : reenabling tests that this fixes #

Unified diffs Side-by-side diffs Delta from patch set Stats (+83 lines, -172 lines) Patch
M BUILD.gn View 1 2 3 4 5 6 7 1 chunk +2 lines, -6 lines 0 comments Download
M base/android/base_proguard_config.flags View 1 2 3 4 5 6 7 1 chunk +3 lines, -2 lines 0 comments Download
M build/android/gyp/util/proguard_util.py View 1 2 3 4 1 chunk +0 lines, -12 lines 0 comments Download
M build/android/gyp/write_build_config.py View 1 2 3 4 5 6 7 2 chunks +22 lines, -3 lines 0 comments Download
M build/config/android/config.gni View 1 2 3 4 5 6 7 2 chunks +0 lines, -12 lines 0 comments Download
M build/config/android/internal_rules.gni View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M build/config/android/rules.gni View 1 2 3 4 5 6 7 1 chunk +9 lines, -0 lines 0 comments Download
M chrome/android/BUILD.gn View 1 2 3 4 5 6 7 8 2 chunks +28 lines, -32 lines 0 comments Download
M chrome/android/chrome_public_apk_tmpl.gni View 1 chunk +0 lines, -3 lines 0 comments Download
M chrome/android/webapk/libs/runtime_library/javatests/src/org/chromium/webapk/lib/runtime_library/WebApkServiceImplTest.java View 1 2 3 4 5 6 7 8 3 chunks +3 lines, -9 lines 0 comments Download
M testing/android/proguard_for_test.flags View 1 2 3 4 5 6 7 1 chunk +15 lines, -92 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 54 (36 generated)
smaier
agrieve@chromium.org: Once you're happy with this, lets get kerz to review it. yfriedman@chromium.org: Look at ...
4 years, 4 months ago (2016-07-27 22:03:52 UTC) #16
agrieve
https://codereview.chromium.org/2182303002/diff/80001/base/android/base_proguard_config.flags File base/android/base_proguard_config.flags (right): https://codereview.chromium.org/2182303002/diff/80001/base/android/base_proguard_config.flags#newcode5 base/android/base_proguard_config.flags:5: -keepattributes *Annotation* From what I can tell here: http://proguard.sourceforge.net/manual/attributes.html ...
4 years, 4 months ago (2016-07-28 01:30:58 UTC) #24
smaier
https://codereview.chromium.org/2182303002/diff/80001/base/android/base_proguard_config.flags File base/android/base_proguard_config.flags (right): https://codereview.chromium.org/2182303002/diff/80001/base/android/base_proguard_config.flags#newcode5 base/android/base_proguard_config.flags:5: -keepattributes *Annotation* On 2016/07/28 01:30:57, agrieve wrote: > From ...
4 years, 4 months ago (2016-07-28 15:27:19 UTC) #25
agrieve
lgtm. +jbudorick for seeing if he's okay with this approach.
4 years, 4 months ago (2016-07-28 16:31:30 UTC) #28
jbudorick
https://codereview.chromium.org/2182303002/diff/100001/build/android/gyp/write_build_config.py File build/android/gyp/write_build_config.py (right): https://codereview.chromium.org/2182303002/diff/100001/build/android/gyp/write_build_config.py#newcode521 build/android/gyp/write_build_config.py:521: # An instrumentation test apk should include the java ...
4 years, 4 months ago (2016-07-28 16:56:00 UTC) #29
smaier
https://codereview.chromium.org/2182303002/diff/100001/build/android/gyp/write_build_config.py File build/android/gyp/write_build_config.py (right): https://codereview.chromium.org/2182303002/diff/100001/build/android/gyp/write_build_config.py#newcode521 build/android/gyp/write_build_config.py:521: # An instrumentation test apk should include the java ...
4 years, 4 months ago (2016-07-28 18:09:51 UTC) #30
jbudorick
https://codereview.chromium.org/2182303002/diff/100001/build/android/gyp/write_build_config.py File build/android/gyp/write_build_config.py (right): https://codereview.chromium.org/2182303002/diff/100001/build/android/gyp/write_build_config.py#newcode521 build/android/gyp/write_build_config.py:521: # An instrumentation test apk should include the java ...
4 years, 4 months ago (2016-07-28 18:18:22 UTC) #31
jbudorick
On 2016/07/28 18:18:22, jbudorick wrote: > https://codereview.chromium.org/2182303002/diff/100001/build/android/gyp/write_build_config.py > File build/android/gyp/write_build_config.py (right): > > https://codereview.chromium.org/2182303002/diff/100001/build/android/gyp/write_build_config.py#newcode521 > ...
4 years, 4 months ago (2016-07-28 18:28:51 UTC) #32
smaier
https://codereview.chromium.org/2182303002/diff/100001/build/android/gyp/util/proguard_util.py File build/android/gyp/util/proguard_util.py (left): https://codereview.chromium.org/2182303002/diff/100001/build/android/gyp/util/proguard_util.py#oldcode112 build/android/gyp/util/proguard_util.py:112: self._libraries += tested_apk_info['inputs'] @jbudorick Removing lines 108/109 and 112 ...
4 years, 4 months ago (2016-07-28 19:19:19 UTC) #33
jbudorick
https://codereview.chromium.org/2182303002/diff/100001/build/android/gyp/write_build_config.py File build/android/gyp/write_build_config.py (right): https://codereview.chromium.org/2182303002/diff/100001/build/android/gyp/write_build_config.py#newcode545 build/android/gyp/write_build_config.py:545: # Exclude dex files from the test apk that ...
4 years, 4 months ago (2016-07-28 19:25:14 UTC) #34
jbudorick
After speaking offline, lgtm https://codereview.chromium.org/2182303002/diff/120001/chrome/android/javatests/src/org/chromium/chrome/browser/download/DownloadInfoTest.java File chrome/android/javatests/src/org/chromium/chrome/browser/download/DownloadInfoTest.java (left): https://codereview.chromium.org/2182303002/diff/120001/chrome/android/javatests/src/org/chromium/chrome/browser/download/DownloadInfoTest.java#oldcode1 chrome/android/javatests/src/org/chromium/chrome/browser/download/DownloadInfoTest.java:1: // Copyright 2013 The Chromium ...
4 years, 4 months ago (2016-07-29 02:48:25 UTC) #35
smaier
torne@chromium.org: Please review changes in base/android/base_proguard_config.flags bauerb@chromium.org: Please review changes in chrome/android/BUILD.gn, cchrome/android/chrome_public_apk_tmpl.gn https://codereview.chromium.org/2182303002/diff/120001/chrome/android/javatests/src/org/chromium/chrome/browser/download/DownloadInfoTest.java File ...
4 years, 4 months ago (2016-07-29 13:42:42 UTC) #39
Bernhard Bauer
Rubberstamp LGTM
4 years, 4 months ago (2016-07-29 14:24:31 UTC) #40
Torne
base_proguard_config.flags LGTM
4 years, 4 months ago (2016-08-02 13:05:52 UTC) #43
commit-bot: I haz the power
This CL has an open dependency (Issue 2182133004 Patch 60001). Please resolve the dependency and ...
4 years, 4 months ago (2016-08-02 13:37:31 UTC) #47
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/2182303002/160001
4 years, 4 months ago (2016-08-05 13:24:01 UTC) #50
commit-bot: I haz the power
Committed patchset #9 (id:160001)
4 years, 4 months ago (2016-08-05 14:21:33 UTC) #52
commit-bot: I haz the power
4 years, 4 months ago (2016-08-05 14:24:07 UTC) #54
Message was sent while issue was closed.
Patchset 9 (id:??) landed as
https://crrev.com/d50624e2e5a9d9fe13596d83e73385c9c44069e9
Cr-Commit-Position: refs/heads/master@{#410056}

Powered by Google App Engine
This is Rietveld 408576698