Repository navigation
ci(test-ui): skip onnxruntime-node's GPU download in the UI leg - #3215
Merged
Merged
Conversation
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>
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
What
Set
ONNXRUNTIME_NODE_INSTALL: skipon the CodeAtlasWeb step of thetest-uijob (.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) fromapi.nuget.orgon every run. The UI leg never uses it. When NuGet is unreachable, the whole leg fails: #3019's run 47528017570 died withETIMEDOUT/ENETUNREACHinnode ./script/install.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=skipis the package's own documented switch:install-utils.jsmapsskiptofalse, andinstall.jsexits 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-uileg is the proof: it should install without the NuGet download and pass.