mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #7292] [MERGED] ci: skip the onnxruntime CUDA download in test workflows #7668
Labels
No labels
android
bug
bugfix
ci
client
code freeze pause
container
dependencies
docs
documentation
duplicate
enhancement
feature
feature
feature
feature-creep
fixed-in-refactor
fixed-in-staging
good first issue
help wanted
in-pr
in-pr
needs-codeowner-decision
normal-scope
old-codebase
old-codebase
pull-request
qol
question
refactor
regression
revisit later
roadmap
scope-risk
scope-risk
server
server
shared
soup
upstream
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Engine#7668
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/7292
Author: @SpicyMarinara
Created: 10/8/2026
Status: ✅ Merged
Merged: 10/8/2026
Merged by: @SpicyMarinara
Base:
staging← Head:chore/ci-skip-onnx-cuda📝 Commits (2)
5524401ci: skip the onnxruntime CUDA download in test workflowsfecf813Merge origin/staging into chore/ci-skip-onnx-cuda📊 Changes
3 files changed (+12 additions, -0 deletions)
View changed files
📝
.github/workflows/playwright.yml(+6 -0)📝
.github/workflows/pull-request-checks.yml(+5 -0)📝
CHANGELOG.md(+1 -0)📄 Description
Linked issue
No issue exists for this yet. One should be opened before this PR leaves draft (CONTRIBUTING.md § Before You Open a Pull Request).
Closes #
Why this change
When an ubuntu job starts without a cached pnpm store (
Set up Node.jslogspnpm cache is not found),pnpm installruns onnxruntime-node's postinstall, which downloads the linux/x64 CUDA 12 add-on (Microsoft.ML.OnnxRuntime.Gpu.Linux) fromapi.nuget.org. When NuGet doesn't answer, the postinstall throwsETIMEDOUT, the install fails, and the job never reaches its tests:241ee8f2d, Oct 7): mobile-webkit 4/10 failed in Install dependencies with.../onnxruntime-node postinstall: AggregateError [ETIMEDOUT] ... connect ETIMEDOUT 150.171.109.151:443, so that whole shard never ran.hotfix/termux-2.5.0-fixes): pnpm-validate failed at Install dependencies with the sameETIMEDOUT.fix/merged-group-newcomer-recall): pnpm-validate failed right afterDownloading https://api.nuget.org/v3-flatcontainer/microsoft.ml.onnxruntime.gpu.linux/1.30.0/...nupkg.The tests don't need that download. The npm package already ships the CPU binding for linux/x64 (
bin/napi-v6/linux/x64/onnxruntime_binding.node+libonnxruntime.so.1).scripts/ensure-native-deps.mjs,scripts/check-workspace-install.mjsandlocal-embedder.tsonly check for that binding. The server never asks for a CUDA execution provider. onnxruntime-node's ownscript/install.jssupportsONNXRUNTIME_NODE_INSTALL=skip:parseInstallFlag()returnsfalseand the script callsprocess.exit(0)before it reads any manifest or opens a network connection.What changed
.github/workflows/playwright.yml: workflow-levelenv: ONNXRUNTIME_NODE_INSTALL: skip. Theplaywright-shardcomposite action runs its steps with the calling job's env, so every desktop/mobile shard, the browser-smoke job and thecomplete-node-regressionsjob get it. The action file itself is unchanged..github/workflows/pull-request-checks.yml: the same env on thepnpm-validatejob only. The Windows job needs no change because win32/x64 has no extra download.container-build-testbuilds the Dockerfile and is untouched, so it still downloads the add-on and can still hit a NuGet timeout.Dockerfileare deliberately unchanged, so shipped installs and images behave exactly as before.CHANGELOG.md: one "For contributors" entry under[Unreleased].Validation
pnpm checkpasses locallyCONTRIBUTING.mdAgent-run results on macOS arm64 / Node 24 / pnpm 10.34.5 (they don't replace the boxes above):
ONNXRUNTIME_NODE_INSTALL=skip SHARP_IGNORE_GLOBAL_LIBVIPS=1 pnpm install --frozen-lockfilepassed. Root postinstall:[native-deps] onnxruntime-node native binding is ready for darwin/arm64.ONNXRUNTIME_NODE_INSTALL=skip pnpm -r rebuild onnxruntime-node sharp --config.side-effects-cache=falseforced the real postinstall (.../onnxruntime-node postinstall$ node ./script/install→Done).node scripts/ensure-native-deps.mjsandnode scripts/check-workspace-install.mjsboth exited 0 after that install.script/install.jswithos.platform()/os.arch()faked tolinux/x64andhttpsstubbed. Without the variable it immediately requestshttps://api.nuget.org/v3/index.json. WithONNXRUNTIME_NODE_INSTALL=skipit exits 0 with no request.onnxruntime-nodefrompackages/server(the same resolutionlocal-embedder.tsuses) and ranInferenceSession.create(..., { executionProviders: ["cpu"] })on a tiny Identity model:[1.5, -2]in,[1.5, -2]out.transformers-runtime,memory-recall-revectorize,semantic-summary-cancellation,semantic-summary-settings,entity-embedding-store,lorebook-vectorization,archive-extraction-security(which covers the patched onnxruntime-node installer) all passed.actionlint1.7.12 (Docker image) on both workflows: clean, as is the staging baseline. A js-yaml parse confirmsenv.ONNXRUNTIME_NODE_INSTALL == "skip"at the expected levels.node scripts/validate-pr-triage.mjspassed.pnpm checkexited 0, and Prettier is clean on the changed files.coderabbit review --agent --committed) reported 0 findings.Manual verification notes
The variable only matters when pnpm actually runs onnxruntime-node's install script, which happens on a cold store. When Set up Node.js logs
Cache hit for: node-cache-Linux-x64-pnpm-..., pnpm reuses the build it cached earlier, the script never runs, and the log has noonnxruntime-node postinstallline at all. That is what happened in this PR's first run (Pull Request Checks 37717536443, Regression Checks 37717536404), so those green runs don't prove the skip path yet.pnpm cache is not found(for example the full Regression Checks run below, which may not find staging's cache) that Install dependencies shows.../onnxruntime-node postinstall$ node ./script/installfollowed bypostinstall: Done, with noDownloading https://api.nuget.org/...line.gh workflow run playwright.yml --ref chore/ci-skip-onnx-cuda), for example mobile-webkit 4/10: Install dependencies passes with no NuGet download, then the shard runs its tests.pnpm regressionstill passes. This job also inherits the variable. (It passed 538/538 in run 37717536404, but on a cache hit.)microsoft.ml.onnxruntime.gpu.linuxand extractslibonnxruntime_providers_cuda.so, so the Docker image keeps its GPU files. Run 37717536443 shows this; the Docker build doesn't receive the job's env. No other release workflow ships a Linuxnode_modules: the GitHub Release is agit archiveof the tag.Docs and release impact
docs-i18nbranch updated to match, or a[docs-i18n]follow-up issue opened (see CONTRIBUTING.md § Translated documentation)CI-only. The only docs change is a CHANGELOG entry, and nothing under
docs/changes.UI evidence (if applicable)
Not applicable (CI configuration only).
Summary by CodeRabbit
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.