Skip to content

fix(release): fetch ONNX Runtime from PyPI, drop the legacy bundle, publish crates after the builds - #1818

Merged
ajianaz merged 1 commit into
developfrom
fix/release-ort-from-pypi
Nov 27, 2026
Merged

ajianaz merged 1 commit into
developfrom
fix/release-ort-from-pypi

Conversation

@ajianaz

@ajianaz ajianaz commented Nov 27, 2026 •

Copy link
Copy Markdown
Collaborator

What

  • scripts/fetch-ort.sh: downloads the onnxruntime 1.24.4 wheel from PyPI, pinned by URL and SHA-256, and writes the library names ort_init.rs looks for (libonnxruntime.so, libonnxruntime.dylib, onnxruntime.dll, plus the providers library). Used by the release workflow, by install.sh --from-source and by a new CI job (one run per release runner OS).
  • release.yml: the ORT download step calls the script; the build-ort-legacy and package-legacy jobs are removed; publish-crates now needs build-release; the unused ORT_VERSION env is gone.
  • The Linux x86_64 legacy bundle (SSE4.2) is removed from ci.yml (expected asset names), scripts/release-notes-template.md and docs/install.md; the CHANGELOG 0.24.2 upgrade notes say it is not part of this release.

Why

github.com/microsoft/onnxruntime has answered 404 since 2026-11-17 (seen from the CI runners and from a public fetch). The v0.24.2 Release run failed on every build for that reason: the release archives (curl | tar got an HTML 404 page) and the source checkout for the legacy bundle. The binaries do not link ORT (ort is built with load-dynamic), the library only ships next to them, so the fix is limited to where that library comes from.

The same run showed a second problem: publish-crates only needed verify-main, so uteke-privacy 0.24.2 reached crates.io while the builds were failing. A crates.io version cannot be withdrawn, so publishing now waits for all four platform builds. The workflow's own note on re-runs (a published version is skipped) is unchanged.

Checked against the wheels themselves: all four contain the shared library (libonnxruntime.so.1.24.4, libonnxruntime.1.24.4.dylib, onnxruntime.dll); the runtime lookup takes the exact name first, and the macOS fallback does not match a versioned .dylib, which is why the script writes libonnxruntime.dylib. The Linux x86_64 library loads and reports version 1.24.4.

What this drops: the legacy bundle, the only local ORT path for x86_64 CPUs without AVX2 (the Docker image ships the standard ORT, so it is no help there). Their options are the v0.24.1 legacy bundle or a remote embedding provider. Restoring the bundle needs another source for the ORT code; that is a separate issue.

Testing

  • scripts/fetch-ort.sh run for linux-x64, linux-arm64, macos-arm64 and win-x64: correct files and sizes; a wrong SHA-256 is rejected and nothing is written; the Linux x64 libonnxruntime.so loads and GetVersionString returns 1.24.4.
  • release.yml and ci.yml parse; bash -n install.sh; the install.sh platform mapping was run for this host (linux-x64).
  • New CI job ONNX Runtime fetch on ubuntu, macos and windows runners (this PR is its first run, which is also the check for Git Bash and python on the Windows runner).
  • The release workflow itself can only run on a tag; the first real run is the re-tagged v0.24.2. No Rust change, so no mutation gate.

Related Issues

Refs the v0.24.2 release (tag v0.24.2 exists, no GitHub Release yet). Follow-up issue for the legacy bundle to be opened separately.

…ublish crates after the builds

github.com/microsoft/onnxruntime has answered 404 since 2026-11-17, so every
build of the v0.24.2 release run failed (the release archives and the source
checkout for the legacy bundle). The ort crate is built with load-dynamic, so
no build links ORT: the library only ships next to the binaries.

- scripts/fetch-ort.sh downloads the onnxruntime 1.24.4 wheel from PyPI,
  pinned by URL and SHA-256, and writes the names ort_init.rs looks for
  (libonnxruntime.so, libonnxruntime.dylib, onnxruntime.dll and the providers
  library). The release workflow, install.sh --from-source and a new CI job
  (one per release runner OS) use it.
- The Linux x86_64 legacy bundle (SSE4.2 ORT built from source) is removed
  from the workflow, the release notes template and docs/install.md; the
  CHANGELOG says so.
- publish-crates now needs build-release: a crates.io version cannot be
  withdrawn, and uteke-privacy 0.24.2 went out while the builds failed.
@github-actions

Copy link
Copy Markdown

🔍 Cora AI Code Review

✅ No issues found. Code looks good!


Review powered by cora-code · BYOK · MIT

@ajianaz
ajianaz merged commit 63e57dc into develop Nov 27, 2026
22 checks passed
ajianaz added a commit that referenced this pull request Nov 27, 2026
…I) (#1819)

Release v0.24.2 again: github.com/microsoft/onnxruntime answers 404, so the first Release run could not build. ONNX Runtime now comes from a pinned PyPI wheel (#1818), the Linux x86_64 legacy bundle is dropped from this release, and crates.io publishing waits for the builds. Follows #1815.
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