← Back to Pull requests

Verify every native chunk manifest in the distribution JAR [databricks] #17017

Closed
unknown closed this pull request without merging on Nov 20, 2026 01:50 UTC
View on GitHub
unknown unknown commented on Nov 18, 2026 19:00 UTC
Author

Related: #16687, NVIDIA/cudf#24904. Follow-up to #16687; no issue is fixed by this PR.

Description

  • The dist verify-native-library-chunks check now verifies every *.chunks.properties manifest in the distribution JAR, including zstd chunks copied from the JNI JAR. Each library must have a complete chunk set whose uncompressed sizes and CRC32 values match; zstd chunks are decompressed with zstd-jni. Chunk entries not described by a manifest, and unsupported chunk.compression values, fail the build.

  • The check runs whether or not the dist build created chunks itself; previously it ran only in that case, so copied JNI chunks were verified only indirectly by the extract cudf smoke test.

  • The zstd-jni version used for verification and extraction comes from a new zstd-jni.version property instead of a hard-coded value.

  • New Jython tests run in the same dist execution before the verifier and cover passing and rejected JARs, including orphan chunks, unsupported compression, wrong CRCs and corrupt zstd data.

  • The distribution JAR tool page documents that zstd-jni must be able to load its native library when cuDF native code first loads, and how to point it at an executable directory.
  • Validation: The 16 verifier tests pass under Jython with zstd-jni 1.5.6-6 and 1.5.2-1, and fail when any verifier check is disabled. Maven antrun:run@verify-native-library-chunks passed in both Scala builds on a #16687 dist JAR (tests, then 1 library and 42 zstd chunks verified in about 2 s). A full dist build has not run locally. In CI the check runs in Blossom premerge mvn verify and the GitHub Actions verify-all-212-modules, verify-213-modules and install-modules jobs; Databricks CI only packages the dist module and does not run it.

    AI assistance was used.

    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
  • Performance

  • Tests ran and results are added in the PR description

  • Issue filed with a link in the PR description

  • Not required
  • Build-time only: the verify phase spends about 2 s decompressing the chunks and under 1 s running the tests; runtime plugin behavior is unchanged.

    🤖 Generated with Claude Code

    Diff: 308 lines (+231 / -77) across 3 files Reviewer: gerashegalov Review duration: 1849m
    All Vouch review confidence checks passed
    Residual risk 0.16 = Change Risk (0.40) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.40 · 308 lines diff across 3 files
    0.40
    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.343
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #17017"
    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: 40.2% (MEDIUM) · Higher = larger blast radius
    40.2%
    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.9% · Safe to merge
    15.9%