← Back to Pull requests

fix: correct per-module versions in licenses.yaml #20737

Closed
unknown closed this pull request without merging on Oct 28, 2026 02:48 UTC
View on GitHub
unknown unknown commented on Oct 26, 2026 17:13 UTC
Author

Part of #20732.

Description

Several licenses.yaml entries list a version their module no longer ships, so the binary LICENSE shows the wrong version for those jars. check-licenses.py does not catch this because it matches (groupId, artifactId, version) across all modules: if any module registers the shipped version, the stale entry passes.

I found these with the refresh script from #20736, which matches each entry against its own module's dependency report. I then checked every change against the jars in a locally built binary distribution (-Pdist), including the shaded jar of druid-protobuf-extensions.

Version updates

| Module | Library | Was | Ships |
| --- | --- | --- | --- |
| druid-kubernetes-extensions | commons-collections4 | 4.4 | 4.6.0 |
| druid-kubernetes-extensions | gson | 2.8.6 | 2.14.0 |
| druid-avro-extensions | gson | 2.3.1 | 2.14.0 |
| druid-protobuf-extensions | gson (shaded) | 2.8.9 | 2.14.0 |
| druid-hdfs-storage | hadoop-client-api | 3.3.6 | 3.5.0 |
| java-core | protobuf-java | 4.36.0 | 4.36.2 |

Entries restructured

  • eventstream: lib/ ships eventstream-1.0.1.jar, but the "AWS SDK for Java 2" entry listed it at the SDK version (2.55.6). It now has its own java-core entry at 1.0.1, like the existing one for druid-s3-extensions.

  • Avro in druid-avro-extensions: the extension ships avro-1.12.2.jar only. The entry was at 1.11.5 and also listed avro-mapred, avro-ipc and avro-ipc-jetty, which are not bundled, so those libraries and their notices are removed.

  • Kafka in druid-avro-extensions: there were two kafka-clients entries (6.2.12-ccs and 5.5.1-ccs), and the extension ships 8.3.2-ccs. One entry is updated and the other removed.

  • Netty in java-core: the entry also listed netty-codec-classes-quic, which is not bundled and no POM references, so it is removed. Otherwise the refresh script would flag every Netty bump for a manual edit.
  • Checks

  • check-licenses.py passes, and its "unchecked" warnings drop from 158 to 144.

  • The refresh script reports nothing left to update.

  • generate-binary-license.py and generate-binary-notice.py run cleanly. The generated files show the new versions, and the NOTICE no longer carries the avro-mapred notice.
  • Not in this PR: 24 older entries whose libraries now ship only at versions other entries register, for example a second swagger-annotations entry at 1.6.11 in druid-kubernetes-extensions, or Guava 32.1.3-jre next to the current Guava entry in java-core. check-licenses.py reports these as unchecked; removing them is a separate cleanup.

    <hr>

    This PR has:

  • been self-reviewed.

  • added or updated version, license, or notice information in licenses.yaml
  • Diff: 355 lines (+266 / -89) across 4 files Reviewer: amaechler Review duration: 2014m
    All Vouch review confidence checks passed
    Residual risk 0.17 = Change Risk (0.43) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.43 · 355 lines diff across 4 files
    0.43
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.17 · 1 substantive comment(s)
    0.17
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    60%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    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.351
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #20737"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 60.5% reviewed
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 42.5% (MEDIUM) · Higher = larger blast radius
    42.5%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 60.5% · Lower = rushed or shallow review
    60.5%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 16.8% · Safe to merge
    16.8%
    Repository