Skip to content

fix(release): skip the onnxruntime-node CUDA download before every pnpm install - #1035

Merged
krisztian-gajdar merged 1 commit into
mainfrom
fix/pnpm-native-deps-onnxruntime-skip
Nov 27, 2026
Merged

krisztian-gajdar merged 1 commit into
mainfrom
fix/pnpm-native-deps-onnxruntime-skip

Conversation

@krisztian-gajdar

@krisztian-gajdar krisztian-gajdar commented Nov 27, 2026 •

Copy link
Copy Markdown
Contributor

The npm build of the v0.11.2 release failed in pnpm install (run 45956308465, job npm / build):

onnxruntime-node postinstall: Error: Failed to download the binaries: 404 Not Found.

onnxruntime-node 1.21.0, a dependency of @huggingface/transformers, downloads CUDA provider binaries from a microsoft/onnxruntime GitHub release on every Linux x64 install. That repository and its release assets now return 404. ci.yml and real-models.yml (#1004) already set ONNXRUNTIME_NODE_INSTALL_CUDA=skip, but only for their own jobs. A reusable workflow such as release-npm.yml does not inherit the caller's env. Pull-request builds of release-npm.yml restore a cached workspace and skip the install, so only release builds, which start from an empty tree, hit the download.

Change

  • tools/ci/pnpm_native_deps.bash already runs before every pnpm install in CI and release builds, and test_pnpm_installs_prepare_local_native_builds enforces that order. It now writes ONNXRUNTIME_NODE_INSTALL_CUDA=skip to GITHUB_ENV, so every later install step skips the download.
  • The same test asserts the export.

Validation

  • On linux/amd64 (node:24-bookworm-slim), npm install onnxruntime-node@1.21.0 fails with the same 404. With ONNXRUNTIME_NODE_INSTALL_CUDA=skip it installs and require("onnxruntime-node") loads.
  • tools/ci/tests/test_required_ci.py: 133 passed.

Release

A failed-job retry on the v0.11.2 run reuses that tag's workflow files, so it cannot pick up this fix. As a fix: commit, this lets release-please cut 0.11.3 with the same content as 0.11.2. No 0.11.2 package was published, because artifacts-ready requires every artifact family before publication.

Summary by CodeRabbit

  • CI Improvements
    • CI runners now skip downloading ONNX Runtime CUDA provider binaries when configuring native dependencies, avoiding unnecessary GPU-related downloads.

…pm install

onnxruntime-node 1.21.0 downloads CUDA provider binaries from a GitHub release on every Linux x64 install. That release now answers 404, so the npm build of the v0.11.2 release failed in pnpm install. Pull-request builds restore a cached workspace and skip the install, and ci.yml sets ONNXRUNTIME_NODE_INSTALL_CUDA only for its own jobs, not for the reusable workflows it calls.

pnpm_native_deps.bash runs before every pnpm install in CI and release builds, so it now exports the skip for the steps that follow.
@krisztian-gajdar
krisztian-gajdar requested a review from a team as a code owner November 27, 2026 07:16
@coderabbitai

coderabbitai Bot commented Nov 27, 2026 •

Copy link
Copy Markdown

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The native dependency script documents the onnxruntime-node CUDA provider download and writes ONNXRUNTIME_NODE_INSTALL_CUDA=skip to $GITHUB_ENV when that variable is nonempty. A test checks the setting.

Changes: CI native dependencies

Layer / File(s) Summary
Set and verify the CUDA skip setting
tools/ci/pnpm_native_deps.bash, tools/ci/tests/test_required_ci.py
The script documents the Linux x64 CUDA provider download and writes ONNXRUNTIME_NODE_INSTALL_CUDA=skip to $GITHUB_ENV when it is nonempty. The test checks for this setting.

Possibly related PRs

  • superlinked/sie#922: This PR introduced the same setting in ci.yml, based on the description in PR #1004.
  • superlinked/sie#1004: This PR sets the same variable in real-models.yml to avoid the onnxruntime-node CUDA download error during pnpm install.

Suggested reviewers: shaishmuel, mamayer19

Merge Risk: Minimal · up to 653dc

This change makes CI and release builds skip the onnxruntime-node CUDA download, which currently returns 404 on Linux x64 and breaks the npm build. The setting matches what the installer reads and is applied before each pnpm install, so no merge-blocking risk remains.

Pre-merge checks: Passed 4

Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title names the main change: the script now skips the onnxruntime-node CUDA download before pnpm installs. The raw summary confirms the export of ONNXRUNTIME_NODE_INSTALL_CUDA=skip in pnpm_native_…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title names the main change: the script now skips the onnxruntime-node CUDA download before pnpm installs. The raw summary confirms the export of ONNXRUNTIME_NODE_INSTALL_CUDA=skip in pnpm_native_deps.bash and the matching test assertion. The title uses a conventional fix(release) prefix, which fits the stated objective of a release build fix. The title is 79 characters, slightly over a short headline, but it is still specific and clear.

Finishing Touches

Generate unit tests (beta)

  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Team
  • Run ID: be718e08-7b6e-41ec-86b6-16a1d37af6dd
Commits

Reviewing files that changed from the base of the PR and between 2174a96 and 653dcbd.

Files selected for processing: 2

  • tools/ci/pnpm_native_deps.bash
  • tools/ci/tests/test_required_ci.py

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 7 remain after this review.

@krisztian-gajdar
krisztian-gajdar added this pull request to the merge queue Nov 27, 2026
Merged via the queue into main with commit 4b8a540 Nov 27, 2026
46 checks passed
@krisztian-gajdar
krisztian-gajdar deleted the fix/pnpm-native-deps-onnxruntime-skip branch November 27, 2026 08:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant