Skip to content

[Kernel OSS Readiness] Canonicalize license and notice files - #502

Merged
rahuls-db merged 6 commits into
mainfrom
rahul-singhal_data/kernel-oss-readiness/canonical-license
Nov 24, 2026
Merged

rahuls-db merged 6 commits into
mainfrom
rahul-singhal_data/kernel-oss-readiness/canonical-license

Conversation

@rahuls-db

@rahuls-db rahuls-db commented Nov 24, 2026 •

Copy link
Copy Markdown
Collaborator

Description

Keep the repository's Apache 2.0 license text canonical and place project-specific attribution where downstream consumers expect it. This removes the Apache Arrow ADBC footer from both distributed LICENSE copies, records the upstream attribution in conventional NOTICE files, includes matching legal files in the root and standalone ADBC crate packages, and adds CI protection against content drift and package omission.

Testing

  • Rebased onto latest main and repeated a hidden-file, case-insensitive search; no NOTICE.txt callsites remain.
  • Confirmed both LICENSE files byte-match /usr/share/common-licenses/Apache-2.0 and each other.
  • Confirmed the root and ADBC NOTICE files match.
  • Confirmed cargo package --list --allow-dirty includes LICENSE and NOTICE for both the root and ADBC crates.
  • Ran the CI comparison locally: cmp LICENSE adbc/LICENSE && cmp NOTICE adbc/NOTICE.
  • git diff --check.
  • Databricks commit and push secret scans passed.

Additional notes

No runtime behavior changes.

@rahuls-db
rahuls-db marked this pull request as ready for review November 24, 2026 00:28
@rahuls-db
rahuls-db requested a review from a team as a code owner November 24, 2026 00:28

@oss-reviewer-bot oss-reviewer-bot Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🔀 Cross-reviewed: two independent reviews (Claude Opus 5.5 · GPT-6.1 Sol), checked by a judge model (Claude Sonnet 5.5).

Verdict: 1 Low

Mostly fine, with 1 medium concern. The root crate ships NOTICE.txt by default, so its attribution is preserved. The standalone adbc/ package ships no NOTICE file, so this change drops the Apache Arrow ADBC attribution from it.

Other findings

  • 🔵 Low — The Arrow ADBC attribution moved from adbc/LICENSE to the root NOTICE.txt. The databricks-adbc crate has no NOTICE and its include list ships only /LICENSE, so a packaged crate no longer carries that credit. This is low severity because publish = false and the attribution still exists at the repo root. Add an adbc/NOTICE.txt and list /NOTICE.txt in include, or document that release tooling adds the notice. (Found by Claude Opus 5.5 · confirmed by the judge)

@oss-reviewer-bot oss-reviewer-bot Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🔀 Cross-reviewed: two independent reviews (Claude Opus 5.5 · GPT-6.1 Sol), checked by a judge model (Claude Sonnet 5.5).

Verdict: 1 Low · 1 Nit

Mostly fine: 2 low-severity concerns, both about legal files. The LICENSE files are now canonical Apache 2.0, and the ADBC package now ships a NOTICE file. Neither concern affects runtime behaviour.

Other findings

  • ⚪ Nit — adbc/NOTICE.txt is a hand copy of the root NOTICE.txt. Nothing keeps the two in sync, and the copy leaves out the crate's own Apache-2.0 dependencies adbc_core and adbc_ffi. Add a CI check (for example cmp NOTICE.txt adbc/NOTICE.txt) or generate the file from one source, and list the adbc_* crates. (Found by Claude Opus 5.5 · the judge couldn't confirm it)

Comment thread NOTICE.txt Resolved

@oss-reviewer-bot oss-reviewer-bot Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🔀 Cross-reviewed: two independent reviews (Claude Opus 5.5 · GPT-6.1 Sol), checked by a judge model (Claude Sonnet 5.5).

Verdict: 1 Low

