Skip to content

install.sh: use a checkout macOS arm64 overrides only when installing that checkout - #17757

Merged
danielhanchen merged 1 commit into
mainfrom
fix/install-sh-checkout-overrides-only-for-local
Nov 14, 2026
Merged

danielhanchen merged 1 commit into
mainfrom
fix/install-sh-checkout-overrides-only-for-local

Conversation

@danielhanchen

Copy link
Copy Markdown
Member

Problem

The mac macos-15 / trace / file leg of Clean machine install has failed on main since #17589 (first at fc6ae908, again at 2563c38e), and on every staging run that includes the workflow:

uv failed, falling back to pip...
error: No solution found when resolving dependencies
  cause: Because you require transformers==5.5.4 and transformers==5.5.0, we can conclude that your requirements are unsatisfiable.
...
##[error]installer invoked toolchain: rustc

That leg (and mask / pipe) is overlay: false, so it installs the released wheel (2026.11.4, which pins transformers==5.5.0). But install.sh exports UV_OVERRIDE from the checkout's studio/backend/requirements/single-env/overrides-darwin-arm64.txt whenever 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 probes rustc --version, which the notools assert rejects. The mask / pipe leg 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 running curl -fsSL https://unsloth.ai/install.sh | sh gets. --local and overlay installs are unchanged.

Tests

  • tests/sh/test_install_uv_override_space.sh extracts the selection block and runs it as a checkout's install.sh ($0 pointing into a fake checkout). It covers released-wheel, --local, CI overlay, Intel macOS and Linux. 30 passed.
  • Sabotage: with the new condition removed, the released-wheel case fails (UV_OVERRIDE=<checkout>/.../overrides-darwin-arm64.txt).
  • bash -n and dash -n on install.sh are clean.
  • The 55 pytest files that reference install.sh fail on the same 15 test IDs with and without this change. Those failures are host-only (Windows ROCm bnb), and the change adds none.

…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.
@danielhanchen

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 14, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-14T12:42:15.222911Z 6c94336 Manual request
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. 👍

Reviewed commit: 6c943364fe

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

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
danielhanchen merged commit 5f7f6e5 into main Nov 14, 2026
@danielhanchen
danielhanchen deleted the fix/install-sh-checkout-overrides-only-for-local branch November 14, 2026 13:44
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