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

Issue 667723002: [Android WebView] Prepare the copyrights scanner to run from presubmit scripts (Closed)

Created:
6 years, 2 months ago by mnaganov (inactive)
Modified:
6 years, 2 months ago
Reviewers:
mkosiba (inactive)
CC:
chromium-reviews, android-webview-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

[Android WebView] Prepare the copyrights scanner to run from presubmit scripts Make the copyrights scanner to use InputApi instead of accessing system modules directly. Convert manual unit tests for the scanner into automatic that now run as a presubmit check for related changes in android_webview/tools/* BUG=343104 NOTRY=true Committed: https://crrev.com/98bfa8802675cebd96be6688305b85a947f5ba2a Cr-Commit-Position: refs/heads/master@{#300670}

Patch Set 1 #

Patch Set 2 : Add a removed empty line #

Total comments: 8

Patch Set 3 : Comments addressed #

Total comments: 2

Patch Set 4 : Simplified ShouldMatchReferenceOutput #

Unified diffs Side-by-side diffs Delta from patch set Stats (+233 lines, -137 lines) Patch
A android_webview/tools/PRESUBMIT.py View 1 chunk +29 lines, -0 lines 0 comments Download
M android_webview/tools/copyright_scanner.py View 1 2 5 chunks +89 lines, -73 lines 0 comments Download
A android_webview/tools/copyright_scanner_unittest.py View 1 2 3 1 chunk +88 lines, -0 lines 0 comments Download
D android_webview/tools/run_find_copyrights_manual_tests.sh View 1 chunk +0 lines, -6 lines 0 comments Download
D android_webview/tools/tests/copyright-01 View 1 chunk +0 lines, -6 lines 0 comments Download
D android_webview/tools/tests/copyright-02 View 1 chunk +0 lines, -1 line 0 comments Download
D android_webview/tools/tests/copyright-03 View 1 chunk +0 lines, -1 line 0 comments Download
D android_webview/tools/tests/copyright-04 View 1 chunk +0 lines, -1 line 0 comments Download
D android_webview/tools/tests/copyright-05 View 1 chunk +0 lines, -1 line 0 comments Download
D android_webview/tools/tests/generated-01 View 1 chunk +0 lines, -2 lines 0 comments Download
D android_webview/tools/tests/generated-02 View 1 chunk +0 lines, -2 lines 0 comments Download
D android_webview/tools/tests/generated-03 View 1 chunk +0 lines, -2 lines 0 comments Download
D android_webview/tools/tests/generated-04 View 1 chunk +0 lines, -2 lines 0 comments Download
D android_webview/tools/tests/generated-05 View 1 chunk +0 lines, -2 lines 0 comments Download
D android_webview/tools/tests/generated-06 View 1 chunk +0 lines, -2 lines 0 comments Download
D android_webview/tools/tests/generated-07 View 1 chunk +0 lines, -2 lines 0 comments Download
D android_webview/tools/tests/generated-08 View 1 chunk +0 lines, -2 lines 0 comments Download
D android_webview/tools/tests/generated-09 View 1 chunk +0 lines, -2 lines 0 comments Download
D android_webview/tools/tests/no-copyright-01 View 1 chunk +0 lines, -1 line 0 comments Download
D android_webview/tools/tests/no-copyright-02 View 1 chunk +0 lines, -9 lines 0 comments Download
D android_webview/tools/tests/no-copyright-03 View 1 chunk +0 lines, -1 line 0 comments Download
D android_webview/tools/tests/no-copyright-04 View 1 chunk +0 lines, -1 line 0 comments Download
D android_webview/tools/tests/no-copyright-05 View 1 chunk +0 lines, -1 line 0 comments Download
D android_webview/tools/tests/non-generated-01 View 1 chunk +0 lines, -1 line 0 comments Download
D android_webview/tools/tests/non-generated-02 View 1 chunk +0 lines, -1 line 0 comments Download
D android_webview/tools/tests/non-generated-03 View 1 chunk +0 lines, -1 line 0 comments Download
D android_webview/tools/tests/non-generated-04 View 1 chunk +0 lines, -2 lines 0 comments Download
D android_webview/tools/tests/non-generated-05 View 1 chunk +0 lines, -2 lines 0 comments Download
M android_webview/tools/third_party_files_whitelist.txt View 1 chunk +2 lines, -0 lines 0 comments Download
M android_webview/tools/webview_licenses.py View 9 chunks +25 lines, -10 lines 0 comments Download

Messages

Total messages: 15 (4 generated)
mnaganov (inactive)
6 years, 2 months ago (2014-10-20 15:55:14 UTC) #2
mkosiba (inactive)
https://codereview.chromium.org/667723002/diff/20001/android_webview/tools/copyright_scanner.py File android_webview/tools/copyright_scanner.py (right): https://codereview.chromium.org/667723002/diff/20001/android_webview/tools/copyright_scanner.py#newcode64 android_webview/tools/copyright_scanner.py:64: _GeneratedFilesDetector.python_multiline_string_double_re = \ wouldn't it be simpler to have ...
6 years, 2 months ago (2014-10-21 15:41:22 UTC) #3
mnaganov (inactive)
Thanks for insightful comments, Marcin! https://codereview.chromium.org/667723002/diff/20001/android_webview/tools/copyright_scanner.py File android_webview/tools/copyright_scanner.py (right): https://codereview.chromium.org/667723002/diff/20001/android_webview/tools/copyright_scanner.py#newcode64 android_webview/tools/copyright_scanner.py:64: _GeneratedFilesDetector.python_multiline_string_double_re = \ On ...
6 years, 2 months ago (2014-10-22 09:27:29 UTC) #4
mkosiba (inactive)
lgtm https://codereview.chromium.org/667723002/diff/40001/android_webview/tools/copyright_scanner_unittest.py File android_webview/tools/copyright_scanner_unittest.py (right): https://codereview.chromium.org/667723002/diff/40001/android_webview/tools/copyright_scanner_unittest.py#newcode34 android_webview/tools/copyright_scanner_unittest.py:34: def ReadTestData(ignore1, ignore2): you could pull this into ...
6 years, 2 months ago (2014-10-22 11:16:28 UTC) #5
mnaganov (inactive)
https://codereview.chromium.org/667723002/diff/40001/android_webview/tools/copyright_scanner_unittest.py File android_webview/tools/copyright_scanner_unittest.py (right): https://codereview.chromium.org/667723002/diff/40001/android_webview/tools/copyright_scanner_unittest.py#newcode34 android_webview/tools/copyright_scanner_unittest.py:34: def ReadTestData(ignore1, ignore2): On 2014/10/22 11:16:28, mkosiba wrote: > ...
6 years, 2 months ago (2014-10-22 11:55:42 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/667723002/60001
6 years, 2 months ago (2014-10-22 11:57:00 UTC) #8
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/19218) win8_chromium_rel on tryserver.chromium.win (http://build.chromium.org/p/tryserver.chromium.win/builders/win8_chromium_rel/builds/21773) win_chromium_compile_dbg ...
6 years, 2 months ago (2014-10-22 12:01:39 UTC) #10
mnaganov (inactive)
On 2014/10/22 12:01:39, I haz the power (commit-bot) wrote: > Try jobs failed on following ...
6 years, 2 months ago (2014-10-22 12:47:23 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/667723002/60001
6 years, 2 months ago (2014-10-22 12:48:57 UTC) #13
commit-bot: I haz the power
Committed patchset #4 (id:60001)
6 years, 2 months ago (2014-10-22 12:50:12 UTC) #14
commit-bot: I haz the power
6 years, 2 months ago (2014-10-22 12:50:49 UTC) #15
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/98bfa8802675cebd96be6688305b85a947f5ba2a
Cr-Commit-Position: refs/heads/master@{#300670}

Powered by Google App Engine
This is Rietveld 408576698