Skip to content

unsloth: fail install-deps on pip error (Windows) - #685

Merged
lucbruni-amd merged 3 commits into
mainfrom
ci-fix-unsloth-installdeps-failfast
Aug 10, 2026
Merged

unsloth: fail install-deps on pip error (Windows)#685
lucbruni-amd merged 3 commits into
mainfrom
ci-fix-unsloth-installdeps-failfast

Conversation

@lucbruni-amd

Copy link
Copy Markdown
Collaborator

The Windows install-deps block runs two pip installs. If the first (unsloth[amd] @ git+…) fails, the second (triton-windows) masks it and the block exits 0 — so a failed install surfaces later as a confusing verify-imports 'No module named unsloth' (e.g. #675, #567) instead of a clear install-deps failure.

Fix: $ErrorActionPreference='Stop' + explicit $LASTEXITCODE checks after each pip so a pip failure fails the step.

Refs #675.

The Windows install-deps block ran two pip installs; if the first (unsloth
from git) failed, the second masked it and the block exited 0, so the missing
package only surfaced later as a confusing verify-imports 'No module named
unsloth'. Stop on error and check $LASTEXITCODE after each install.

Refs #675.
Sreeram and others added 2 commits August 10, 2026 10:04
A single pip command surfaces any install failure via its exit code, so a
failed unsloth install is no longer masked by a later successful install.
Keeps the block user-facing (no CI-only lines).
@lucbruni-amd
lucbruni-amd merged commit 54d2bb8 into main Aug 10, 2026
16 checks passed
@lucbruni-amd
lucbruni-amd deleted the ci-fix-unsloth-installdeps-failfast branch August 10, 2026 18:29
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