Skip to content

ci(bump-xdna): skip the scheduled XDNA bump while the shipped build is ONEBIT_NPU_RUNTIME=own - #368

Merged
bong-water-water-bong merged 1 commit into
mainfrom
ci/xdna-bump-behind-runtime-switch
Oct 9, 2026
Merged

bong-water-water-bong merged 1 commit into
mainfrom
ci/xdna-bump-behind-runtime-switch

Conversation

@bong-water-water-bong

Copy link
Copy Markdown
Collaborator

Owner, 9 Oct: keep the runtime private, put the XDNA bump behind the switch.

Only an xrt build needs XRT (#367). The repository variable ONEBIT_NPU_RUNTIME mirrors the build we ship: while it is own, the scheduled bump-xdna job is skipped and the xdna-driver pin stays where it is (it is then a kernel-module pin only; the module comes from the pinned kernel build). A manual workflow_dispatch always runs. Setting the variable to xrt, or unsetting it, resumes the daily bump. Documented in docs/npu.md under "Keeping current" and in the runtime section.

The variable is set to own on this repository alongside this PR. Workflow and docs only; no code or pin change.

🤖 Generated with Claude Code

…s ONEBIT_NPU_RUNTIME=own

Only an xrt build needs XRT (#367). The repository variable
ONEBIT_NPU_RUNTIME mirrors the build we ship: while it is "own" the daily
bump is skipped and the xdna-driver pin stays where it is (it is then a
kernel-module pin only). A manual workflow_dispatch still runs, and setting
the variable to "xrt" (or unsetting it) resumes the daily bump. docs/npu.md
says so in "Keeping current" and in the runtime section.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
@github-actions

github-actions Bot commented Oct 9, 2026

Copy link
Copy Markdown

PR Reviewer Guide 🔍

Here are some key observations to aid the review process:

🎫 Ticket compliance analysis 🔶

367 - Partially compliant

Compliant requirements:

  • Build option for selecting NPU runtime implemented
  • Support for both xrt and own runtimes added
  • Shim header npu/rt.h created to abstract runtime selection
  • Tests added for runtime option and shim compilation
  • Documentation updated in docs/npu.md
  • Performance and correctness verified for both runtimes

Non-compliant requirements:

  • The PR does not include the actual runtime code (npu_rt.h, npu_rt.cpp) or the private add-on directory
  • The PR does not include the actual implementation of the own runtime in npu/rt.h or npu_rt.cpp

Requires further human verification:

  • Verification that the own runtime build correctly links against the private runtime instead of XRT
  • Confirmation that the performance and correctness claims in the ticket description are accurate
  • Validation that the npu/rt.h shim correctly routes calls to the appropriate runtime
⏱️ Estimated effort to review: 3 🔵🔵🔵⚪⚪
🧪 PR contains tests
🔒 No security concerns identified
⚡ Recommended focus areas for review

Conditional Workflow Execution

The workflow now conditionally skips execution based on the ONEBIT_NPU_RUNTIME variable. This is a good approach to avoid unnecessary XDNA bumps when using the own runtime. However, it's important to ensure that this condition is properly tested and that the manual workflow_dispatch always runs regardless of the runtime setting.

if: ${{ github.event_name == 'workflow_dispatch' || vars.ONEBIT_NPU_RUNTIME != 'own' }}
Documentation Clarity

The documentation updates clarify the behavior of the XDNA bump when using the own runtime. However, it's important to ensure that all relevant sections are updated consistently and that the explanation of the relationship between the repository variable and the XDNA bump is clear and accurate.

With `own` as the shipped build, the daily XDNA bump is skipped (repository variable `ONEBIT_NPU_RUNTIME=own`, see "Keeping current" above); the xdna-driver pin is then a kernel-module pin only.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant