build: only warn about stale licenses.yaml versions in PR CI #20774
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 · 422 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.362
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #20774"
general
weight: 0.35
amaechler
Part of #20732.
Description
Every bump of a bundled dependency fails PR CI until someone edits its version in
licenses.yamlby hand. As proposed on dev@, PR CI now only warns about these versions, and the release build stays strict. The release-guide step that refreshes the versions before each release branch follows in a separate PR, also part of #20732.Warning mode in
check-licenses.pyWith
--stale-versions=warn(the default isfail), a reported dependency becomes a warning instead of an error when:licenses.yamlentry,The warning lists the registered versions and the commands to refresh
licenses.yaml. With the defaultfail, the release build lists the same dependencies as errors with the same commands, rather than as missing licenses.Contributor docs
dev/license.mdnow says what PR CI does when a contributor leaves a version as it is.<details>
<summary>How it was checked</summary>
test_check_licenses.py, which theapache-releasebuild runs:- a bumped version warns, including when another registered version still ships;
- each of these fails: an unregistered dependency, a changed license, an unknown reported license, registered versions with mixed licenses, a registered version that still ships, and an old version registered only under an excluded module while the new one ships in the release;
- one end-to-end
check_licenses()run per mode.licenses.yamlmade stale by hand (OSHI 7.7.1 to 7.7.0, snappy-java 1.1.10.12 to 1.1.10.11):-
failexits 1 and lists the 3 as stale versions with the refresh commands, andwarnexits 0 with the same 3 as warnings;- with the OSHI license also changed,
warnexits 1 on OSHI and still warns on snappy-java;- with snappy-java not registered at all,
warnexits 1;-
refresh-license-versions.pythen updates exactly those 2 entries, andfailpasses again../mvnw -pl distribution -Papache-release exec:exec@check-licenseson a stale version fails by default and passes with-Ddruid.distribution.licenses.staleVersions=warn.licenses.yamledits:-
failreports caffeine 3.3.1, hibernate-validator 9.1.5.Final and xz 1.12.-
warnwarns on the first two and still fails on xz, whose license changed from Public Domain to 0BSD in 1.12.- #20765 keeps
license_name: Public Domainfor xz 1.12. Master passed it because its check did not know the name0BSD; #20764 added that name and registered xz 1.12 underZero-Clause BSD.</details>
<hr>
This PR has: