Repository navigation
Research: fetch the pinned iOS ONNX Runtime source from a fallback remote - #1661
Merged
Merged
Conversation
…mote The iOS library is built from a pinned Microsoft source commit, and Microsoft's repository has returned 404 since November 17. iOS builds keep working only while the CI cache holds the built library: an evicted cache or a new Xcode build would fail at the source fetch. Both build scripts now fetch the pinned commit from an ordered list of remotes: Microsoft's repository first, then Intel's public fork, which carries the same commit. The commit ID pins the source and the pinned library hashes pin the output, so a remote decides availability only. The fetch no longer prompts for a login when a repository is missing. Co-Authored-By: Claude <[email protected]>
MaplePrivacyLabs/onnxruntime keeps the pinned iOS source commit under the tag maple-pin-v1.23.2, so the fallback no longer depends on another organization keeping a commit that none of its refs name. Intel's fork stays as the last remote. Co-Authored-By: Claude <[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.
Summary
Follow-up to #1657 and #1658, which moved the desktop ONNX Runtime libraries to NuGet after
github.com/microsoft/onnxruntimebegan returning 404 on November 17. iOS was left: its library is built from a pinned source commit fetched from that same repository.iOS builds work today only because the CI cache holds the built library (the
build-iosrun onmasterat 20:19 UTC on November 19 restored it). An evicted cache or a new Xcode build needs a source build, and that fails at the fetch.Change
onnxruntime-pins.shgains an ordered remote list and a fetch helper. Microsoft's repository is tried first, then this organization's fork (MaplePrivacyLabs/onnxruntime), then Intel's public fork (intel/onnxruntime). Both forks carry the same commit.maple-pin-v1.23.2, so it stays available there whatever other forks do. A new pin needs a new tag.origin.GIT_TERMINAL_PROMPT=0. GitHub answers a missing repository with a login challenge, which would stall a local build at a prompt before the fallback is tried.Why a fallback remote is safe here
A remote decides availability, never content:
a83fc4d58cb48eb68890dd689f94f28288cf2278is pinned and checked after checkout, as before;Nothing about the pins changed.
Verification
scripts/ci/test_ios_onnxruntime_source.py(6 tests, local repositories, no network): the next remote is used when the first is gone or lacks the commit, the first wins when it serves it, and the fetch fails when none does.python3 -I -m unittest discover -s scripts/ci: 662 tests pass. Research Rust tests pass.checkout_onnxruntime_source, run alone against the real remotes): Microsoft's repository answered "repository not found", the organization's fork served the commit, and the checkout ended on the pinned commit with treeb5dda94ef2878d4682e18d1b0c5f150b09054f42,VERSION_NUMBER1.23.2 and every submodule initialized.Not run: the compile after the checkout. CI's
research-ioslane reuses the cached library, so this PR's CI exercises neither the fetch nor a cold build. The compile steps are unchanged.🤖 Generated with Claude Code
Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.