← Back to Pull requests

Quiet test logs, deprecation warning per module #5355

Closed
unknown closed this pull request without merging on Nov 18, 2026 15:29 UTC
View on GitHub
unknown unknown commented on Nov 17, 2026 01:19 UTC
Author

🤖 AI-assisted, reviewed by Jan

Five independent build/CI changes that take the bulk of the noise out of our test logs. Measured on the parallel-workflow runs of #5354 (7 workflows, 49 forked test JVMs): of 3742 lines in the Gradle-running steps, 1746 were neither task progress nor test results, and 882 of those came from five message families. For :solr:core the non-signal share drops from 57% to roughly 7%.

  • Grant URLPermission by wildcard host. java.net.HostPortrange normalises a numeric IPv4 authority with a Formatter bound to Locale.US, whose %d conversion needs the CLDR locale provider, which cannot load while the policy file is still being parsed. The parser swallows the error, warns, and silently drops the entry, so the five 127.0.0.1 grants were never in effect; the [::1] ones survive only because the IPv6 branch uses %02x. That is JDK-8305346, won't-fix since the security manager goes away in JDK 24. 490 lines across the #5354 runs, ten per forked JVM. No value of java.locale.providers avoids it; a wildcard host parses cleanly and widens nothing, since the SocketPermission grants still confine every connect to loopback.

  • Register JDK events in the test policy. OtelRuntimeJvmMetrics opens a JFR recording stream, and without registerEvent / accessClassInPackage.jdk.{jfr.,}internal.event the JVM logs Could not initialize JDK events. access denied and silently runs without the JFR-sourced jvm.system.cpu.utilization gauge it prefers over JMX. The same three grants are already in solr/server/etc/security.policy.

  • Deprecation warnings on per module. javac's uses or overrides a deprecated API note is mandatory and unsuppressable (-nowarn, -Xlint:none, -Xmaxwarns 0 all keep it). The only cure is to turn the warnings on and have none left, so javac.gradle now keeps a list of clean projects; :solr:api and :solr:solrj are the first two (4 + 9 + 49 warnings fixed or suppressed with a reason). 232 lines on CI; other modules keep the note until cleaned the same way, :solr:core alone has ~332.

  • Cache the Gradle distribution. setup-gradle's gradle-home-cache-includes defaults to caches and notifications, so wrapper/dists was never saved and all 10 jobs re-downloaded the Gradle zip, banner and progress bar included.

  • Move the actions off Node 20. actions/cache v4 and actions/setup-java v4 in the shared composite action were the last two, bumped to the v6 SHAs already used elsewhere in the repo.
  • Reasoning behind silencing the deprecation logs is that we seldom act on those per test run anyway. It is more realiastic to do a targeted effort to fix deprecations once in a while.

    Diff: 343 lines (+257 / -86) across 4 files Reviewer: janhoy Review duration: 2290m
    All Vouch review confidence checks passed
    Residual risk 0.18 = Change Risk (0.42) × (1 − Review Confidence (0.57)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.42 · 343 lines diff across 4 files
    0.42
    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%
    56%
    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.349
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #5355"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 56.8% 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.3% (MEDIUM) · Higher = larger blast radius
    42.3%
    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: 56.8% · Lower = rushed or shallow review
    56.8%
    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: 18.3% · Safe to merge
    18.3%
    Repository