Repository navigation
CI: keep the host-default README guard scoped to Studio docs - #9623
Conversation
|
@codex review |
|
Codex Review: Didn't find any major issues. Keep them coming! 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". |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 01ef85f67b
ℹ️ 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".
|
Thanks for chasing this down quickly, and your read on the README is right: the opt-in belongs under Where I would push back is on keeping heading slices at all. This PR replaces one slice with two: awk '/^#### Launch$/{found=1; print; next} found && /^#{1,6} /{exit} found{print}'
awk '/^### Unsloth Studio \(web UI\)$/{found=1; print; next} found && /^#{1,3} /{exit} found{print}'Both are still keyed on exact heading text, so a rename takes the file red without anything about the host default having changed. Measured on this tree, renaming That is the same failure mode a third time. The first was One other thing worth knowing about the new /^[[:space:]]*(\$[[:space:]]*)?unsloth[[:space:]]+studio([[:space:]]|$)/so I have opened #9655, which parses the README's fenced code blocks and takes the first studio command in document order as the primary one, consulting no heading anywhere. It passes under rename, reorder, merge, split, a Proposing we close this in favour of #9655. The diagnosis here was the right one and I have carried it over. |
Picks up unslothai#9623, which rescopes the host-default README guard to the Studio quickstart. That was the remaining red check here. No conflicts.
…it is missing (#9654) `Overlay rail shadow gutter, other engines` has failed on every studio-ui-smoke run since #9246 added it, and passed on #9246 itself. The difference is the frontend-dist cache. The harness serves its own vite via `npm run dev` in studio/frontend. That job never installs the frontend dev dependencies: it installs Studio, and setup.sh installs them only when it has to build the frontend. The frontend-dist cache exists precisely to stop that build, and the restore action asserts the installer reported the frontend up to date. So on a cache miss setup.sh builds, node_modules exists and the step passes; on a hit there is no node_modules, `npm run dev` exits 127 with `sh: 1: vite: not found`, and the step fails. #9246's own run missed the cache. Every run since has hit it. The harness is right and its use in studio-frontend-ci.yml is right, where `npm ci` has already run. Only the new step's assumption was wrong: what that shard has already paid for is the WebKit and Firefox install, not a frontend toolchain. So the shard installs the dependencies itself, conditional on the binary rather than unconditional, because on the cold-cache path setup.sh has already put them there and `npm ci` would delete and refetch them. The step then checks the binary actually arrived, since a silent install would surface later as a Playwright timeout rather than as a missing toolchain. start_vite now refuses up front with the cause and the remedy. "vite exited with code 127" reads as a vite crash; the toolchain was never installed, and the two must not look the same. This is what made the failure look like flake: identical job, identical commit, green or red depending on a cache key. While here, the wildcard-host detector added in #9623 only matched a command at the start of a line, so `UNSLOTH_STUDIO_PASSWORD=... unsloth studio -H 0.0.0.0` in the Launch section passed the guard. It now matches the command anywhere on the line. Twelve fixtures pin what the detector must catch and must not, because every negative assertion in that file passes when the detector sees nothing: a detector that quietly stops matching turns the whole file green while guarding nothing.
Summary
Launchsubsection.Unsloth Studio (web UI)quickstart.Motivation
The README now documents
-H 0.0.0.0under the siblingRemote HTTPS & LAN Accesssubsection. The existing test stops at the first heading afterLaunch, so it fails even though the default remains loopback-only and the opt-in command is still documented. Scoping the two assertions separately preserves both safety guarantees without depending on subsection layout.Tests
bash tests/sh/test_install_host_defaults.sh(11 passed)bash -n tests/sh/test_install_host_defaults.shgit diff --check