Repository navigation
fix(release): skip the onnxruntime-node CUDA download before every pnpm install - #1035
Conversation
…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.
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
The npm build of the v0.11.2 release failed in
pnpm install(run 45956308465, jobnpm / build):onnxruntime-node1.21.0, a dependency of@huggingface/transformers, downloads CUDA provider binaries from amicrosoft/onnxruntimeGitHub release on every Linux x64 install. That repository and its release assets now return 404.ci.ymlandreal-models.yml(#1004) already setONNXRUNTIME_NODE_INSTALL_CUDA=skip, but only for their own jobs. A reusable workflow such asrelease-npm.ymldoes not inherit the caller'senv. Pull-request builds ofrelease-npm.ymlrestore 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.bashalready runs before everypnpm installin CI and release builds, andtest_pnpm_installs_prepare_local_native_buildsenforces that order. It now writesONNXRUNTIME_NODE_INSTALL_CUDA=skiptoGITHUB_ENV, so every later install step skips the download.Validation
linux/amd64(node:24-bookworm-slim),npm install onnxruntime-node@1.21.0fails with the same 404. WithONNXRUNTIME_NODE_INSTALL_CUDA=skipit installs andrequire("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, becauseartifacts-readyrequires every artifact family before publication.Summary by CodeRabbit