Repository navigation
install.sh: use a checkout macOS arm64 overrides only when installing that checkout - #17757
Merged
danielhanchen merged 1 commit intoNov 14, 2026
Merged
Conversation
…ng that checkout Running install.sh from a checkout without --local installs the released wheel, but the script still exported the checkout's overrides-darwin-arm64.txt as UV_OVERRIDE. Once a checkout bumps its transformers pin ahead of the release (5.5.4 vs the released 5.5.0 after #17589), every MLX resolve conflicts with the wheel's own pins, uv fails and the installer drops to the pip fallback. The clean-machine macOS trace leg then fails on a rustc probe. Take the checkout file only for --local or the CI source overlay; otherwise the existing _bootstrap_packaged_mlx_override reads the released wheel's own copy, as a piped install from unsloth.ai already does.
Member
Author
|
@codex review |
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Codex Review: Didn't find any major issues. 👍 Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
danielhanchen
deleted the
fix/install-sh-checkout-overrides-only-for-local
branch
November 14, 2026 13:44
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.
Problem
The
mac macos-15 / trace / fileleg of Clean machine install has failed on main since #17589 (first atfc6ae908, again at2563c38e), and on every staging run that includes the workflow:That leg (and
mask / pipe) isoverlay: false, so it installs the released wheel (2026.11.4, which pinstransformers==5.5.0). Butinstall.shexportsUV_OVERRIDEfrom the checkout'sstudio/backend/requirements/single-env/overrides-darwin-arm64.txtwhenever that file sits next to the script, and after #17589 the checkout pins 5.5.4. The two disagree, so the MLX stack and the no-deps extras step both fail in uv and fall back to pip. On the trace leg the fallback probesrustc --version, which the notools assert rejects. Themask / pipeleg hits the same conflict but has no rustc to probe, so it passes while still testing a mix of two releases.#17589 itself is correct; the installer was applying one tree's pins to another tree's wheel. Any pin bump will trigger it again until the next release ships.
Fix
Take the checkout's override file only when the checkout is what gets installed (
--local, or the CI source overlay). Otherwise_bootstrap_packaged_mlx_override(already there for piped installs) reads the released wheel's own copy, so a non-overlay leg now gets exactly what a user runningcurl -fsSL https://unsloth.ai/install.sh | shgets.--localand overlay installs are unchanged.Tests
tests/sh/test_install_uv_override_space.shextracts the selection block and runs it as a checkout'sinstall.sh($0pointing into a fake checkout). It covers released-wheel,--local, CI overlay, Intel macOS and Linux. 30 passed.UV_OVERRIDE=<checkout>/.../overrides-darwin-arm64.txt).bash -nanddash -noninstall.share clean.install.shfail on the same 15 test IDs with and without this change. Those failures are host-only (Windows ROCm bnb), and the change adds none.