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

Issue 2123753005: Creating new gn arg: enable_all_proguard_optimizations. (Closed)

Created:
4 years, 5 months ago by smaier
Modified:
4 years, 5 months ago
Reviewers:
Yaron, mef, agrieve, jbudorick
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

Creating new gn arg: enable_all_proguard_optimizations. If we wish to turn on optimizations for our main code base, we need to first make sure that these optimizations don't break our instrumentation tests when inlining functions. To do this, we make a gn arg which will guard our instrumentation tests and only allow them to run without this flag. This flag will then be the thing that turns on these Proguard optimizations. BUG=625704 Committed: https://crrev.com/05c799ee764fef9d63b4e45c4fba22145f96fed3 Cr-Commit-Position: refs/heads/master@{#405509}

Patch Set 1 #

Patch Set 2 #

Patch Set 3 : Rebased #

Patch Set 4 : Renamed proguard_under_test.flags to proguard_for_test.flags #

Total comments: 22

Patch Set 5 : Addressing comments #

Total comments: 11

Patch Set 6 : Addressing comments from last patch set #

Total comments: 2

Patch Set 7 : Changing from 2 apks to gn arg which controls optimizations #

Total comments: 5

Patch Set 8 : Addressing Andrew's comments #

Patch Set 9 : Removing guard for instrumentation tests which do not use Proguard #

Patch Set 10 : Preventing any regression if enable_all_proguard_optimizations is never turned on #

Total comments: 10

Patch Set 11 : Adding assert to ensure sanity with enable_all_proguard_optimizations and is_java_debug #

Patch Set 12 : Moving testing-specific proguard configs to chrome_public_apk_tmpl #

Patch Set 13 : rebased #

Patch Set 14 : Rebased again #

Unified diffs Side-by-side diffs Delta from patch set Stats (+78 lines, -36 lines) Patch
M BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +6 lines, -2 lines 0 comments Download
M build/config/android/config.gni View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +18 lines, -6 lines 0 comments Download
M build/config/android/rules.gni View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -0 lines 0 comments Download
M chrome/android/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +32 lines, -28 lines 0 comments Download
M chrome/android/chrome_public_apk_tmpl.gni View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +3 lines, -0 lines 0 comments Download
A testing/android/proguard_for_test.flags View 1 2 3 4 5 6 7 8 9 1 chunk +18 lines, -0 lines 0 comments Download

Messages

