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

Issue 622493004: [Android WebView] Rewrite copyrights scanner in Python (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] Rewrite copyrights scanner in Python This is to prepare for running the scanner as a presubmit check. I have added some manual tests to make sure that the new scanner is compatible with the old one. I plan to replace them with automatic unittests once I start using presubmit-style input API objects that are easily mockable. BUG=343104 Committed: https://crrev.com/f8af6334c60ec5b39355e414e587b0190d8db86c Cr-Commit-Position: refs/heads/master@{#297828}

Patch Set 1 #

Total comments: 8

Patch Set 2 : Comments addressed #

Patch Set 3 : Add license header to the manual test script #

Unified diffs Side-by-side diffs Delta from patch set Stats (+276 lines, -243 lines) Patch
A android_webview/tools/copyright_scanner.py View 1 1 chunk +196 lines, -0 lines 0 comments Download
D android_webview/tools/find_copyrights.pl View 1 chunk +0 lines, -146 lines 0 comments Download
D android_webview/tools/find_files.pl View 1 chunk +0 lines, -32 lines 0 comments Download
A + android_webview/tools/run_find_copyrights_manual_tests.sh View 1 2 1 chunk +3 lines, -11 lines 0 comments Download
A android_webview/tools/tests/copyright-01 View 1 chunk +6 lines, -0 lines 0 comments Download
A android_webview/tools/tests/copyright-02 View 1 chunk +1 line, -0 lines 0 comments Download
A android_webview/tools/tests/copyright-03 View 1 chunk +1 line, -0 lines 0 comments Download
A android_webview/tools/tests/copyright-04 View 1 chunk +1 line, -0 lines 0 comments Download
A android_webview/tools/tests/copyright-05 View 1 chunk +1 line, -0 lines 0 comments Download
A android_webview/tools/tests/generated-01 View 1 chunk +2 lines, -0 lines 0 comments Download
A android_webview/tools/tests/generated-02 View 1 chunk +2 lines, -0 lines 0 comments Download
A android_webview/tools/tests/generated-03 View 1 chunk +2 lines, -0 lines 0 comments Download
A android_webview/tools/tests/generated-04 View 1 chunk +2 lines, -0 lines 0 comments Download
A android_webview/tools/tests/generated-05 View 1 chunk +2 lines, -0 lines 0 comments Download
A android_webview/tools/tests/generated-06 View 1 chunk +2 lines, -0 lines 0 comments Download
A android_webview/tools/tests/generated-07 View 1 chunk +2 lines, -0 lines 0 comments Download
A android_webview/tools/tests/generated-08 View 1 chunk +2 lines, -0 lines 0 comments Download
A android_webview/tools/tests/generated-09 View 1 chunk +2 lines, -0 lines 0 comments Download
A android_webview/tools/tests/no-copyright-01 View 1 chunk +1 line, -0 lines 0 comments Download
A android_webview/tools/tests/no-copyright-02 View 1 chunk +9 lines, -0 lines 0 comments Download
A android_webview/tools/tests/no-copyright-03 View 1 chunk +1 line, -0 lines 0 comments Download
A android_webview/tools/tests/no-copyright-04 View 1 chunk +1 line, -0 lines 0 comments Download
A android_webview/tools/tests/no-copyright-05 View 1 chunk +1 line, -0 lines 0 comments Download
A android_webview/tools/tests/non-generated-01 View 1 chunk +1 line, -0 lines 0 comments Download
A android_webview/tools/tests/non-generated-02 View 1 chunk +1 line, -0 lines 0 comments Download
A android_webview/tools/tests/non-generated-03 View 1 chunk +1 line, -0 lines 0 comments Download
A android_webview/tools/tests/non-generated-04 View 1 chunk +2 lines, -0 lines 0 comments Download
A android_webview/tools/tests/non-generated-05 View 1 chunk +2 lines, -0 lines 0 comments Download
M android_webview/tools/webview_licenses.py View 1 8 chunks +29 lines, -54 lines 0 comments Download

Messages

Total messages: 12 (4 generated)
mnaganov (inactive)
6 years, 2 months ago (2014-10-01 16:16:34 UTC) #2
mkosiba (inactive)
lgtm https://codereview.chromium.org/622493004/diff/1/android_webview/tools/copyright_scanner.py File android_webview/tools/copyright_scanner.py (right): https://codereview.chromium.org/622493004/diff/1/android_webview/tools/copyright_scanner.py#newcode48 android_webview/tools/copyright_scanner.py:48: dirnames.remove(item) the os.walk docs say: > When topdown ...
6 years, 2 months ago (2014-10-02 13:14:47 UTC) #3
mnaganov (inactive)
Thanks, Marcin! https://codereview.chromium.org/622493004/diff/1/android_webview/tools/copyright_scanner.py File android_webview/tools/copyright_scanner.py (right): https://codereview.chromium.org/622493004/diff/1/android_webview/tools/copyright_scanner.py#newcode48 android_webview/tools/copyright_scanner.py:48: dirnames.remove(item) On 2014/10/02 13:14:46, mkosiba wrote: > ...
6 years, 2 months ago (2014-10-02 13:51:30 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/622493004/20001
6 years, 2 months ago (2014-10-02 13:53:38 UTC) #6
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/15014)
6 years, 2 months ago (2014-10-02 14:01:55 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/622493004/40001
6 years, 2 months ago (2014-10-02 14:09:53 UTC) #10
commit-bot: I haz the power
Committed patchset #3 (id:40001) as 328a97854f592603c94c20359324714993219828
6 years, 2 months ago (2014-10-02 14:39:12 UTC) #11
commit-bot: I haz the power
6 years, 2 months ago (2014-10-02 14:39:53 UTC) #12
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/f8af6334c60ec5b39355e414e587b0190d8db86c
Cr-Commit-Position: refs/heads/master@{#297828}

Powered by Google App Engine
This is Rietveld 408576698