← Back to Pull requests

Harden shim source generation and restore test coverage [databricks] #16732

Closed
unknown closed this pull request without merging on Nov 10, 2026 02:09 UTC
View on GitHub
unknown unknown commented on Nov 04, 2026 07:29 UTC
Author

Related to #16730.

Description

  • Clear shim-source cache markers before regeneration in both Scala POMs, so a failed generation cannot leave a valid cache hit.

  • Assert representative logical-to-provider source maps without blocking ordinary new source files. Restore seven test suites for later Spark 4.x and Spark 5.0 targets.

  • Shorten equivalent source selectors while preserving production source selection across supported profiles.
  • Prepared with AI assistance and reviewed by the author before publication.

    Validation: 43 focused Shimpler tests pass. The Spark 4.0 ORC fallback test executes and passes; Spark 4.2 local runtime validation was blocked by mismatched generated/JNI dependencies. The clean bounded multi-shim distributions below passed on the prior PR commit; this follow-up changes tests only. Clean bounded multi-shim distributions pass for Scala 2.12 (330/359) and Scala 2.13 (400/413/420); root/shared/nested class overlap checks pass. The committed-head compatibility check passes for 32 build versions with no new findings. Spark 500 compilation remains blocked by unchanged GpuJsonScan.scala errors in the base, so that target has source-selection coverage but no successful compile in this PR.

    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
  • Runtime performance measurements are not required: production source maps are unchanged, and the changed behavior is build-time cache recovery and test-source selection.

    Diff: 223 lines (+167 / -56) across 2 files Reviewer: gerashegalov Review duration: 8319m
    All Vouch review confidence checks passed
    Residual risk 0.15 = Change Risk (0.37) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.37 · 223 lines diff across 2 files
    0.37
    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.324
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #16732"
    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: 36.8% (MEDIUM) · Higher = larger blast radius
    36.8%
    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: 14.5% · Safe to merge
    14.5%