Skip to content

Retire the virgin container release-lag pin now that the released wheel carries #7549 - #7712

Closed
danielhanchen wants to merge 2 commits into
mainfrom
ci-virgin-pin
Closed

danielhanchen wants to merge 2 commits into
mainfrom
ci-virgin-pin

Conversation

@danielhanchen

Copy link
Copy Markdown
Member

The virgin win container / overlay=false job has been failing on every PR that runs it, with a message the workflow writes itself:

##[error]the released wheel now installs in a virgin container, so it carries the relaxed
#7549 gates. Delete this pin and drop continue-on-error from the Install step so this row gates.

That is a deliberate tripwire, not a defect. It fires when the condition the pin was working around has gone away, so this PR does exactly what it asks.

What the pin was

All three pieces live in clean-machine-install-ci.yml, job windows_container_install:

  • continue-on-error: ${{ !matrix.overlay }} on the Install step, with a RELEASE-LAG PIN comment
  • the Assert the released-wheel row failed only on release lag step, whose first branch is the tripwire above

A Windows Server Core container has no Microsoft Store and therefore no winget, ever. Before #7549 the released wheel could not install there, so the row was allowed to fail.

Why it is safe to retire now

#7549 ("Windows: unblock the consumer install on clean and no-winget machines", merged 2026-07-29) relaxed the two gates that blocked this lane: git stopped being a hard failure on the consumer path, and Ensure-VCRedist stopped being winget-only by downloading vc_redist directly.

I did not take the workflow's word for the flip. Unpacking the wheels from PyPI:

  • unsloth 2026.7.5 was uploaded 2026-07-23, before the merge.
  • unsloth 2026.7.6 was uploaded 2026-07-29, after it, and is the first wheel that could carry the change.
  • In unsloth-2026.7.6-py3-none-any.whl, studio/setup.ps1 no longer contains the pinned old wording Git is required but could not be installed automatically, and does contain both post-Windows: unblock the consumer install on clean and no-winget machines #7549 markers (so git is not needed, and the direct aka.ms/vs/17/release/vc_redist.x64.exe download).

Removing continue-on-error will not turn the row red for a different reason

The Install step itself already passes; only the tripwire was failing the job. Across the four most recent runs of this workflow:

run overlay=false job Install step
30665929139 success success
30651753971 failure success
30648796387 failure success
30646523183 failure success

Run 30665929139 is the org's own image-generation branch, which has already made this same change; its overlay=false job is green. I diffed this job against that branch's job on every executable field (step names, if, continue-on-error, run bodies) and all 10 steps are identical. The only difference is comments: that branch left an orphaned RELEASE-LAG PIN block above a later step, this one does not.

Validation

  • yaml.safe_load parses; the job has 10 steps and no step carries continue-on-error.
  • actionlint 1.7.7 reports only 3 pre-existing runner-label warnings (macos-26, macos-15-intel, windows-11-arm), identical in count and kind on pristine main.
  • No orphaned references: released-wheel row and failed only on release have zero hits repo-wide, and the deleted step was the only consumer of steps.install.outcome inside this job.

Net 10 insertions, 69 deletions; the only YAML key removed is continue-on-error. id: install is left in place as a harmless anchor, matching the sibling branch.

I have not run this workflow from this branch; the green evidence above comes from the sibling branch carrying the equivalent change.

…el carries #7549

The "virgin win container / overlay=false" row installs unsloth from PyPI on
purpose, so its studio/setup.ps1 comes out of the released wheel. A Server Core
container has no Microsoft Store and so no winget, and the released setup.ps1
hard-stopped on a winget-only git gate and reached for winget again for the VC++
runtime, so that row could not install end to end. #7549 relaxed both gates but
merged on 2026-07-29, after the then newest wheel 2026.7.5 (2026-07-23), so the
row was held under continue-on-error and a step that asserted it failed only on
that known signature.

unsloth 2026.7.6 shipped later the same day and is the first wheel to carry the
relaxed gates: unpacking it shows the old "Git is required but could not be
installed automatically" wording gone and both "so git is not needed" and
"downloading the runtime directly" present. The row now installs end to end and
the pin's own tripwire fired to say so.

Drop continue-on-error from the Install step and delete the release-lag
assertion, so the released-wheel row gates like the overlay row. The Install
step is already passing on this row in recent runs, so nothing else is being
tolerated by the escape hatch being removed.

@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: cf0b25ea06

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

# again for the VC++ runtime, so the row that installs from PyPI on purpose could
# not get past it. #7549 relaxed both, and unsloth 2026.7.6 (uploaded 2026-07-29,
# after #7549 merged) is the first wheel to ship them, so the row now installs end
# to end and the pin's own tripwire fired to say so. Nothing is tolerated here.

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 Check the harness verdict for the released-wheel row

When overlay=false and docker exec returns 0 without completing the harness—a case this workflow explicitly anticipates at lines 1574-1575—removing the released-row tripwire lets the Install step succeed, while the only check for VIRGIN WINDOWS CONTAINER INSTALL PASSED remains guarded by if: matrix.overlay. The released-package lane can therefore report green without completing its assertions; run the success-marker check for both rows and keep only the overlay-specific checks conditional.

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.

Confirmed by tracing the step list: the marker check is the only non-always() step and it is gated on matrix.overlay, so after this PR the released row rested on docker exec's exit code alone. Hoisted it into its own ungated step in 7613460; the overlay-specific assertions stay gated.

Removing the released row's tripwire made a green released row reachable
for the first time, and the only log-based verdict check sat behind
`if: matrix.overlay`. Every later step is `if: always()` and exits 0, so
that row was gated on `docker exec`'s exit code alone -- which the file
already notes can be 0 for an exec that lost its container. Hoisted the
marker check out of the overlay step so both rows read the harness's own
verdict; the overlay-specific assertions stay gated.
@danielhanchen

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Already looking forward to the next diff.

Reviewed commit: 7613460e81

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

Copy link
Copy Markdown
Member Author

Superseded by #7722, which combines this with the other two repo-wide CI fixes so a single merge unblocks the whole batch. The files there are byte-identical to this PR's head, and the commits are cherry-picked with provenance. Closing.

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