← Back to Pull requests

Skip jextract binding generation by default #716

Closed
unknown closed this pull request without merging on Sep 04, 2026 17:29 UTC
View on GitHub
unknown unknown commented on Aug 25, 2026 16:08 UTC
Author

Description


Modify the process by which maven builds the native SIMD library so that bindings are not generated by default.

Motivation


The existing build process re-generates the bindings on each build as long as jextract is in the path. This can cause issues since the jextract version on the system may not match the jextract version used to generate the checked-in bindings. This not only creates noise in the git working tree, but can also cause build errors since newer jextract releases may use language features from newer JDKs.

Changes made:


  • Split the jextract_vector_simd.sh script into two scripts, one which builds the native library and the other which generates bindings using jextract.

  • The binding generation script is added to the pom, but is skipped by default.

  • Warn if the jextract version found doesn't match the expected jextract version.

  • In case multiple versions of jextract are present on the system, you can specify which one to use via an environment variable.
  • Additional information


    The attached release notes describe the expected usage pattern.

    Example of the kind of error that I observed on my system which had jextract 25 installed:

    [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.11.0:compile (default-compile) on project jvector-native: Compilation failure: Compilation failure: 
    [ERROR] /path/tojvector/jvector-native/src/main/java/io/github/jbellis/jvector/vector/cnative/NativeSimdOps.java:[1135,63] cannot find symbol
    [ERROR]   symbol:   method findOrThrow(java.lang.String)
    [ERROR]   location: variable SYMBOL_LOOKUP of type java.lang.foreign.SymbolLookup
    (... more instances of the same error)
    

    Diff: 216 lines (+162 / -54) across 2 files Reviewer: r-devulap Review duration: 14480m
    All Vouch review confidence checks passed
    Residual risk 0.14 = 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 · 216 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.322
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #716"
    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.6% (MEDIUM) · Higher = larger blast radius
    36.6%
    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%