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

Issue 86313004: [Android] Add lint as a gyp action. (Closed)

Created:
7 years ago by frankf
Modified:
7 years ago
Reviewers:
cjhopman, Yaron, newt (away)
CC:
chromium-reviews, craigdh+watch_chromium.org, bulach+watch_chromium.org, yfriedman+watch_chromium.org, ilevy-cc_chromium.org, klundberg+watch_chromium.org, frankf+watch_chromium.org
Visibility:
Public.

Description

[Android] Add lint as a gyp action. - Run lint on all java/apk targets using a dummy AndroidManifest.xml - Add build/android/lint/suppress.py for suppressing generated errors - Enable lint on FYI builders as a first step BUG=None R=cjhopman@chromium.org, newt@chromium.org TBR=navabi@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=239984

Patch Set 1 : #

Patch Set 2 : #

Total comments: 6

Patch Set 3 : #

Total comments: 19

Patch Set 4 : newt's comments addressed #

Total comments: 14

Patch Set 5 : Temp patch for showing the lint errors #

Total comments: 6

Patch Set 6 : Addressed all comments #

Total comments: 2

Patch Set 7 : Rebased + nits #

Patch Set 8 : rebased #

Unified diffs Side-by-side diffs Delta from patch set Stats (+517 lines, -8 lines) Patch
M build/android/AndroidManifest.xml View 1 2 3 1 chunk +10 lines, -3 lines 0 comments Download
M build/android/buildbot/bb_run_bot.py View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
A build/android/gyp/lint.py View 1 2 3 4 5 6 1 chunk +158 lines, -0 lines 0 comments Download
A build/android/lint/suppress.py View 1 2 3 4 5 1 chunk +115 lines, -0 lines 0 comments Download
A build/android/lint/suppressions.xml View 1 2 3 4 5 6 7 1 chunk +141 lines, -0 lines 0 comments Download
A build/android/lint_action.gypi View 1 2 3 4 5 1 chunk +39 lines, -0 lines 0 comments Download
M build/common.gypi View 1 2 3 4 5 6 7 2 chunks +4 lines, -1 line 0 comments Download
M build/java.gypi View 1 2 3 4 5 3 chunks +23 lines, -0 lines 0 comments Download
M build/java_apk.gypi View 1 2 3 4 5 4 chunks +26 lines, -3 lines 0 comments Download

Messages

Total messages: 17 (0 generated)
frankf
cjhopman -> Everything yfriedman/newt -> FYI Some points: - This is a cleaner alternative to ...
7 years ago (2013-11-26 01:01:39 UTC) #1
cjhopman
Do you have an idea of how long this takes for a single java library? ...
7 years ago (2013-11-26 23:44:15 UTC) #2
frankf
ptal It takes 3s for chrome_java. I've left debug printing to see the timing on ...
7 years ago (2013-11-27 03:28:44 UTC) #3
frankf
ping
7 years ago (2013-12-02 18:20:08 UTC) #4
newt (away)
Reviewed the python files (but not gyp) Frank, can you explain the rationale for making ...
7 years ago (2013-12-03 00:54:16 UTC) #5
frankf
The issue is stale class files for incremental builds. It's particularly a concern on trybots, ...
7 years ago (2013-12-03 01:13:03 UTC) #6
newt (away)
Another issue to think about: how can developers see the full lint output? If I ...
7 years ago (2013-12-03 02:00:59 UTC) #7
frankf
On 2013/12/03 02:00:59, newt wrote: > Another issue to think about: how can developers see ...
7 years ago (2013-12-03 02:07:52 UTC) #8
frankf
ptal. Patch 4 includes these additional changes: - Add 'never_lint' gyp variable to exclude downstream ...
7 years ago (2013-12-04 23:29:30 UTC) #9
newt (away)
https://codereview.chromium.org/86313004/diff/90001/build/android/gyp/lint.py File build/android/gyp/lint.py (right): https://codereview.chromium.org/86313004/diff/90001/build/android/gyp/lint.py#newcode85 build/android/gyp/lint.py:85: assert (options.lint_path and options.config_path and options.result_path and On 2013/12/04 ...
7 years ago (2013-12-05 23:39:33 UTC) #10
cjhopman
https://codereview.chromium.org/86313004/diff/130001/build/android/gyp/lint.py File build/android/gyp/lint.py (right): https://codereview.chromium.org/86313004/diff/130001/build/android/gyp/lint.py#newcode137 build/android/gyp/lint.py:137: parser.add_option('--src-root', help='Path to top-level src dir.') I think we ...
7 years ago (2013-12-06 02:50:58 UTC) #11
frankf
Thanks cjhopman/newt. All comments are addressed. Patch 6 includes newt's refactoring, I'll rebase once that ...
7 years ago (2013-12-06 22:17:35 UTC) #12
newt (away)
All the python stuff LGTM. I did not look at gyp or buildbot code. Note: ...
7 years ago (2013-12-06 23:59:24 UTC) #13
frankf
Just waiting for Chris. https://codereview.chromium.org/86313004/diff/150001/build/android/gyp/lint.py File build/android/gyp/lint.py (right): https://codereview.chromium.org/86313004/diff/150001/build/android/gyp/lint.py#newcode89 build/android/gyp/lint.py:89: print_stdout=False, print_stderr=False) On 2013/12/06 23:59:24, ...
7 years ago (2013-12-07 01:51:00 UTC) #14
frankf
On 2013/12/07 01:51:00, frankf wrote: > Just waiting for Chris. > > https://codereview.chromium.org/86313004/diff/150001/build/android/gyp/lint.py > File ...
7 years ago (2013-12-10 19:29:59 UTC) #15
cjhopman
lgtm
7 years ago (2013-12-10 20:49:29 UTC) #16
frankf
7 years ago (2013-12-11 03:02:19 UTC) #17
Message was sent while issue was closed.
Committed patchset #8 manually as r239984 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698