Total messages: 87 (46 generated)
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/2123753005/20001
4 years, 5 months ago (2016-07-05 20:04:47 UTC) #2
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: ios-device on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-device/builds/31207) ios-device-gn on ...
4 years, 5 months ago (2016-07-05 20:06:19 UTC) #4
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/2123753005/40001
4 years, 5 months ago (2016-07-05 20:46:11 UTC) #6
smaier
4 years, 5 months ago (2016-07-05 20:52:24 UTC) #8
Yaron
+jbudorick who should review https://codereview.chromium.org/2123753005/diff/60001/build/config/android/rules.gni File build/config/android/rules.gni (right): https://codereview.chromium.org/2123753005/diff/60001/build/config/android/rules.gni#newcode1619 build/config/android/rules.gni:1619: _is_testable_apk = _proguard_enabled && !defined(invoker.apk_under_test) ...
4 years, 5 months ago (2016-07-06 14:01:41 UTC) #10
agrieve
https://codereview.chromium.org/2123753005/diff/60001/build/config/android/rules.gni File build/config/android/rules.gni (right): https://codereview.chromium.org/2123753005/diff/60001/build/config/android/rules.gni#newcode1619 build/config/android/rules.gni:1619: _is_testable_apk = _proguard_enabled && !defined(invoker.apk_under_test) nit: non-proguarded apks are ...
4 years, 5 months ago (2016-07-06 14:18:49 UTC) #11
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/2123753005/80001
4 years, 5 months ago (2016-07-06 18:01:59 UTC) #13
smaier
https://codereview.chromium.org/2123753005/diff/60001/build/config/android/rules.gni File build/config/android/rules.gni (right): https://codereview.chromium.org/2123753005/diff/60001/build/config/android/rules.gni#newcode1619 build/config/android/rules.gni:1619: _is_testable_apk = _proguard_enabled && !defined(invoker.apk_under_test) On 2016/07/06 14:18:49, agrieve ...
4 years, 5 months ago (2016-07-06 19:09:37 UTC) #14
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_android_rel_ng on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/linux_android_rel_ng/builds/99153)
4 years, 5 months ago (2016-07-06 19:39:00 UTC) #16
agrieve
https://codereview.chromium.org/2123753005/diff/80001/build/config/android/rules.gni File build/config/android/rules.gni (right): https://codereview.chromium.org/2123753005/diff/80001/build/config/android/rules.gni#newcode1920 build/config/android/rules.gni:1920: proguard(_proguard_for_test_target) { I liked how the create_apk() template turned ...
4 years, 5 months ago (2016-07-07 01:32:13 UTC) #17
agrieve
On 2016/07/07 01:32:13, agrieve wrote: > https://codereview.chromium.org/2123753005/diff/80001/build/config/android/rules.gni > File build/config/android/rules.gni (right): > > https://codereview.chromium.org/2123753005/diff/80001/build/config/android/rules.gni#newcode1920 > ...
4 years, 5 months ago (2016-07-07 01:32:54 UTC) #18
jbudorick
I'm wondering about the merits of this vs either: - building the current contents of ...
4 years, 5 months ago (2016-07-07 01:48:52 UTC) #19
agrieve
On 2016/07/07 01:48:52, jbudorick wrote: > I'm wondering about the merits of this vs either: ...
4 years, 5 months ago (2016-07-07 02:35:25 UTC) #20
agrieve
https://codereview.chromium.org/2123753005/diff/80001/build/config/android/rules.gni File build/config/android/rules.gni (right): https://codereview.chromium.org/2123753005/diff/80001/build/config/android/rules.gni#newcode2087 build/config/android/rules.gni:2087: _parent_invoker = invoker.invoker On 2016/07/07 01:48:52, jbudorick wrote: > ...
4 years, 5 months ago (2016-07-07 13:37:57 UTC) #21
smaier
https://codereview.chromium.org/2123753005/diff/80001/build/config/android/rules.gni File build/config/android/rules.gni (right): https://codereview.chromium.org/2123753005/diff/80001/build/config/android/rules.gni#newcode1920 build/config/android/rules.gni:1920: proguard(_proguard_for_test_target) { On 2016/07/07 01:32:12, agrieve wrote: > I ...
4 years, 5 months ago (2016-07-07 15:05:05 UTC) #22
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/2123753005/100001
4 years, 5 months ago (2016-07-07 15:09:44 UTC) #24
agrieve
lgtm. Please wait for John's lgtm as well though. https://codereview.chromium.org/2123753005/diff/100001/build/config/android/rules.gni File build/config/android/rules.gni (right): https://codereview.chromium.org/2123753005/diff/100001/build/config/android/rules.gni#newcode2104 build/config/android/rules.gni:2104: ...
4 years, 5 months ago (2016-07-07 15:36:52 UTC) #25
jbudorick
On 2016/07/07 02:35:25, agrieve wrote: > On 2016/07/07 01:48:52, jbudorick wrote: > > I'm wondering ...
4 years, 5 months ago (2016-07-07 15:40:46 UTC) #26
jbudorick
On 2016/07/07 15:40:46, jbudorick wrote: > On 2016/07/07 02:35:25, agrieve wrote: > > On 2016/07/07 ...
4 years, 5 months ago (2016-07-07 15:43:17 UTC) #27
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_chromium_chromeos_compile_dbg_ng on master.tryserver.chromium.linux (JOB_TIMED_OUT, no build URL)
4 years, 5 months ago (2016-07-07 17:11:04 UTC) #29
agrieve
On 2016/07/07 17:11:04, commit-bot: I haz the power wrote: > Dry run: Try jobs failed ...
4 years, 5 months ago (2016-07-07 19:04:48 UTC) #30
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/2123753005/120001
4 years, 5 months ago (2016-07-07 21:56:35 UTC) #32
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: android_arm64_dbg_recipe on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_arm64_dbg_recipe/builds/92818) android_clang_dbg_recipe on ...
4 years, 5 months ago (2016-07-07 22:04:27 UTC) #34
agrieve
couple nits + fix the missing imports = lgtm! https://codereview.chromium.org/2123753005/diff/120001/android_webview/tools/system_webview_shell/BUILD.gn File android_webview/tools/system_webview_shell/BUILD.gn (right): https://codereview.chromium.org/2123753005/diff/120001/android_webview/tools/system_webview_shell/BUILD.gn#newcode68 android_webview/tools/system_webview_shell/BUILD.gn:68: ...
4 years, 5 months ago (2016-07-08 14:26:20 UTC) #35
agrieve
On 2016/07/08 14:26:20, agrieve wrote: > couple nits + fix the missing imports = lgtm! ...
4 years, 5 months ago (2016-07-08 14:26:36 UTC) #36
smaier
https://codereview.chromium.org/2123753005/diff/120001/android_webview/tools/system_webview_shell/BUILD.gn File android_webview/tools/system_webview_shell/BUILD.gn (right): https://codereview.chromium.org/2123753005/diff/120001/android_webview/tools/system_webview_shell/BUILD.gn#newcode68 android_webview/tools/system_webview_shell/BUILD.gn:68: if (!enable_all_proguard_optimizations) { On 2016/07/08 14:26:20, agrieve wrote: > ...
4 years, 5 months ago (2016-07-08 14:50:08 UTC) #39
Yaron
https://codereview.chromium.org/2123753005/diff/180001/chrome/android/BUILD.gn File chrome/android/BUILD.gn (right): https://codereview.chromium.org/2123753005/diff/180001/chrome/android/BUILD.gn#newcode555 chrome/android/BUILD.gn:555: if (!enable_all_proguard_optimizations) { since you made the rest of ...
4 years, 5 months ago (2016-07-12 03:40:04 UTC) #49
smaier
https://codereview.chromium.org/2123753005/diff/180001/chrome/android/BUILD.gn File chrome/android/BUILD.gn (right): https://codereview.chromium.org/2123753005/diff/180001/chrome/android/BUILD.gn#newcode555 chrome/android/BUILD.gn:555: if (!enable_all_proguard_optimizations) { On 2016/07/12 03:40:04, Yaron wrote: > ...
4 years, 5 months ago (2016-07-12 13:24:43 UTC) #50
Yaron
ok lgtm
4 years, 5 months ago (2016-07-12 13:25:44 UTC) #51
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/2123753005/180001
4 years, 5 months ago (2016-07-13 14:31:40 UTC) #54
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/217190)
4 years, 5 months ago (2016-07-13 14:38:53 UTC) #56
smaier
mef@chromium.org: Please review components/cronet/android/BUILD.gn
4 years, 5 months ago (2016-07-13 14:51:05 UTC) #58
mef
https://codereview.chromium.org/2123753005/diff/180001/components/cronet/android/BUILD.gn File components/cronet/android/BUILD.gn (right): https://codereview.chromium.org/2123753005/diff/180001/components/cronet/android/BUILD.gn#newcode363 components/cronet/android/BUILD.gn:363: proguard_enabled = true Should proguard_enabled be conditioned on enable_all_proguard_optimizations ...
4 years, 5 months ago (2016-07-13 15:12:08 UTC) #59
smaier
https://codereview.chromium.org/2123753005/diff/180001/components/cronet/android/BUILD.gn File components/cronet/android/BUILD.gn (right): https://codereview.chromium.org/2123753005/diff/180001/components/cronet/android/BUILD.gn#newcode363 components/cronet/android/BUILD.gn:363: proguard_enabled = true On 2016/07/13 15:12:07, mef wrote: > ...
4 years, 5 months ago (2016-07-13 15:31:16 UTC) #60
mef
https://codereview.chromium.org/2123753005/diff/180001/components/cronet/android/BUILD.gn File components/cronet/android/BUILD.gn (right): https://codereview.chromium.org/2123753005/diff/180001/components/cronet/android/BUILD.gn#newcode381 components/cronet/android/BUILD.gn:381: instrumentation_test_apk("cronet_sample_test_apk") { On 2016/07/13 15:31:16, smaier wrote: > On ...
4 years, 5 months ago (2016-07-13 16:49:40 UTC) #65
smaier
https://codereview.chromium.org/2123753005/diff/180001/components/cronet/android/BUILD.gn File components/cronet/android/BUILD.gn (right): https://codereview.chromium.org/2123753005/diff/180001/components/cronet/android/BUILD.gn#newcode381 components/cronet/android/BUILD.gn:381: instrumentation_test_apk("cronet_sample_test_apk") { On 2016/07/13 16:49:40, mef wrote: > On ...
4 years, 5 months ago (2016-07-13 18:13:31 UTC) #68
mef
On 2016/07/13 18:13:31, smaier wrote: > https://codereview.chromium.org/2123753005/diff/180001/components/cronet/android/BUILD.gn > File components/cronet/android/BUILD.gn (right): > > https://codereview.chromium.org/2123753005/diff/180001/components/cronet/android/BUILD.gn#newcode381 > ...
4 years, 5 months ago (2016-07-13 18:15:09 UTC) #69
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/2123753005/260001
4 years, 5 months ago (2016-07-14 17:04:12 UTC) #82
commit-bot: I haz the power
Committed patchset #14 (id:260001)
4 years, 5 months ago (2016-07-14 17:09:58 UTC) #84
commit-bot: I haz the power
CQ bit was unchecked.
4 years, 5 months ago (2016-07-14 17:10:10 UTC) #85
commit-bot: I haz the power
4 years, 5 months ago (2016-07-14 17:12:41 UTC) #87
Message was sent while issue was closed.
Patchset 14 (id:??) landed as
https://crrev.com/05c799ee764fef9d63b4e45c4fba22145f96fed3
Cr-Commit-Position: refs/heads/master@{#405509}

Powered by Google App Engine
This is Rietveld 408576698