Skip to content

Re-couple the Docker restore hint to the script that prints it - #11262

Merged
danielhanchen merged 1 commit into
mainfrom
fix-docker-restore-hint-drift
Sep 18, 2026
Merged

danielhanchen merged 1 commit into
mainfrom
fix-docker-restore-hint-drift

Conversation

@danielhanchen

Copy link
Copy Markdown
Member

What

Backend CI / Repo tests (CPU, python) is red on main at be95e417b:

FAILED tests/python/test_docker_studio_home_volume.py::test_restore_without_a_legacy_dir_or_an_app_dir_says_which_image_to_use
AssertionError: assert 'run --restore under an image that has the Studio code' in '[unsloth-studio] ERROR: ...'

#11254 reworded docker/studio_home.sh:35:

-... run --restore under an image that has the Studio code in $APP ...
+... run --restore under an image that has the Unsloth Studio code in $APP ...

and left the expectation behind. That expectation dates from #10829 and had not been touched since, so the drift is one-sided. The product change is right and matches #11254's own rule ("Unsloth Studio where the distinction from the core library matters"), and docker/ is not a desktop display surface, so nothing here conflicts with the branding contract. The test is what moves.

The change

The wording becomes one named constant, RESTORE_NEEDS_APP_HINT, asserted twice:

  • against the stderr a real run produces, which is what the original test did, and
  • against docker/studio_home.sh itself, in a new test.

The second assertion is the point. The old failure compared two long strings and gave no hint that the fix was one line of shell in another directory; the new one says which file stopped printing the sentence and which constant to update if the rewording was deliberate. Keeping both matters: the source check alone would pass on a script that no longer reaches that branch at all.

Verification

  • Reproduced on unmodified main be95e417b: 1 failed, 31 passed.
  • After: 33 passed.
  • Sabotage-proved by reverting the script wording: both the original test and the new coupling test fail, and the new one names docker/studio_home.sh. Restoring it returns 33 passed.
  • Swept tests/python for other drift from Use Unsloth branding in remaining user-facing text #11254's 55 literals: nothing else. The 59 remaining failures are the known test_vision_lora_targeting / test_rocm_bf16_capability / test_patch_trl_rl_trainers_defensive group, which fail identically on unmodified main on this host and are green in CI.

Context

This is the third red on main today from the same pair of copy PRs. The other two are #11255 (the desktop branding contract, 29 offenders from #11251) and #11257 (an unrelated idle-unload race). All three are independent and can land in any order.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 18, 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-18T12:23:07.923704Z c9bb275 Manual request
🔒 Security Review ✅ Completed 2026-09-18T11:23:31.292814Z 2639344 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.

@shimmyshimmer

Copy link
Copy Markdown
Member

@codex review

@shimmyshimmer

Copy link
Copy Markdown
Member

@codex security review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Hooray!

Reviewed commit: 263934415f

ℹ️ 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: 263934415f

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.

#11254 reworded studio_home.sh line 35, "an image that has the Studio code" ->
"an image that has the Unsloth Studio code", and left the expectation in
test_docker_studio_home_volume.py behind. Main has been red in Backend CI /
Repo tests (CPU, python) since, on

  test_restore_without_a_legacy_dir_or_an_app_dir_says_which_image_to_use

The product change is right and matches that PR's own rule, so the test is what
moves. The wording is now one named constant, asserted against the script's
source as well as against the stderr a real run produces. That is the part worth
having: the old assertion compared two long strings and said nothing about the
fix being one line of shell, and the new test names the file and the constant.
Both halves fail when the script wording is reverted.
@shimmyshimmer

Copy link
Copy Markdown
Member

@codex review

1 similar comment
@shimmyshimmer

Copy link
Copy Markdown
Member

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

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

Reviewed commit: c9bb2750f4

ℹ️ 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 d1b35b5 into main Sep 18, 2026
16 of 18 checks passed
@danielhanchen
danielhanchen deleted the fix-docker-restore-hint-drift branch September 18, 2026 12:50
@danielhanchen
danielhanchen restored the fix-docker-restore-hint-drift branch September 18, 2026 12:50
shaojun pushed a commit to shaojun/unsloth that referenced this pull request Sep 29, 2026
…thai#11262)

unslothai#11254 reworded studio_home.sh line 35, "an image that has the Studio code" ->
"an image that has the Unsloth Studio code", and left the expectation in
test_docker_studio_home_volume.py behind. Main has been red in Backend CI /
Repo tests (CPU, python) since, on

  test_restore_without_a_legacy_dir_or_an_app_dir_says_which_image_to_use

The product change is right and matches that PR's own rule, so the test is what
moves. The wording is now one named constant, asserted against the script's
source as well as against the stderr a real run produces. That is the part worth
having: the old assertion compared two long strings and said nothing about the
fix being one line of shell, and the new test names the file and the constant.
Both halves fail when the script wording is reverted.
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.

2 participants