RFC: abolishing enforcing per-file license headers (checklicenses/licensecheck)

77 views
Skip to first unread message

Paweł Hajdan, Jr.

unread,
Sep 1, 2016, 12:10:24 PM9/1/16
to chromium-dev, infr...@chromium.org
I introduced licensecheck a few years ago to improve things for downstream Chromium packagers, e.g. Debian/Ubuntu.

I realized the ongoing friction for the Chromium project isn't worth it, and the interest among packagers seems to have decreased anyway.

Is there any concern about the removal?

Specifically, I'm referring to following code, which I'd remove any entries in src/testing/buildbot that make it run on main waterfall and CQ trybots:



I'd also remove "Handling licenses_check (checklicenses.py) failures" section of https://www.chromium.org/developers/adding-3rd-party-libraries .

Note that there are some other copyright-related scripts that were added by other people for other reasons, and they'd not be changed. The "Handling webview_licenses.py failures" part of above page would also stay.



Paweł

Torne (Richard Coles)

unread,
Sep 1, 2016, 12:54:07 PM9/1/16
to phajd...@chromium.org, chromium-dev, infr...@chromium.org

WebView no longer has android's downstream licence requirements. We have kept the WebView licence checker around on the assumption that someone thought that strict checking of licences was a good idea (for the project as a whole) and there's a bug open somewhere to rename it to indicate it isn't anything to do with WebView and run it on all bots. So, if we're changing the way we check licences, we should consider what to with this as well and not just leave it as-is.


--
--
Chromium Developers mailing list: chromi...@chromium.org
View archives, change email options, or unsubscribe:
http://groups.google.com/a/chromium.org/group/chromium-dev

Dale Curtis

unread,
Sep 1, 2016, 1:00:56 PM9/1/16
to to...@chromium.org, Paweł Hajdan, Jr., chromium-dev, infr...@chromium.org
So long as we can keep using it within the ffmpeg repo, no objections.


- dale

Dirk Pranke

unread,
Sep 1, 2016, 2:21:52 PM9/1/16
to Dale Curtis, Torne (Richard Coles), Paweł Hajdan, Jr., chromium-dev, infr...@chromium.org
We still need a mechanism to check and enforce that we're not linking in code to Chrome and the other shipped products
that we shouldn't be (i.e., we have the same need that ffmpeg does). 

I have crbug.com/46261 assigned to me to implement something smarter based on top of GN now that we're off GYP,
and it's possible that I'd like to re-use some of the checklicenses logic there (not sure yet, I'll probably look at this bug soon),
but otherwise I'm fine with removing the checklicenses step.

(I'm not sure if that bug is the same one torne@ was thinking of, but it sounds like the same need).

-- Dirk

--
You received this message because you are subscribed to the Google Groups "infra-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to infra-dev+unsubscribe@chromium.org.
To post to this group, send email to infr...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/infra-dev/CAPUDrwdR7RDbv8xvje8JH2Mq1ugu3%2BRsM%3DmU34h%2B6FY%3DB1%2BPLg%40mail.gmail.com.

Torne (Richard Coles)

unread,
Sep 2, 2016, 10:46:57 AM9/2/16
to Dirk Pranke, Dale Curtis, Paweł Hajdan, Jr., chromium-dev, infr...@chromium.org
There's https://crbug.com/486158, https://crbug.com/546862, and https://crbug.com/569710 covering different parts of webview_licenses sucking.

So just to be clear on webview here:

1) the WebView team no longer require any WebView-specific special license enforcement, because we no longer check the WebView sources into the Android tree. We only have the same licensing requirements as Chrome and other shipped products now.
2) We would rather not be the owners/maintainers of the webview_licenses tool any more :)
3) The webview_licenses tool only still exists and gets run because we were under the impression that someone thought it was useful in general for chromium to have a strict license check of this kind - if this need is, or can be, satisfied by other tools, then it's fine to just go ahead and delete webview_licenses, or subsume parts of it into other tools, or whatever people want.

