burr icon indicating copy to clipboard operation
burr copied to clipboard

License: surface bundled JS dependencies in wheel's LICENSE rather than only the webpack-generated LICENSE.txt

Open elijahbenizzy opened this issue 6 months ago • 6 comments

Raised by Jarek Potiuk during the 0.42.0-incubating RC3 PPMC review. Non-blocking for the release.

Issue

The wheel ships the built React UI under burr/tracking/server/build/. That bundle (~1.7 MB total) embeds many third-party npm packages (React, react-router, lodash, the Magic UI runtime deps, etc.). Their license terms are documented in burr/tracking/server/build/static/js/main.<hash>.js.LICENSE.txt — which is webpack's auto-generated comment-banner aggregation.

That file is technically present and machine-readable, but it's not surfaced anywhere a typical license auditor would look: the wheel's top-level LICENSE-wheel does not reference it, and there's no dist-info/licenses/ entry for the bundled deps.

What's expected for ASF wheels

Apache release policy expects all bundled dependencies to be enumerated in the project's LICENSE / NOTICE in some form, even if the underlying license file is shipped separately. The current state passes RAT (we exclude *.js), but is fragile to a strict licensing review.

Suggested fix

One of:

  1. Have the release script copy burr/tracking/server/build/static/js/main.*.js.LICENSE.txt into dist-info/licenses/LICENSE-bundled-js.txt during wheel build, AND add a one-line pointer in LICENSE-wheel pointing readers to that file.
  2. Pre-process the webpack output to extract a deduplicated, sorted, top-level LICENSE-bundled-js.txt that's appended to LICENSE-wheel directly.
  3. Vendor a static LICENSE-bundled-js.txt listing the npm deps + their licenses, and verify it stays in sync via CI.

Option 1 is the lowest-effort and survives webpack hash changes automatically.

References

  • PPMC vote thread: https://www.mail-archive.com/[email protected]/msg00127.html
  • The auto-generated file in question: burr/tracking/server/build/static/js/main.<hash>.js.LICENSE.txt (present in every wheel build)

elijahbenizzy avatar May 04 '26 16:05 elijahbenizzy

Please assign it to me

hussain-s avatar Jun 04 '26 17:06 hussain-s

@hussain-s, this issue has been inactive for 17 days. Are you still working on it? Drop a comment to let us know.

If there is no update within 7 days, the assignment will be removed so someone else can pick it up (per the assignment policy).

github-actions[bot] avatar Jul 01 '26 10:07 github-actions[bot]

Removing assignment from @hussain-s after 38 days of inactivity (per the assignment policy).

Feel free to comment if you want to pick this back up or if someone else wants to take it.

github-actions[bot] avatar Jul 22 '26 10:07 github-actions[bot]

I’m taking this over after the previous assignment expired. I’ll surface the generated webpack license notices through the standard wheel license directory and add release-verification coverage.

bm1016bm-svg avatar Jul 26 '26 04:07 bm1016bm-svg

I am working on it. My previous PR was merged recently which was a blocker for this one.

hussain-s avatar Jul 27 '26 05:07 hussain-s

Resolved in #868

jernejfrank avatar Aug 30 '26 15:08 jernejfrank