Skip to content

Point the interrupt legs at the phase label the installer prints - #11342

Merged
danielhanchen merged 3 commits into
mainfrom
ci/interrupt-marker-rename
Sep 20, 2026
Merged

danielhanchen merged 3 commits into
mainfrom
ci/interrupt-marker-rename

Conversation

@danielhanchen

Copy link
Copy Markdown
Member

Interrupted install recovery has been red on main since #11254, so every pull request that runs it inherits the failure. Three runs on main today (35439142816, 35438751996, 35438097578) fail the same two legs, macos-15 kill@studio-deps and ubuntu-latest kill@studio-deps.

What broke

#11254 renamed the dependency phase from studio deps to Unsloth Studio deps in studio/install_python_stack.py, as part of using Unsloth branding in user-facing text. The branding change is right. What it could not see is that .github/ci/interrupted-install-matrix.yml is the only other place that spells that phase, and three legs still grep the install log for the old text.

The consequence is not a cosmetic mismatch. Each leg kills the installer as soon as its marker appears in the log, so a marker that never appears means nothing is interrupted at all:

[interrupt] installer exit=0 reason=exited-before-marker killed=false
[interrupt] phase at kill:   deps           [====================] 16/16  torchcodec
##[error]installer never reached 'studio deps' (reason=exited-before-marker).
##[error]installer exited 0 -- it COMPLETED inside the kill window, so nothing was interrupted

The workflow's own guard is doing its job here: it refuses to report a leg green when the leg proved nothing. Only the marker is stale.

The fix

  • Retarget the three studio-deps legs (macOS, Linux and the nightly Windows one) at Unsloth Studio deps. Every other marker in that file still matches the installer sources; I checked all seven.
  • Pin the coupling that was missing, in tests/studio/test_install_matrix_selection.py: every marker in the matrix must be an ERE that matches text the installer sources still carry, read the same way .github/scripts/interrupt-install.sh reads it. A rename is cheap to make and, this way, expensive to find, so it should fail in a CPU test rather than in a ten-minute macOS leg. The [TAURI:STEP] tag is put on the line by the logger rather than by the caller that names the phase, so it is checked once against the sources instead of being expected beside each phrase.

Checks

Both directions, against a green baseline:

  • restoring the old studio deps marker fails exactly the three studio-deps legs and nothing else;
  • renaming the phase in studio/install_python_stack.py while leaving the matrix alone fails the same three.

tests/studio/test_install_matrix_selection.py goes from 28 to 32 tests, and 49 pass together with tests/studio/test_install_phase_timing.py.

"Interrupted install recovery" has been red on main since #11254, and every pull
request that runs it inherits the failure. That PR renamed the dependency phase
"studio deps" to "Unsloth Studio deps" for branding, in
studio/install_python_stack.py. The branding change is right; what it could not
see is that .github/ci/interrupted-install-matrix.yml is the only other place
that spells the phase, and three legs still grep the install log for the old
text.

The effect is not a mismatched string in a message. The leg kills the installer
once the marker appears, so a marker that never appears means nothing is
interrupted: the installer runs to completion, exits 0, and the workflow's own
guard fails the leg for asserting nothing (reason=exited-before-marker, then
"installer exited 0 -- it COMPLETED inside the kill window"). Confirmed on main
run 35439142816, both studio-deps legs, with the install log showing the deps
pass finishing 16/16.

Retargets the three legs, and pins the coupling that was missing, so the next
rename fails in a CPU test rather than in a ten-minute macOS leg: every marker
in the matrix must be an ERE that matches text the installer sources still
carry, read the same way .github/scripts/interrupt-install.sh reads it. The
[TAURI:STEP] tag is put on the line by the logger rather than by the caller
naming the phase, so it is checked once against the sources instead of beside
each phrase.

Checked both ways: restoring the old marker fails exactly the three studio-deps
legs and nothing else, and renaming the phase in the installer while leaving the
matrix alone fails the same three.
@danielhanchen

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 19, 2026 •

Copy link
Copy Markdown

Codex Review Summary

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

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-09-19T23:57:16.321182Z 0cbe2fa Manual request
🔒 Security Review ✅ Completed 2026-09-19T23:57:27.680387Z 0cbe2fa 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 chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 6b80bef019

ℹ️ 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".