To unsubscribe from this group and stop receiving emails from it, send an email to infra-dev+...@chromium.org.

To post to this group, send email to infr...@chromium.org.

Paweł Hajdan, Jr.

unread,
Sep 6, 2016, 3:32:53 PM9/6/16
to Torne (Richard Coles), Dirk Pranke, Dale Curtis, chromium-dev, infr...@chromium.org
I've uploaded https://codereview.chromium.org/2312323002 as a starting point to stop running checklicenses.py on some Linux builders.

webview_licenses could be next - based on this thread it's not necessary and is annoying.

Usage of licensecheck.pl inside ffmpeg's generate_gn.py is fine. In fact, we may be able to get rid of some local patches to licensecheck, and possibly bring it more up to date.

Dirk, a smart mechanism in GN to be aware of licenses sounds like a great thing. It's https://bugs.chromium.org/p/chromium/issues/detail?id=469261 , right?

Paweł

To unsubscribe from this group and stop receiving emails from it, send an email to infra-dev+unsubscribe@chromium.org.

To post to this group, send email to infr...@chromium.org.

Dirk Pranke

unread,
Sep 6, 2016, 3:36:05 PM9/6/16
to Paweł Hajdan, Jr., Torne (Richard Coles), Dale Curtis, chromium-dev, infr...@chromium.org
On Tue, Sep 6, 2016 at 12:31 PM, Paweł Hajdan, Jr. <phajd...@chromium.org> wrote:
Dirk, a smart mechanism in GN to be aware of licenses sounds like a great thing. It's https://bugs.chromium.org/p/chromium/issues/detail?id=469261 , right?

Yes.

-- Dirk

Paweł Hajdan, Jr.

unread,
Sep 7, 2016, 10:22:25 AM9/7/16
to Dirk Pranke, Torne (Richard Coles), Dale Curtis, chromium-dev, infr...@chromium.org
I've now uploaded https://codereview.chromium.org/2319093002 to stop running webview_licenses.

Paweł

Paweł Hajdan, Jr.

unread,
Sep 20, 2016, 1:32:37 PM9/20/16
to Dirk Pranke, Torne (Richard Coles), Dale Curtis, chromium-dev, infr...@chromium.org
I've also noticed tools/copyright_scanner , and I still get asked to review CLs related to it like https://codereview.chromium.org/2350233003 .

Is it still needed?

Paweł

Torne (Richard Coles)

unread,
Sep 21, 2016, 9:00:18 AM9/21/16
to Paweł Hajdan, Jr., Dirk Pranke, Dale Curtis, chromium-dev, infr...@chromium.org
I'm not sure. I thought it was some kind of common component between one or more of the things you already deleted, but I don't know for sure whether it also gets run some other way. Despite being listed as an OWNER for this and reviewing changes to the whitelist, I have no real clue how it's used :(

Paweł Hajdan, Jr.

unread,
Sep 21, 2016, 3:17:33 PM9/21/16
to Torne (Richard Coles), Mikhail Naganov, Dirk Pranke, Dale Curtis, chromium-dev, infr...@chromium.org
+mnaganov for more context (https://codereview.chromium.org/622493004)

It seems to me it was still related to webview, and so shouldn't be necessary now.

Paweł

Paweł Hajdan, Jr.

unread,
Sep 21, 2016, 8:53:54 PM9/21/16
to Mikhail Naganov, Torne (Richard Coles), Dirk Pranke, Dale Curtis, chromium-dev, infr...@chromium.org
[reposting mnaganov's reply to MLs]


Paweł

On Wed, Sep 21, 2016 at 12:31 PM, Mikhail Naganov <mnag...@chromium.org> wrote:
I think it's relevant for the entire project, not only for WebView -- to detect attempts of putting some third-party code outside of third-party directories.

But perhaps if we rely on reviewers to detect such things and the script becomes a hassle then we can get rid of it.
Reply all
Reply to author
Forward
0 new messages