Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enforce licenses in third_party code added to brave-core #9408

Closed
fmarier opened this issue Apr 23, 2020 · 1 comment · Fixed by brave/brave-core#5333
Closed

Enforce licenses in third_party code added to brave-core #9408

fmarier opened this issue Apr 23, 2020 · 1 comment · Fixed by brave/brave-core#5333

Comments

@fmarier
Copy link
Member

fmarier commented Apr 23, 2020

The licenses.py currently throws three LicenseError in src/brave/ (and then ignores them all):

  • brave/vendor/extension-whitelist
  • brave/vendor/speedreader_rust_ffi
  • brave/ui/webui/resources/fonts/third_party/crypto

The first one is a known issue and I added the missing license in brave/extension-whitelist#20 already but it was never updated in brave-core. The second was introduced in brave/brave-core#4496 and the third in brave/brave-core#5160. Only the last one is a true third-party component and needs to be fixed (tracked in #9407).

We should treat errors as fatal when they're triggered in src/brave/. Eventually, all errors will be fatal.

@fmarier fmarier self-assigned this Apr 23, 2020
fmarier added a commit that referenced this issue Apr 24, 2020
In order to be able to enforce the presence of licensing metadata
for everything under src/brave/, we need to ensure that all
required LICENSE files are present at build time since that's when
the upstream licenses.py script runs.

This reverts commits 1708afb,
4e7d1ee and
350ea99.
fmarier added a commit that referenced this issue Apr 24, 2020
In order to be able to enforce the presence of licensing metadata
for everything under src/brave/, we need to ensure that all
required LICENSE files are present at build time since that's when
the upstream licenses.py script runs.

This reverts commits 1708afb,
4e7d1ee and
350ea99.
fmarier added a commit that referenced this issue May 1, 2020
In order to be able to enforce the presence of licensing metadata
for everything under src/brave/, we need to ensure that all
required LICENSE files are present at build time since that's when
the upstream licenses.py script runs.

This reverts commits 1708afb,
4e7d1ee and
350ea99.
@btlechowski
Copy link

btlechowski commented May 26, 2020

Verification passed on

Brave 1.10.71 Chromium: 81.0.4044.138 (Official Build) dev (64-bit)
Revision 8c6c7ba89cc9453625af54f11fd83179e23450fa-refs/branch-heads/4044@{#999}
OS Ubuntu 18.04 LTS

Verified test plan from brave/brave-core#5333

Verified that following entries have a license and a working link:

Brave background images
image
extension-whitelist
image

speedreader-rust-ffi has no entry in brave://credits. Logged #9939

Verification passed on

Brave | 1.10.71 Chromium: 81.0.4044.138 (Official Build) dev (64-bit)
-- | --
Revision | 8c6c7ba89cc9453625af54f11fd83179e23450fa-refs/branch-heads/4044@{#999}
OS | Windows 10 OS Version 1803 (Build 17134.1006)

Brave background images
image
extension-whitelist
image


Verified passed with

Brave | 1.10.79 Chromium: 81.0.4044.138 (Official Build) dev (64-bit)
-- | --
Revision | 8c6c7ba89cc9453625af54f11fd83179e23450fa-refs/branch-heads/4044@{#999}
OS | macOS Version 10.14.6 (Build 18G3020)

Brave background images
Screen Shot 2020-06-01 at 9 37 39 AM

extension-whitelist
Screen Shot 2020-06-01 at 9 38 04 AM

Encountered #9939

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment