Repository navigation
Anchor the host-defaults assertions and take the file off the skip list - #7774
Merged
Merged
Conversation
test_install_host_defaults.sh has been quarantined since #7431 and failing for longer, with a recorded reason that covers one of three drifts. None of them is a regression: install.sh, install.ps1 and the README all still behave as the test intends. Every failure comes from how the test carves out the text it greps. Both installers were sliced with a fixed tail. install.sh grew past its 50-line window in #6258 and install.ps1 past its 25-line window in #7be1085, the day after the test landed, so the prompt each assertion looks for sat just above the window. Both now start at the block's own 'In interactive terminals' comment. The README extractor stopped at a '#### Update' heading that was later deleted, so its Launch section silently became the rest of the file and picked up the -H 0.0.0.0 from the remote-access section 137 lines below. It now stops at the next heading of any name. Two assertions could not have failed. setup.sh's launch hint sits at line 2332 while tail -30 covered 2339 onward, so the negative check no longer looked at the hint at all, and 'read' as a needle also matches 'readable' and '_can_read_tty', so the prompt check passed with the prompt deleted. Both are pinned to what they mean to protect; each of the six assertions now fails when its target is removed. With the extraction fixed the file passes 10/10, so it comes off the skip list in run_all.sh, studio-backend-ci.yml and test_ci_shell_suite_coverage.py, which have to change together.
The setup.sh launch-hint extraction was the only one of the four with no positive assertion over it. The other three each pin something that must be present, so a broken extraction fails loudly; this one had a lone assert_not_contains, and a negative check over an empty window passes. Renaming the printf label empties it, and the test then stays green with 0.0.0.0 hard-coded in the hint, which is the failure this PR exists to remove. The README extractor's comment promised the next heading of any name while the pattern only matched an h4, so demoting the following heading would widen the window again.
|
Codex Review: Didn't find any major issues. Delightful! 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 Review: Didn't find any major issues. Breezy! 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". |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
tests/sh/test_install_host_defaults.shhas been on the skip list since #7431 and failing for longer, with a recorded reason that names one of three drifts. None of the three is a regression:install.sh,install.ps1and the README all still behave the way the test intends. Every failure is in how the test carves out the text it greps.The three failures
install.sh: interactive block prompts user (read)tail -50of a 4533-line file starts at 4484;read -r _replyis at 4472. Outgrew the window in #6258.install.ps1: interactive block prompts user (Read-Host)tail -25of a 3141-line file starts at 3117;Read-Hostis at 3108. Broke in #5190, the day after the test landed.README: Launch section primary command has no -H 0.0.0.0#### Update, a heading later deleted, so "the Launch section" became the rest of the file and picked up the-H 0.0.0.0from the remote-access section 137 lines below.Both installers are now anchored on the block's own
In interactive terminalscomment, so the two windows stay symmetric and survive appends. The README extractor stops at the next heading of any name.To be explicit about the README one, since it reads alarming: the documented launch command is
unsloth studio -p 8888. The-H 0.0.0.0the test tripped on is in the deliberate#### Remote accesssection, which already says to use it only on a trusted network. There is no regression and nothing to change in the docs.Two assertions that could not have failed
Worth calling out separately, because they were passing rather than failing:
studio/setup.sh: launch hint has no '-H 0.0.0.0'slicedtail -30, which covers lines 2339 onward. The launch hint is at 2332. The check had drifted off its target entirely.install.sh: interactive block prompts user (read)greps for the substringread, which also matchesreadableand_can_read_ttyin the same block. Deleting the prompt left it green.Both are now pinned to what they mean to protect. Each of the six assertions was mutation-tested and fails when its target is removed:
studio -H 0.0.0.0into the install.sh windowOff the skip list
The file passes 10/10, so it comes off the skip list in
tests/run_all.sh,.github/workflows/studio-backend-ci.ymlandtests/studio/test_ci_shell_suite_coverage.py. Those three have to change together, since the coverage test fails if the two runners disagree or a skip is undocumented.tests/run_all.shnow reports 30 passed, 0 failed with no skip line, andtest_ci_shell_suite_coverage.pypasses 29.