Repository navigation
fix(licensing): list the protobuf TypeScript generated from third-party .proto files in LICENSE - #9010
Conversation
…ty .proto files in LICENSE The frontend commits TypeScript that bin/frontend-proto-gen.sh generates from ScalaPB's scalapb.proto and, through it, Google's descriptor.proto (apache#8802). descriptor.ts carries about 850 lines of Google's BSD-3-licensed documentation comments, but neither generated file was listed in LICENSE. Add descriptor.ts under BSD 3-Clause with Google's copyright line, and list scalapb.ts in the existing ScalaPB entry.
Backport auto-label reportThis
|
Automated Reviewer SuggestionsBased on the
|
There was a problem hiding this comment.
🟡 Changes recommended
The protobuf copyright notice must preserve the attribution from the upstream version used to generate the bindings.
1 open finding
What changed in this PR
Adds third-party attribution for committed frontend protobuf TypeScript bindings, addressing the licensing portion of #8802 without changing generated code.
Changes:
- Lists
scalapb.tsunder the existing ScalaPB attribution. - Adds a BSD 3-Clause entry for
descriptor.tsand its documentation comments.
| File | Description |
|---|---|
| LICENSE | Adds attribution for two generated TypeScript files. |
🧠 Review effort: Balanced
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
descriptor.ts was generated by protoc 6.33.4, which bundles protobuf v33.4's descriptor.proto. Its notice reads "Copyright 2008 Google Inc.", not the "Google LLC" of protobuf's current main. Use that line, and pin the source link to the v33.4 file.
…#9020) ### What changes were proposed in this PR? `bin/frontend-proto-gen.sh` runs `protoc` on `workflow.proto` and `virtualidentity.proto`, but ts-proto also writes TypeScript for their transitive imports. Those imports are used only for ScalaPB options (`scalapb.options`, `scalapb.field`), which shape the Scala output and produce no TypeScript types. As a result, two files nothing uses were generated and committed: | File | Lines | Imported by | | --- | --- | --- | | `proto/google/protobuf/descriptor.ts` | 6824 | `scalapb.ts` only | | `proto/scalapb/scalapb.ts` | 2394 | nothing | Changes: | File | Change | | --- | --- | | `bin/frontend-proto-gen.sh` | Removes `proto/scalapb` and `proto/google` after `protoc` runs, so the files don't come back on the next regeneration | | `frontend/src/app/common/type/proto/{google,scalapb}/` | Deleted | | `LICENSE` | Removes the `descriptor.ts` entry and the `scalapb.ts` line. The `scalapb.proto` entry stays because that file is still in the repo | | `.licenserc.yaml` | Removes the license-check exclusions for the two deleted files | ``` Before: protoc -> workflow.ts, virtualidentity.ts, scalapb.ts, descriptor.ts (committed, unused) After: protoc -> workflow.ts, virtualidentity.ts ``` User-facing behavior is unchanged. ### Any related issues, documentation, discussions? Closes apache#9012 Follows apache#9010, which added the `LICENSE` entries for these generated files. ### How was this PR tested? - `bash bin/frontend-proto-gen.sh`: the output folder contains only `org/apache/texera/amber/core/{virtualidentity,workflow}.ts` - `cd frontend && yarn build`: succeeds - `cd frontend && yarn test`: 237 test files passed; 6649 tests passed, 1 skipped No tests added: this removes dead generated code and nothing imports it. ### Was this PR authored or co-authored using generative AI tooling? Co-authored by Claude-Code (helped with file and code deletion, navigating repo, writing this PR description, and tests)
…lease/v1.2 This brings in release/v1.2, which now has the ScalaPB entry (#8868), and applies #9010 on top: scalapb.ts joins that entry, and the descriptor.ts entry goes into a new BSD 3-Clause section. The other entries the cherry-pick carried (Material Symbols, ORCID, Jupyter, Iris, Apple) belong to other changes or to files release/v1.2 does not have. #9009 also turns the Iris entry into a BSD 3-Clause one; whichever of the two merges second folds the two sections into one.

What changes were proposed in this PR?
The frontend commits TypeScript that
bin/frontend-proto-gen.shgenerates from ScalaPB'sscalapb.protoand, through it, Google'sdescriptor.proto(#8802).descriptor.tscarries about 850 lines of Google's BSD-3 documentation comments, but neither generated file was listed inLICENSE.This adds
descriptor.tsunder BSD 3-Clause with Google's copyright line, and listsscalapb.tsin the existing ScalaPB entry. OnlyLICENSEchanges; the files themselves are untouched.Any related issues, documentation, discussions?
Part of #8802. The same files are on
release/v1.3andrelease/v1.2.How was this PR tested?
License text only. The copyright line and license come from the header of
descriptor.protoin protocolbuffers/protobuf.Was this PR authored or co-authored using generative AI tooling?
Generated-by: Claude Code (claude-opus-5-5)