← Back to Pull requests

Use shared shim source inheritance in public builds [databricks] #16595

Open
unknown opened this pull request with 319 lines diff across 3 files
View on GitHub
unknown unknown commented on Oct 26, 2026 08:03 UTC
Author

Related to #15923.

Description

  • Select shim sources through an explicit parent graph and the nearest applicable source variant while keeping build versions, generated identities, dependencies, and runtime validation unchanged.

  • Use one canonical source selector with a spark list and carryForward set to none, sameMinor, or all.

  • Replace legacy Shimplify mutation commands with generation-only source materialization.

  • Vendor the shared source-selection tools from merged spark-rapids-common PR #64 at commit 2dab44f16f04e96471f6ab63d86fd2495f54bf5c. All four vendored modules are byte-identical to that commit; generation remains offline.

  • Validate profile identity and generated-output paths before removing previous output.

  • Add resolver, annotation, provenance, source-set equivalence, and build integration tests.
  • Prepared with AI assistance and reviewed by the author before publication.

    Remaining before ready for review:

  • Shared source PR #64 merged; verify and record its merged commit.

  • Resolve current-main conflicts and revalidate the bounded multi-shim matrix.

  • Address four open selector-minimization review threads.
  • Validation:

  • 39 focused Shimpler source tests pass.

  • Exact comparison found zero mismatches across 10,508 source selections, seven Maven shim modules, and both Scala profile graphs.

  • Shim compatibility coverage passes for 3,839 requirements with no findings.

  • Maven/Jython generation for Spark 330 generated 168 sources and compiled 546 Scala and 12 Java sources.

  • Clean Scala 2.12 multi-shim distribution builds pass for 334, 344, and 359.

  • Clean Scala 2.13 multi-shim distribution builds pass for 359, 404, 413, and 420.

  • Package-private and assembled-world audits pass for both Scala versions.

  • All-module Scalastyle passes for both Scala versions.

  • Spark 500's shim JAR compiles, but the full Spark 500 build remains blocked by an unrelated compile error in unchanged GpuJsonScan.scala.
  • Checklists

    Documentation

  • Updated for new or modified user-facing features or behaviors

  • No user-facing change
  • Testing

  • Added or modified tests to cover new code paths

  • Covered by existing tests

  • Not required
  • Performance

  • Tests ran and results are added in the PR description

  • Issue filed with a link in the PR description

  • Not required
  • Performance measurements are not required because this changes build-time source selection while preserving the selected source sets.

    Diff: 319 lines (+239 / -80) across 3 files Reviewer: gerashegalov Review duration: 8949m
    All Vouch review confidence checks passed
    Residual risk 0.22 = Change Risk (0.40) × (1 − Review Confidence (0.47)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.40 · 319 lines diff across 3 files
    0.40
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.02 · 1 substantive comment(s)
    0.02
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    46%
    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.345
    Shallow Review Depth shallow_review_depth
    0.344
    Real PR Conversation Timeline
    1 comments
    "Review active on #16595"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 46.7% 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: 40.4% (MEDIUM) · Higher = larger blast radius
    40.4%
    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: 46.7% · Lower = rushed or shallow review
    46.7%
    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: 21.6% · Safe to merge
    21.6%