Repository navigation
fix(release): fetch ONNX Runtime from PyPI, drop the legacy bundle, publish crates after the builds - #1818
Merged
Conversation
…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.
🔍 Cora AI Code Review✅ No issues found. Code looks good! Review powered by cora-code · BYOK · MIT |
3 of 5 tasks
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.
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
scripts/fetch-ort.sh: downloads theonnxruntime1.24.4 wheel from PyPI, pinned by URL and SHA-256, and writes the library namesort_init.rslooks for (libonnxruntime.so,libonnxruntime.dylib,onnxruntime.dll, plus the providers library). Used by the release workflow, byinstall.sh --from-sourceand by a new CI job (one run per release runner OS).release.yml: the ORT download step calls the script; thebuild-ort-legacyandpackage-legacyjobs are removed;publish-cratesnow needsbuild-release; the unusedORT_VERSIONenv is gone.ci.yml(expected asset names),scripts/release-notes-template.mdanddocs/install.md; the CHANGELOG 0.24.2 upgrade notes say it is not part of this release.Why
github.com/microsoft/onnxruntimehas 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 | targot an HTML 404 page) and the source checkout for the legacy bundle. The binaries do not link ORT (ortis built withload-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-cratesonly neededverify-main, souteke-privacy 0.24.2reached 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 writeslibonnxruntime.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.shrun forlinux-x64,linux-arm64,macos-arm64andwin-x64: correct files and sizes; a wrong SHA-256 is rejected and nothing is written; the Linux x64libonnxruntime.soloads andGetVersionStringreturns 1.24.4.release.ymlandci.ymlparse;bash -n install.sh; theinstall.shplatform mapping was run for this host (linux-x64).ONNX Runtime fetchon 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).Related Issues
Refs the v0.24.2 release (tag
v0.24.2exists, no GitHub Release yet). Follow-up issue for the legacy bundle to be opened separately.