Skip to content

ci: skip onnxruntime-node CUDA download in workflows - #1563

Open
SanemIzci wants to merge 1 commit into
VoltAgent:mainfrom
SanemIzci:ci/skip-onnxruntime-cuda-download
Open

SanemIzci wants to merge 1 commit into
VoltAgent:mainfrom
SanemIzci:ci/skip-onnxruntime-cuda-download

Conversation

@SanemIzci

@SanemIzci SanemIzci commented Nov 23, 2026 •

Copy link
Copy Markdown

PR Checklist

Please check if your PR fulfills the following requirements:

Bugs / Features

What is the current behavior?

On Linux x64 GitHub Actions runners (ubuntu-latest), fresh pnpm install runs fail because onnxruntime-node@1.21.0 (pulled transitively via examples/with-chroma -> @chroma-core/default-embed -> @huggingface/transformers) attempts to download CUDA binaries in its postinstall script:

Downloading "https://github.com/microsoft/onnxruntime/releases/download/v1.21.0/onnxruntime-linux-x64-gpu-1.21.0.tgz"...
Error: Failed to download the binaries: 404 Not Found.
Use "--onnxruntime-node-install-cuda=skip" to skip the installation.

Why this worked in earlier runs and started failing now:
Previously, CI runs hit a warm GitHub Actions pnpm cache (reused 3823, downloaded 0), so the postinstall script did not need to execute from scratch. Once the 7-day unused cache expired, subsequent runs hit a cache miss (reused 0, downloaded 3823), triggering onnxruntime-node's postinstall against the now-404 release asset and failing before any new cache could be saved (observed in #1561).

What is the new behavior?

Sets ONNXRUNTIME_NODE_INSTALL_CUDA: "skip" alongside PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD: "1" in .github/workflows/pull-request.yml, .github/workflows/prerelease.yml, and .github/workflows/release.yml.

GitHub-hosted ubuntu-latest runners do not have NVIDIA GPUs (nvcc is not installed), and onnxruntime-node already ships CPU binaries in the npm package, so skipping the optional CUDA download unblocks pnpm install across CI without affecting any package or test.

Notes for reviewers


Summary by cubic

Skips the onnxruntime-node CUDA binary download in CI so fresh pnpm install runs no longer fail. The install previously tried to fetch CUDA binaries from a GitHub release asset that returns 404; skipping is safe because GitHub-hosted ubuntu-latest runners have no NVIDIA GPUs and the npm package includes CPU binaries.

Written for commit a320744. Summary will update on new commits.

View guided diff

Summary by CodeRabbit

  • Chores
    • Updated prerelease, pull-request, and release automation to skip CUDA installation during ONNX Runtime Node setup.
    • The same setting is now applied consistently across all three workflows. This change affects the automated build and release processes; no user-facing features or behavior are described in the provided summary.

@changeset-bot

changeset-bot Bot commented Nov 23, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: a320744

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@coderabbitai

coderabbitai Bot commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The pull-request, prerelease, and release workflows now set ONNXRUNTIME_NODE_INSTALL_CUDA to "skip".

Changes: Workflow environment settings

Layer / File(s) Summary
Set the CUDA install setting
.github/workflows/pull-request.yml, .github/workflows/prerelease.yml, .github/workflows/release.yml
Each workflow sets ONNXRUNTIME_NODE_INSTALL_CUDA to "skip".

Estimated code review effort: 1 (Trivial) | ~3 minutes

Change: Bug fix

Suggested reviewers: omeraplak

Merge Risk: Minimal · up to a3207

This change skips the optional CUDA binary download during CI installs. The CPU binaries ship in the npm package, so CI and releases are unaffected. No actionable merge risk remains.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title names the main change: adding ONNXRUNTIME_NODE_INSTALL_CUDA set to skip in CI workflows so the onnxruntime-node CUDA download is skipped. It is short, specific, and follows a conventional co…
Description check Passed The description follows the repository template. It includes the PR checklist, the bugs/features checklist, current behavior, new behavior, and reviewer notes. It explains the failure cause with error…
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: adding ONNXRUNTIME_NODE_INSTALL_CUDA set to skip in CI workflows so the onnxruntime-node CUDA download is skipped. It is short, specific, and follows a conventional commit prefix. Scope matches the three workflow files in the raw summary and the objectives.

Full details: Description check

Explanation

The description follows the repository template. It includes the PR checklist, the bugs/features checklist, current behavior, new behavior, and reviewer notes. It explains the failure cause with error output and gives the fix across the three workflows. Gaps: the related issue is not linked (the description refers to #1561 without a 'fixes' link), no tests were added (the author states none apply), and the docs and changeset items are unchecked with a reason given for no changeset. The 'fixes (issue)' line in the template was left unfilled. These are minor and do not block the check.

Finishing Touches

Generate unit tests (beta)

  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 73475adb-89ef-4c85-8516-1982ecb2cfd9
Commits

Reviewing files that changed from the base of the PR and between e9fc599 and a320744.

Files selected for processing: 3

  • .github/workflows/prerelease.yml
  • .github/workflows/pull-request.yml
  • .github/workflows/release.yml

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

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 3 files

View guided diff | Re-trigger cubic

This branch has not been deployed

No deployments
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