ci: skip onnxruntime-node CUDA download in workflows

SA
5d ago
+3-0

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

  • No package source code was modified, so no changeset is required.
  • Verified repository formatting/linting with pnpm lint:ci.
  • Once merged, #1561 and other open PRs can be re-run cleanly.

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.

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.