← Back to Pull requests

fix: build vNPU artifacts for each plugin image architecture #153

Open
unknown opened this pull request with 254 lines diff across 3 files
View on GitHub
unknown unknown commented on Nov 12, 2026 04:58 UTC
Author

What type of PR is this?

Bug fix

What this PR does / why we need it:

The AMD64 image currently downloads the ARM64 vNPU bundle. Its checksum is valid, so CI can publish an AMD64 plugin containing an AArch64 preload library.

Build the pinned core on native AMD64 and ARM64 runners, upload architecture-qualified artifacts, and download the matching bundle in each image leg. Keep checksum, ELF machine and build-provenance validation directly in the existing CI steps. Update the English/Chinese READMEs and HAMi/Volcano guides to describe the matching platform builds.

Which issue(s) this PR fixes:

Fixes #152

Special notes for your reviewer:

  • Simplified per review feedback: artifact verification lives in CI, and the newly introduced verification scripts and unit tests have been removed.

  • actionlint (ShellCheck integration disabled) and whitespace checks pass, preserving the READMEs' existing CRLF endings.

  • Executed the exact inline CI validation against genuine AMD64 and ARM64 artifacts from this PR's successful build of pinned core 591cfdd. Both matching targets pass. An ARM64 bundle with valid checksums is rejected for the AMD64 target.

  • The local checksum command in the updated build documentation also passes.
  • Does this PR introduce a user-facing change?:

    AMD64 images receive an AMD64 libvnpu.so; mismatched architecture or provenance fails validation before image construction.

    AI Disclosure:

    AI assistance was used for diagnosis, implementation and validation.

    <!-- This is an auto-generated comment: release notes by coderabbit.ai -->

    <!-- coderabbit-ai-generated:v1 -->

    Summary by CodeRabbit

    New Features
    VNPU support now includes Linux AMD64 alongside ARM64, with plugin images using the matching architecture’s library.
    Documentation
    Updated build and deployment guidance for selecting an architecture and verifying artifacts. ENPU runtime assets remain ARM64-only.

    <!-- end of auto-generated comment: release notes by coderabbit.ai -->

    Diff: 254 lines (+190 / -64) across 3 files Reviewer: spencercjh Review duration: 29163m
    All Vouch review confidence checks passed
    Residual risk 0.22 = Change Risk (0.39) × (1 − Review Confidence (0.43)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.39 · 254 lines diff across 3 files
    0.39
    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%
    42%
    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
    Shallow Review Depth shallow_review_depth
    0.344
    Diff Size diff_size
    0.332
    Real PR Conversation Timeline
    1 comments
    "Review active on #153"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 43.0% 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: 43.0% · Lower = rushed or shallow review
    43.0%
    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: 22.3% · Safe to merge
    22.3%