← Back to Pull requests

Build Databricks directly against /databricks/jars [databricks] #16420

Closed
unknown closed this pull request without merging on Oct 23, 2026 09:21 UTC
View on GitHub
unknown unknown commented on Oct 19, 2026 17:33 UTC
Author

Contributes to #12820. Supersedes #12775.

Description

  • Add build/gen-spark-home-deps.py. It generates a pom from shim-deps/databricks/pom.xml.template that lists every jar in /databricks/jars as a system-scoped dependency.

  • jenkins/databricks/build.sh runs the script instead of install_deps.py, which is deleted.

  • Delete the committed Databricks dependency poms. The generated poms are gitignored.

  • Remove the per-runtime Databricks profiles from shim-deps/pom.xml.

  • Modules that declared Spark directly now inherit it from shim-deps-parent, which iceberg-stub now uses as its parent.

  • integration_tests skips copying spark-avro on Databricks.
  • A follow-up PR will extend this to any $SPARK_HOME and close #12820.

    Testing

  • Ran jenkins/databricks/build.sh on a DBR 17.3 node. The build passed and produced the two-shim dist jar.

  • Ran jenkins/databricks/build.sh on a DBR 18.3 node. The build passed.

  • OSS builds for Spark 3.3.0 (Scala 2.12) and 4.0.0 (Scala 2.13) build the changed modules and resolve the same Spark artifacts.

  • [databricks] pre-merge CI.
  • 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

  • (Please provide the names of the existing tests in the PR description.)
  • Not required
  • Existing coverage: the Databricks pre-merge build and integration tests (jenkins/databricks/build.sh, jenkins/databricks/test.sh).

    Performance

  • Tests ran and results are added in the PR description

  • Issue filed with a link in the PR description

  • Not required
  • Not required: only build-time dependency declarations change. The plugin compiles against the same runtime jars.

    This PR was prepared with AI assistance (Claude Code) and reviewed by a human before opening.

    🤖 Generated with Claude Code

    Diff: 253 lines (+189 / -64) across 3 files Reviewer: gerashegalov Review duration: 5268m
    All Vouch review confidence checks passed
    Residual risk 0.15 = Change Risk (0.39) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.39 · 253 lines diff across 3 files
    0.39
    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.331
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #16420"
    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: 39.1% (MEDIUM) · Higher = larger blast radius
    39.1%
    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: 15.4% · Safe to merge
    15.4%