Skip to content

fix(licensing): list the protobuf TypeScript generated from third-party .proto files in LICENSE - #9010

Merged
mengw15 merged 2 commits into
apache:mainfrom
mengw15:fix/8802-license-generated-proto-ts
Oct 16, 2026
Merged

mengw15 merged 2 commits into
apache:mainfrom
mengw15:fix/8802-license-generated-proto-ts

Conversation

@mengw15

@mengw15 mengw15 commented Oct 15, 2026

Copy link
Copy Markdown
Contributor

What changes were proposed in this PR?

The frontend commits TypeScript that bin/frontend-proto-gen.sh generates from ScalaPB's scalapb.proto and, through it, Google's descriptor.proto (#8802). descriptor.ts carries about 850 lines of Google's BSD-3 documentation comments, but neither generated file was listed in LICENSE.

This adds descriptor.ts under BSD 3-Clause with Google's copyright line, and lists scalapb.ts in the existing ScalaPB entry. Only LICENSE changes; the files themselves are untouched.

Any related issues, documentation, discussions?

Part of #8802. The same files are on release/v1.3 and release/v1.2.

How was this PR tested?

License text only. The copyright line and license come from the header of descriptor.proto in protocolbuffers/protobuf.

Was this PR authored or co-authored using generative AI tooling?

Generated-by: Claude Code (claude-opus-5-5)

…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.
@Yicong-Huang Yicong-Huang added release/v1.3 back porting to release/v1.3 release/v1.2 back porting to release/v1.2 labels Oct 15, 2026
@github-actions
github-actions Bot requested a review from xuang7 October 15, 2026 23:26
@github-actions github-actions Bot added fix docs Changes related to documentations labels Oct 15, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Backport auto-label report

This fix: PR was checked against each actively-supported release branch. A release/* label nominates a backport target; the branch's release manager approving this PR is what sends the fix there. The required Backport Approvals check stays red until every label below is approved, so each manager either approves or removes their own label — which is why the labels left on a merged PR are exactly the branches it reached.

Release branch Analysis
✅ release/v1.3 Change detected on this branch — label added; this fix is queued to backport here.
✅ release/v1.2 Change detected on this branch — label added; this fix is queued to backport here. @xuang7 decides: approving sends the fix here, removing this label declines it. The merge waits on one or the other. Review requested.

Auto-label run.

@github-actions

Copy link
Copy Markdown
Contributor

Automated Reviewer Suggestions

Based on the git blame history of the changed files, we recommend the following reviewers:

  • No candidates found from git blame history.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 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.ts under the existing ScalaPB attribution.
  • Adds a BSD 3-Clause entry for descriptor.ts and 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.

Comment thread LICENSE Resolved
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.

@xuang7 xuang7 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@mengw15
mengw15 added this pull request to the merge queue Oct 16, 2026
Merged via the queue into apache:main with commit 57faa6b Oct 16, 2026
24 of 27 checks passed
@mengw15
mengw15 deleted the fix/8802-license-generated-proto-ts branch October 16, 2026 00:48
@github-actions

Copy link
Copy Markdown
Contributor

Backport PR opened: draft #9013 (#9013) to release/v1.2, assigned to @mengw15 — needs manual work because the cherry-pick conflicts.

@github-actions

Copy link
Copy Markdown
Contributor

Backport PR opened: draft #9014 (#9014) to release/v1.3, assigned to @mengw15 — needs manual work because the cherry-pick conflicts.

renovate-bot pushed a commit to renovate-bot/apache-_-texera that referenced this pull request Oct 19, 2026
…#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)
mengw15 added a commit that referenced this pull request Oct 27, 2026
…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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs Changes related to documentations fix release/v1.2 back porting to release/v1.2 release/v1.3 back porting to release/v1.3

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants