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

Issue 1190103002: Make lint fail builds. (Closed)

Created:
5 years, 6 months ago by aurimas (slooooooooow)
Modified:
5 years, 6 months ago
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 lint fail builds. Fix and suppress a bunch of lint warnings to be able to enable lint build failing. TBR=boliu@chromium.org,pauljensen@chromium.org,tedchoc@chromium.org,lambroslambrou@chromium.org,damienv@chromium.org BUG=501471, 241521, 501591, 501593, 501900, 502030 Committed: https://crrev.com/8db283ac6beb49ad8032a8e6c65e4cc76db65ffd Cr-Commit-Position: refs/heads/master@{#335371}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Fix can_fail_build check #

Total comments: 1

Patch Set 3 : Suppress warnings / fix them #

Patch Set 4 : #

Patch Set 5 : set android_webview to use minsdk 19 #

Total comments: 12

Patch Set 6 : newt's nits #

Patch Set 7 : Few more lint issues and disable chromecast #

Patch Set 8 : Rebase + test fix #

Patch Set 9 : Suppress a new issue in EnhancedBookmarkEditActivity #

Patch Set 10 : Fix exported crash for ChromeShellTest #

Unified diffs Side-by-side diffs Delta from patch set Stats (+145 lines, -121 lines) Patch
M android_webview/javatests/AndroidManifest.xml View 1 2 3 4 1 chunk +1 line, -3 lines 0 comments Download
M android_webview/test/shell/AndroidManifest.xml View 1 2 3 4 1 chunk +1 line, -3 lines 0 comments Download
M android_webview/tools/WebViewShell/AndroidManifest.xml View 1 2 3 4 1 chunk +1 line, -2 lines 0 comments Download
M build/android/gyp/lint.py View 1 6 chunks +6 lines, -7 lines 0 comments Download
M build/android/lint/suppressions.xml View 1 2 3 4 5 6 3 chunks +10 lines, -1 line 0 comments Download
M build/android/lint_action.gypi View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/android/java_staging/src/org/chromium/chrome/browser/ChromeActivity.java View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M chrome/android/java_staging/src/org/chromium/chrome/browser/enhancedbookmarks/EnhancedBookmarkEditActivity.java View 1 2 3 4 5 6 7 8 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/android/javatests/AndroidManifest.xml View 1 2 3 4 5 6 7 3 chunks +13 lines, -10 lines 0 comments Download
M chrome/android/javatests/src/org/chromium/chrome/browser/BindingManagerIntegrationTest.java View 1 2 3 4 5 3 chunks +3 lines, -2 lines 0 comments Download
M chrome/android/javatests/src/org/chromium/chrome/browser/NavigateTest.java View 1 2 2 chunks +5 lines, -4 lines 0 comments Download
M chrome/android/javatests/src/org/chromium/chrome/browser/TabsTest.java View 1 2 4 chunks +6 lines, -3 lines 0 comments Download
M chrome/android/javatests/src/org/chromium/chrome/browser/UrlSchemeTest.java View 1 2 3 chunks +3 lines, -0 lines 0 comments Download
M chrome/android/javatests/src/org/chromium/chrome/browser/bookmark/ManageBookmarkActivityTest.java View 1 2 5 chunks +4 lines, -6 lines 0 comments Download
M chrome/android/javatests/src/org/chromium/chrome/browser/compositor/layouts/MockResourcesForLayout.java View 1 2 3 chunks +8 lines, -6 lines 0 comments Download
M chrome/android/javatests/src/org/chromium/chrome/browser/omnibox/QueryInOmniboxTest.java View 1 2 2 chunks +2 lines, -1 line 0 comments Download
M chrome/android/javatests/src/org/chromium/chrome/browser/tabmodel/document/DocumentTabModelImplTest.java View 1 2 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/android/javatests/src/org/chromium/chrome/browser/webapps/WebappModeTest.java View 1 2 3 4 5 7 chunks +6 lines, -7 lines 0 comments Download
M chrome/android/javatests_shell/src/org/chromium/chrome/browser/notifications/NotificationUIManagerTest.java View 1 2 3 4 5 2 chunks +3 lines, -0 lines 0 comments Download
M chrome/android/shell/javatests/AndroidManifest.xml View 1 2 3 4 5 6 7 8 9 3 chunks +10 lines, -8 lines 0 comments Download
M chrome/android/shell/res/values/strings.xml View 1 2 1 chunk +0 lines, -1 line 0 comments Download
D chrome/android/shell/res/xml/file_paths.xml View 1 2 1 chunk +0 lines, -7 lines 0 comments Download
M chrome/android/sync_shell/javatests/AndroidManifest.xml View 1 2 2 chunks +6 lines, -6 lines 0 comments Download
M chrome/test/android/unit_tests_apk/AndroidManifest.xml View 1 2 2 chunks +7 lines, -8 lines 0 comments Download
M chromecast/chromecast.gyp View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M components/cronet/android/test/javaperftests/src/org/chromium/net/CronetPerfTestActivity.java View 1 2 3 4 5 2 chunks +3 lines, -0 lines 0 comments Download
M components/test/android/browsertests_apk/AndroidManifest.xml.jinja2 View 1 2 2 chunks +11 lines, -11 lines 0 comments Download
M content/public/android/java/src/org/chromium/content/browser/accessibility/BrowserAccessibilityManager.java View 1 2 3 4 5 6 7 2 chunks +2 lines, -0 lines 0 comments Download
M content/shell/android/browsertests_apk/AndroidManifest.xml.jinja2 View 1 2 2 chunks +11 lines, -11 lines 0 comments Download
M content/shell/android/javatests/AndroidManifest.xml View 1 2 2 chunks +3 lines, -3 lines 0 comments Download
M content/shell/android/linker_test_apk/AndroidManifest.xml.jinja2 View 1 2 2 chunks +11 lines, -11 lines 0 comments Download
M remoting/android/java/AndroidManifest.xml.jinja2 View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 55 (27 generated)
aurimas (slooooooooow)
newt and yfriedman: PTAL
5 years, 6 months ago (2015-06-17 20:54:01 UTC) #2
newt (away)
https://chromiumcodereview.appspot.com/1190103002/diff/1/build/android/gyp/lint.py File build/android/gyp/lint.py (right): https://chromiumcodereview.appspot.com/1190103002/diff/1/build/android/gyp/lint.py#newcode125 build/android/gyp/lint.py:125: return 1 shouldn't we check the value of can_fail_build ...
5 years, 6 months ago (2015-06-17 21:00:47 UTC) #3
aurimas (slooooooooow)
https://chromiumcodereview.appspot.com/1190103002/diff/1/build/android/gyp/lint.py File build/android/gyp/lint.py (right): https://chromiumcodereview.appspot.com/1190103002/diff/1/build/android/gyp/lint.py#newcode125 build/android/gyp/lint.py:125: return 1 On 2015/06/17 at 21:00:47, newt wrote: > ...
5 years, 6 months ago (2015-06-17 21:50:24 UTC) #4
newt (away)
lgtm
5 years, 6 months ago (2015-06-17 22:01:02 UTC) #5
aurimas (slooooooooow)
+cjhopman for OWNERS review.
5 years, 6 months ago (2015-06-17 22:05:58 UTC) #7
cjhopman
lgtm https://chromiumcodereview.appspot.com/1190103002/diff/20001/build/android/gyp/lint.py File build/android/gyp/lint.py (right): https://chromiumcodereview.appspot.com/1190103002/diff/20001/build/android/gyp/lint.py#newcode124 build/android/gyp/lint.py:124: return 1 I'd suggest using a different value ...
5 years, 6 months ago (2015-06-17 22:07:41 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1190103002/20001
5 years, 6 months ago (2015-06-17 22:12:29 UTC) #10
commit-bot: I haz the power
Try jobs failed on following builders: cast_shell_android on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/cast_shell_android/builds/21558)
5 years, 6 months ago (2015-06-17 22:45:53 UTC) #12
aurimas (slooooooooow)
TBR the following people: boliu@chromium.org android_webview/ pauljensen@chromium.org components/cronet/android tedchoc@chromium.org: content/shell/android/ and components/test/android lambroslambrou@chromium.org: remoting/android/
5 years, 6 months ago (2015-06-18 18:40:48 UTC) #17
boliu
Can you add comment next to TargetApi on what api ling warnings are being suppressed? ...
5 years, 6 months ago (2015-06-18 18:58:16 UTC) #18
Lambros
LGTM for remoting/android/ - a suppression is appropriate in this case.
5 years, 6 months ago (2015-06-18 19:36:09 UTC) #19
boliu
android_webview lgtm https://chromiumcodereview.appspot.com/1190103002/diff/80001/android_webview/tools/WebViewTelemetryShell/AndroidManifest.xml File android_webview/tools/WebViewTelemetryShell/AndroidManifest.xml (right): https://chromiumcodereview.appspot.com/1190103002/diff/80001/android_webview/tools/WebViewTelemetryShell/AndroidManifest.xml#newcode12 android_webview/tools/WebViewTelemetryShell/AndroidManifest.xml:12: <uses-sdk android:minSdkVersion="19" android:targetSdkVersion="19" /> this doesn't exist ...
5 years, 6 months ago (2015-06-18 20:26:58 UTC) #20
newt (away)
lgtm after comments https://codereview.chromium.org/1190103002/diff/80001/build/android/lint/suppressions.xml File build/android/lint/suppressions.xml (right): https://codereview.chromium.org/1190103002/diff/80001/build/android/lint/suppressions.xml#newcode60 build/android/lint/suppressions.xml:60: <ignore path="res/drawable/icon.png"/> add comment explaining the ...
5 years, 6 months ago (2015-06-18 20:26:59 UTC) #21
Lambros
https://codereview.chromium.org/1190103002/diff/80001/remoting/android/java/AndroidManifest.xml.jinja2 File remoting/android/java/AndroidManifest.xml.jinja2 (right): https://codereview.chromium.org/1190103002/diff/80001/remoting/android/java/AndroidManifest.xml.jinja2#newcode30 remoting/android/java/AndroidManifest.xml.jinja2:30: <!--suppress AppIndexingError --> On 2015/06/18 20:26:59, newt wrote: > ...
5 years, 6 months ago (2015-06-18 20:44:32 UTC) #22
aurimas (slooooooooow)
https://chromiumcodereview.appspot.com/1190103002/diff/80001/android_webview/tools/WebViewTelemetryShell/AndroidManifest.xml File android_webview/tools/WebViewTelemetryShell/AndroidManifest.xml (right): https://chromiumcodereview.appspot.com/1190103002/diff/80001/android_webview/tools/WebViewTelemetryShell/AndroidManifest.xml#newcode12 android_webview/tools/WebViewTelemetryShell/AndroidManifest.xml:12: <uses-sdk android:minSdkVersion="19" android:targetSdkVersion="19" /> On 2015/06/18 at 20:26:58, boliu ...
5 years, 6 months ago (2015-06-18 21:37:54 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1190103002/100001
5 years, 6 months ago (2015-06-18 21:40:11 UTC) #26
aurimas (slooooooooow)
TBR damienv
5 years, 6 months ago (2015-06-18 22:18:29 UTC) #29
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1190103002/120001
5 years, 6 months ago (2015-06-18 22:18:51 UTC) #32
commit-bot: I haz the power
Try jobs failed on following builders: linux_android_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_android_rel_ng/builds/35567)
5 years, 6 months ago (2015-06-19 00:57:55 UTC) #34
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1190103002/120001
5 years, 6 months ago (2015-06-19 01:09:06 UTC) #36
commit-bot: I haz the power
Try jobs failed on following builders: linux_android_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_android_rel_ng/builds/35664)
5 years, 6 months ago (2015-06-19 04:28:26 UTC) #38
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1190103002/140001
5 years, 6 months ago (2015-06-19 19:07:57 UTC) #41
commit-bot: I haz the power
Try jobs failed on following builders: linux_android_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_android_rel_ng/builds/35969)
5 years, 6 months ago (2015-06-19 19:43:16 UTC) #44
gunsch
-damienv1, -lcwu1 lgtm for chromecast Aside: I'm a little surprised at the name of the ...
5 years, 6 months ago (2015-06-19 19:45:58 UTC) #47
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1190103002/160001
5 years, 6 months ago (2015-06-19 20:07:52 UTC) #50
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1190103002/180001
5 years, 6 months ago (2015-06-19 21:12:47 UTC) #53
commit-bot: I haz the power
Committed patchset #10 (id:180001)
5 years, 6 months ago (2015-06-19 22:38:59 UTC) #54
commit-bot: I haz the power
5 years, 6 months ago (2015-06-19 22:39:57 UTC) #55
Message was sent while issue was closed.
Patchset 10 (id:??) landed as
https://crrev.com/8db283ac6beb49ad8032a8e6c65e4cc76db65ffd
Cr-Commit-Position: refs/heads/master@{#335371}

Powered by Google App Engine
This is Rietveld 408576698