Repository navigation
Point the interrupt legs at the phase label the installer prints - #11342
Conversation
"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.
|
@codex review |
Codex Review SummaryThis 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. |
There was a problem hiding this comment.
💡 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), ( |
There was a problem hiding this comment.
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 👍 / 👎.
There was a problem hiding this comment.
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.
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.
|
@codex review |
|
@codex security review |
|
Codex Review: Didn't find any major issues. You're on a roll. 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". |
🛡️ Codex Security ReviewSecurity review completed. No security issues were found in this pull request. Reviewed commit: Only the user who started this review can view the report in Codex. ℹ️ About Codex security reviews in GitHubThis is an experimental Codex feature. Security reviews are triggered when:
Once complete, Codex will leave suggestions, or a comment if no findings are found. |
…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>
Interrupted install recoveryhas been red onmainsince #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-depsandubuntu-latest kill@studio-deps.What broke
#11254 renamed the dependency phase from
studio depstoUnsloth Studio depsinstudio/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.ymlis 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:
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
studio-depslegs (macOS, Linux and the nightly Windows one) atUnsloth Studio deps. Every other marker in that file still matches the installer sources; I checked all seven.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.shreads 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:
studio depsmarker fails exactly the threestudio-depslegs and nothing else;studio/install_python_stack.pywhile leaving the matrix alone fails the same three.tests/studio/test_install_matrix_selection.pygoes from 28 to 32 tests, and 49 pass together withtests/studio/test_install_phase_timing.py.