fix: include licenses for bundled lz4_flex and Zstandard #7382
All Vouch review confidence checks passed
Residual risk 0.18 = Change Risk (0.45) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.45 · 429 lines diff across 5 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.363
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #7382"
general
weight: 0.35
sunchao
Which issue does this PR close?
No separate issue. This addresses two native binary licensing omissions found while verifying 1.2.0-rc1.
Rationale for this change
The 1.2.0-rc1 JARs bundle lz4_flex and Zstandard code through libcomet, but their license and copyright texts are absent from the JAR legal resources.
What changes are included in this PR?
native/Cargo.lock. The sources-JAR path is configurable throughcomet.spark.sources.jar; an expected missing JAR fails explicitly, whilemaven.source.skip=trueintentionally skips its verification. The checker lists each JAR once for all its checks and fails explicitly if a JAR cannot be listed.This fixes the two confirmed omissions. It does not claim a complete audit of every bundled native dependency. The remaining audit is tracked in #7383.
How are these changes tested?
dev/ci/test-jar-contents.pyhas 14 tests against real ZIP files. They run in Preflight, which passed at75e0bb448. They cover valid main and sources JARs; non-native JARs, which keep their own legal resources; missing, duplicate and truncated LICENSE entries; a LICENSE without the native attributions, the omission in 1.2.0-rc1; each upstream copyright line removed; lz4_flex or Zstandard versions innative/Cargo.lockthat differ from the LICENSE; missing, ambiguous or unparseable lock versions; a missing sources JAR, with and withoutmaven.source.skip; a JAR that cannot be listed; a listing larger than a pipe buffer; and the source-only allowlist in both artifact roles. Breaking each check in the script fails the tests written for it.Cargo.lock, so an unrelated dependency bump does not break them.test_license_matches_cargo_lockreads the repository's lock file on purpose: a bump of lz4_flex, or of zstd-sys to a new Zstandard release, fails Preflight untilLICENSE-binary.txtis updated.clean verify -DskipTestspassed with real macOS native payloads, as did incremental Spark 4.1 packaging. All four main/sources JARs have exactly one matching LICENSE and the unchanged project NOTICE. Committed-source Apache RAT and formatting passed.82b1ed3ba615997d4f2a77b301104ded557c794fon attempt 1: 23 successful jobs, 18 skipped and no failures. Native build, Clippy, Rust tests (2,732 default; 15 Python-UDF; five jemalloc), all four Spark 4.1 shards (5,531 passed; 31 canceled; 18 ignored), TPC-H/TPC-DS result verification, and real Linux main/sources JAR license checks passed.