Repository navigation
fix(install): copy bundled ORT libs on binary install - #1221
Merged
ajianaz merged 1 commit intoSep 11, 2026
Merged
Conversation
Release tarballs ship libonnxruntime.so* alongside uteke binaries, but install() only moved the 3 binaries and discarded the .so/.dylib. On distros with no system lib (Arch/CachyOS) this breaks first-run remember with ONNX Runtime library not found. Mirror build_from_source() behavior. Update install.ps1 and manual install docs. Fixes codecoradev#1220.
ajianaz
added a commit
that referenced
this pull request
Sep 11, 2026
The CLA gate relied on a manually POSTed commit status (context 'CLA Check'). Fork PRs always run workflows with a read-only GITHUB_TOKEN regardless of declared permissions, so the status step always failed with 403 on forks — every external fork PR was permanently red even with a signed CLA (verified: PR #1221, run 34481899319, POST /statuses -> 403 while signed='true'). The bot comment step also 403s on forks (skipped in the same run). - Drop the commit-status step and the statuses:write permission; the gate now rides on this job's own Actions check run (created by GitHub itself, immune to the fork token restriction). - Keep the signed->green / unsigned->red semantics via the existing 'Fail if not signed' step, now with a ::error annotation pointing to the signing portal and the auto-refresh behavior. - Keep the PR comment as a same-repo-only courtesy step (continue-on-error) — it can never affect the gate outcome. Note: the ruleset's required context must switch from 'CLA Check' to 'cla-check' (case-sensitive) in the same window as this lands; owner action via API. Co-authored-by: ajianaz <[email protected]>
This was referenced Sep 15, 2026
ajianaz
added a commit
that referenced
this pull request
Sep 15, 2026
…) (#1248) Co-authored-by: ajianaz <[email protected]>
This was referenced Sep 15, 2026
ajianaz
added a commit
that referenced
this pull request
Sep 15, 2026
…compare (#1255) * fix(cli): upgrade companion binaries and ORT libs, normalize version compare `uteke upgrade` replaced only the CLI binary: `uteke-serve` and `uteke-mcp` stayed on the old version after a "successful" upgrade, and the freshly downloaded ONNX Runtime libs bundled since #1221 were discarded. - Replace `uteke-serve` and `uteke-mcp` from the same verified archive (warn+skip when absent from older bundles; per-binary run verification and atomic rename preserved) - Refresh bundled `libonnxruntime*` libs from the archive (symlinks preserved on Unix; other platforms keep installed libs) - Compare the latest release tag against CARGO_PKG_VERSION with the `v` prefix normalized - an up-to-date install was re-offered the same release Closes #1245 * fix(cli): stage and rename ORT libs atomically during upgrade Copying bundled libonnxruntime files over the installed ones in place truncates the live lib while a running uteke-serve may still have it mmap'd (SIGBUS), and an interrupted copy leaves a corrupt lib after the binaries were already swapped. Stage to a temp name and rename atomically, matching the replace_binary pattern. --------- Co-authored-by: ajianaz <[email protected]>
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
Copy bundled ONNX Runtime libs on binary install.
install.shnowcp -a libonnxruntime.so*,libonnxruntime_providers_shared.so*, andlibonnxruntime*.dylibto$INSTALL_DIR;install.ps1copiesonnxruntime*.dll; manual tarball snippets indocs/install.md/INSTALL.mdupdated to move the.so/.dylib/.dllalongside all three binaries.Why
Fresh
install.shinstalls on Arch/CachyOS (and any distro without a system ORT lib) leaveuteke rememberbroken withONNX Runtime library not found. The release tarball already containslibonnxruntime.so*(seerelease.ymlPackage step), butinstall()only moved the 3 binaries and discarded the libs.build_from_source()already copies them, so this mirrors that behavior. Closes #1220.How
install.sh: add threecp -a ... 2>/dev/null || truelines after binarymv, preserving symlinks (libonnxruntime.so -> .so.1 -> .so.1.24.4).install.ps1:Get-ChildItem onnxruntime*.dllcopy loop.What Gets Installedtable (ORT v1.24.4, matchesort 2.0.0-rc.12) + Arch/CachyOS note.Testing
sh -n install.shpasses (syntax clean)uteke-x86_64-unknown-linux-gnu-v0.17.0.tar.gz: symlinks preserved in target dir~/.local/binwith no.so): after placing bundled1.24.4.sonext to binary,uteke remember "any context" --tags testsucceeds anduteke doctorpasses (DB=2, Index=2, Embedding model: embeddinggemma-q4)cargo test --workspace/clippy/fmtuntouched — no Rust code changed (CI Run 34481899340 already green: Build, Test, Clippy, Format pass)Related Issues
Closes #1220
Checklist
fix/,feat/,docs/,chore/,refactor/,test/,perf/,security/)develop