Skip to content

ci(test-ui): skip onnxruntime-node's GPU download in the UI leg - #3215

Merged
DeusData merged 1 commit into
mainfrom
ci/test-ui-skip-onnxruntime-download
Dec 6, 2026
Merged

DeusData merged 1 commit into
mainfrom
ci/test-ui-skip-onnxruntime-download

Conversation

@DeusData

@DeusData DeusData commented Dec 6, 2026

Copy link
Copy Markdown
Owner

What

Set ONNXRUNTIME_NODE_INSTALL: skip on the CodeAtlasWeb step of the test-ui job (.github/workflows/_test.yml). That's one env entry with a comment, and nothing else changes.

Why

graph-ui depends on onnxruntime-node (through @huggingface/transformers). Its postinstall script downloads the GPU build (microsoft.ml.onnxruntime.gpu.linux, a NuGet package) from api.nuget.org on every run. The UI leg never uses it. When NuGet is unreachable, the whole leg fails: #3019's run 47528017570 died with ETIMEDOUT/ENETUNREACH in node ./script/install.

  • The CPU runtime and binding ship inside the npm package itself (bin/napi-v6/linux/x64/libonnxruntime.so.1, onnxruntime_binding.node, checked in the 1.24.3 tarball), so nothing the leg uses is lost.
  • ONNXRUNTIME_NODE_INSTALL=skip is the package's own documented switch: install-utils.js maps skip to false, and install.js exits 0 before any download. The Nix flake sets the same since fix(nix): refresh npmDepsHash and prevent ONNX Runtime downloads #3198.

Scope

Workflow change, CI only. It does not affect releases or other legs. This PR's own test-ui leg is the proof: it should install without the NuGet download and pass.

graph-ui's npm install runs onnxruntime-node's postinstall, which downloads the
GPU build (microsoft.ml.onnxruntime.gpu.linux nupkg) from api.nuget.org. The
UI leg never uses it - the CPU runtime and binding ship inside the npm package
(bin/napi-v6/linux/x64) - and a NuGet timeout failed the whole leg (seen on
#3019). ONNXRUNTIME_NODE_INSTALL=skip is the package's own switch (its
postinstall exits before downloading); the Nix flake sets the same.

Signed-off-by: Martin Vogel <martin.vogel.tech@gmail.com>
@DeusData
DeusData merged commit d337636 into main Dec 6, 2026
79 of 81 checks passed
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