"no installer source emits a [TAURI:STEP] line at all, so every tagged "
"marker is unreachable"
)
assert re.search(phrase, text), (

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Validate markers against the platform-specific emitter

Because text concatenates the POSIX and Windows installer sources, this assertion can be satisfied by the wrong platform. For example, if every Write-TauriLog ... "Installing PyTorch" call is renamed in install.ps1, the Windows marker becomes unreachable but this test remains green because install.sh still contains that phrase; the reverse applies to POSIX legs. Checking TAURI:STEP independently also allows the tag and phrase to come from unrelated callsites. Associate each matrix job with its actual source and match the complete emitting expression so the test catches the platform-specific drift it is intended to prevent.

Useful? React with 👍 / 👎.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Right on the platform pooling: a phrase renamed only in install.ps1 leaves the Windows leg unreachable while install.sh still carries it, and the reverse for the POSIX legs. Fixed in 0cbe2fa by keying the sources on the job, with install_python_stack.py on both lists because both installers run it, and by looking for the [TAURI:STEP] tag in that job's sources rather than anywhere. Checked by renaming Installing PyTorch in one installer at a time: install.ps1 fails only the Windows torch leg, install.sh only the two POSIX ones.

Not matching the complete emitting expression, though. The tag is put on the line by the logger and never by the caller that names the phase, so requiring the marker to appear literally beside its emitter is unsatisfiable: that is what the first version of this test did, and it failed all four tagged legs against sources that print them correctly.

pre-commit-ci Bot and others added 2 commits September 19, 2026 23:23
The pooled text let the wrong platform satisfy the assertion: a phrase renamed
only in install.ps1 leaves the Windows leg unreachable while install.sh still
carries it, and the reverse for the POSIX legs. Sources are now per job, with
install_python_stack.py on both because both installers run it, and the
[TAURI:STEP] tag is looked for in that job's sources rather than anywhere.

Checked by renaming "Installing PyTorch" in one installer at a time: renaming it
in install.ps1 fails only the Windows torch leg, and in install.sh only the two
POSIX ones.
@danielhanchen

Copy link
Copy Markdown
Member Author

@codex review

@danielhanchen

Copy link
Copy Markdown
Member Author

@codex security review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. You're on a roll.

Reviewed commit: 0cbe2fa89a

ℹ️ 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".

@chatgpt-codex-connector

Copy link
Copy Markdown

🛡️ Codex Security Review

Security review completed. No security issues were found in this pull request.

Reviewed commit: 0cbe2fa89a

View security finding report

Only the user who started this review can view the report in Codex.

ℹ️ About Codex security reviews in GitHub

This is an experimental Codex feature. Security reviews are triggered when:

  • You comment "@codex security review"
  • A regular code review gets triggered (for example, "@codex review" or when a PR is opened), and you’re opted in so security review runs alongside code review

Once complete, Codex will leave suggestions, or a comment if no findings are found.

@danielhanchen
danielhanchen merged commit b4c23b1 into main Sep 20, 2026
34 checks passed
@danielhanchen
danielhanchen deleted the ci/interrupt-marker-rename branch September 20, 2026 00:22
shaojun pushed a commit to shaojun/unsloth that referenced this pull request Sep 29, 2026
…lothai#11342)

* Point the interrupt legs at the phase label the installer prints

"Interrupted install recovery" has been red on main since unslothai#11254, and every pull
request that runs it inherits the failure. That PR renamed the dependency phase
"studio deps" to "Unsloth Studio deps" for branding, in
studio/install_python_stack.py. The branding change is right; what it could not
see is that .github/ci/interrupted-install-matrix.yml is the only other place
that spells the phase, and three legs still grep the install log for the old
text.

The effect is not a mismatched string in a message. The leg kills the installer
once the marker appears, so a marker that never appears means nothing is
interrupted: the installer runs to completion, exits 0, and the workflow's own
guard fails the leg for asserting nothing (reason=exited-before-marker, then
"installer exited 0 -- it COMPLETED inside the kill window"). Confirmed on main
run 35439142816, both studio-deps legs, with the install log showing the deps
pass finishing 16/16.

Retargets the three legs, and pins the coupling that was missing, so the next
rename fails in a CPU test rather than in a ten-minute macOS leg: every marker
in the matrix must be an ERE that matches text the installer sources still
carry, read the same way .github/scripts/interrupt-install.sh reads it. The
[TAURI:STEP] tag is put on the line by the logger rather than by the caller
naming the phase, so it is checked once against the sources instead of beside
each phrase.

Checked both ways: restoring the old marker fails exactly the three studio-deps
legs and nothing else, and renaming the phase in the installer while leaving the
matrix alone fails the same three.

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* Check each interrupt marker against the installer its leg runs

The pooled text let the wrong platform satisfy the assertion: a phrase renamed
only in install.ps1 leaves the Windows leg unreachable while install.sh still
carries it, and the reverse for the POSIX legs. Sources are now per job, with
install_python_stack.py on both because both installers run it, and the
[TAURI:STEP] tag is looked for in that job's sources rather than anywhere.

Checked by renaming "Installing PyTorch" in one installer at a time: renaming it
in install.ps1 fails only the Windows torch leg, and in install.sh only the two
POSIX ones.

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
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