Skip to content

fix(install): copy bundled ORT libs on binary install - #1221

Merged
ajianaz merged 1 commit into
codecoradev:developfrom
KazamiHazaki:fix/install-missing-ort-libs
Sep 11, 2026
Merged

ajianaz merged 1 commit into
codecoradev:developfrom
KazamiHazaki:fix/install-missing-ort-libs

Conversation

@KazamiHazaki

@KazamiHazaki KazamiHazaki commented Sep 10, 2026 •

Copy link
Copy Markdown
Contributor

What

Copy bundled ONNX Runtime libs on binary install. install.sh now cp -a libonnxruntime.so*, libonnxruntime_providers_shared.so*, and libonnxruntime*.dylib to $INSTALL_DIR; install.ps1 copies onnxruntime*.dll; manual tarball snippets in docs/install.md / INSTALL.md updated to move the .so/.dylib/.dll alongside all three binaries.

Why

Fresh install.sh installs on Arch/CachyOS (and any distro without a system ORT lib) leave uteke remember broken with ONNX Runtime library not found. The release tarball already contains libonnxruntime.so* (see release.yml Package step), but install() 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 three cp -a ... 2>/dev/null || true lines after binary mv, preserving symlinks (libonnxruntime.so -> .so.1 -> .so.1.24.4).
  • install.ps1: Get-ChildItem onnxruntime*.dll copy loop.
  • Docs: update manual install snippets + What Gets Installed table (ORT v1.24.4, matches ort 2.0.0-rc.12) + Arch/CachyOS note.

Testing

  • sh -n install.sh passes (syntax clean)
  • Simulated copy against uteke-x86_64-unknown-linux-gnu-v0.17.0.tar.gz: symlinks preserved in target dir
  • Manual repro from bug: fresh install via install.sh on Arch/CachyOS leaves no libonnxruntime.so → remember fails (ONNX Runtime library not found) #1220 (CachyOS rolling, kernel 7.2.2-1-cachyos, x86_64 AVX2, uteke 0.17.0, ~/.local/bin with no .so): after placing bundled 1.24.4 .so next to binary, uteke remember "any context" --tags test succeeds and uteke doctor passes (DB=2, Index=2, Embedding model: embeddinggemma-q4)
  • cargo test --workspace / clippy / fmt untouched — no Rust code changed (CI Run 34481899340 already green: Build, Test, Clippy, Format pass)

Related Issues

Closes #1220

Checklist

  • Branch name follows convention (fix/, feat/, docs/, chore/, refactor/, test/, perf/, security/)
  • Branch is from develop
  • Commit messages follow Conventional Commits
  • No secrets or credentials committed
  • One logical change per PR (no mixed concerns)

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
ajianaz merged commit b4d3991 into codecoradev:develop Sep 11, 2026
18 of 21 checks passed
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]>
ajianaz added a commit that referenced this pull request 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]>
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.

bug: fresh install via install.sh on Arch/CachyOS leaves no libonnxruntime.so → remember fails (ONNX Runtime library not found)

2 participants