Looks good — 1 low concern. The LICENSE text is now canonical, the ADBC attribution moved into NOTICE correctly, and both the root crate (no include list) and the ADBC crate package NOTICE.

Comment thread adbc/NOTICE Resolved
@rahuls-db rahuls-db changed the title [Kernel OSS Readiness] Keep Apache license text canonical [Kernel OSS Readiness] Canonicalize license and notice files Nov 24, 2026

@oss-reviewer-bot oss-reviewer-bot Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🔀 Cross-reviewed: two independent reviews (Claude Opus 5.5 · GPT-6.1 Sol), checked by a judge model (Claude Sonnet 5.5).

✅ No issues identified.

🔀 1 finding considered and dismissed by the judge
  • 🔵 Low NOTICE:188 — The new Apache Arrow ADBC block says 'Copyright 2022-2026'. The removed LICENSE footer said 2022, and as far as I recall upstream arrow-adbc's NOTICE.txt also s
    Judge's evidence: Copyright 2022-2026 The Apache Software Foundation

@rahuls-db
rahuls-db added this pull request to the merge queue Nov 24, 2026

@aakash-saravanan-db aakash-saravanan-db left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Blocking: this branch predates #496, which added an include allowlist to the root Cargo.toml with "/NOTICE.txt" (line 37 on main). This PR renames the file but doesn't touch that entry, and it merges cleanly, so after merge the root crate ships without a NOTICE. Per #496, maturin applies the same allowlist to the Python sdist, so that loses it too.

I checked with cargo package --list on main merged with this branch (f1bd6aa):

  • root crate: LICENSE, no NOTICE, and cargo prints no warning
  • adbc/ crate: LICENSE and NOTICE, as expected

Fix: rebase onto main and change "/NOTICE.txt" to "/NOTICE" in the root Cargo.toml.

The new cmp step catches the two copies drifting apart, but not a file missing from a package, which is what happens here. A step after setup-rust-toolchain (it needs the registry) would catch that:

cargo package --list --allow-dirty | grep -qx NOTICE
cargo package --list --allow-dirty --manifest-path adbc/Cargo.toml | grep -qx NOTICE

@rahuls-db
rahuls-db removed this pull request from the merge queue due to a manual request Nov 24, 2026
Signed-off-by: Rahul Singhal <rahul.singhal@databricks.com>
Signed-off-by: Rahul Singhal <rahul.singhal@databricks.com>
Signed-off-by: Rahul Singhal <rahul.singhal@databricks.com>
Signed-off-by: Rahul Singhal <rahul.singhal@databricks.com>
Signed-off-by: Rahul Singhal <rahul.singhal@databricks.com>
Signed-off-by: Rahul Singhal <rahul.singhal@databricks.com>

@oss-reviewer-bot oss-reviewer-bot Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🔀 Cross-reviewed: two independent reviews (Claude Opus 5.5 · GPT-6.1 Sol), checked by a judge model (Claude Sonnet 5.5).

Verdict: 1 Nit

Looks good, with one low-severity gap: the new CI step checks that NOTICE is packaged but not LICENSE. The legal files and include lists are consistent, and no NOTICE.txt references remain in the repo.

Other findings

  • ⚪ Nit — The new packaging guard only greps for NOTICE, so dropping /LICENSE from either crate's include list would still pass CI. This gap was there before the PR and is optional hardening. Capture the package list once per crate and grep for both LICENSE and NOTICE. (Found by Claude Opus 5.5 · confirmed by the judge)

@rahuls-db
rahuls-db added this pull request to the merge queue Nov 24, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to no response for status checks Nov 24, 2026
@rahuls-db
rahuls-db added this pull request to the merge queue Nov 24, 2026
Merged via the queue into main with commit 8d88cce Nov 24, 2026
32 of 33 checks passed

This branch was previously deployed

1 inactive deployment
azure-prod — ac0b8b56 Deployed Nov 24, 2026 by rahuls-db via review #1531
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants