You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
ci: skip onnxruntime-node CUDA download in workflows - #1563
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
No package source code was modified, so no changeset is required.
Verified repository formatting/linting with pnpm lint:ci.
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.
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.
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
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: 4
Check name
Status
Explanation
Title check
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
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
Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check
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.
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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), freshpnpm installruns fail becauseonnxruntime-node@1.21.0(pulled transitively viaexamples/with-chroma->@chroma-core/default-embed->@huggingface/transformers) attempts to download CUDA binaries in itspostinstallscript: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 thepostinstallscript did not need to execute from scratch. Once the 7-day unused cache expired, subsequent runs hit a cache miss (reused 0, downloaded 3823), triggeringonnxruntime-node'spostinstallagainst 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"alongsidePLAYWRIGHT_SKIP_BROWSER_DOWNLOAD: "1"in.github/workflows/pull-request.yml,.github/workflows/prerelease.yml, and.github/workflows/release.yml.GitHub-hosted
ubuntu-latestrunners do not have NVIDIA GPUs (nvccis not installed), andonnxruntime-nodealready ships CPU binaries in the npm package, so skipping the optional CUDA download unblockspnpm installacross CI without affecting any package or test.Notes for reviewers
pnpm lint:ci.Summary by cubic
Skips the
onnxruntime-nodeCUDA binary download in CI so freshpnpm installruns no longer fail. The install previously tried to fetch CUDA binaries from a GitHub release asset that returns 404; skipping is safe because GitHub-hostedubuntu-latestrunners have no NVIDIA GPUs and the npm package includes CPU binaries.Written for commit a320744. Summary will update on new commits.
Summary by CodeRabbit