Repository navigation
Studio: say when the audio runtime is not the release Studio installs - #12809
Conversation
|
@codex review |
1 similar comment
|
@codex review |
|
@codex review |
1 similar comment
|
@codex review |
|
The Audio pages now say when Studio's managed audio runtime is not the release this Studio installs. The notice names both versions and says to run What changed
Tested on Codex review requested on Before |
Reviewer fix and verification evidenceThe review found and repaired two remaining update-remedy bugs after the author's path-override fix: the notice now gives a Windows-safe stop/update/start order, and managed-runtime classification requires the same Final source head: Executed on Ubuntu 26.04.1 x86_64, Python 3.13.14 / uv 0.12.1, Node 26.8.2 / npm 11.19.1:
Isolated Playwright Chromium/Chrome-for-Testing evidence covers all seven Audio workflows at desktop and stacked sizes. With an ownership-marked old managed runtime, BEFORE has no notice; AFTER names the installed and expected releases, uses the stop/update/start sequence, appears once per workflow, and has no stacked overflow. Desktop: Stacked: The source PR is mergeable after landing. New source CI is queued; no failing check was observed. Per the final review gate, no approval was submitted. |
|
Review record for #12809, carried over from the mirror it was reviewed on: danielhanchen/unsloth-staging-review#484. Findings are quoted as posted and attributed to the account that posted them. The reactions shown are the triage recorded on the mirror; none were re-applied here. Commits are named as the mirror's, with this PR's equivalent where one was found. Round 1: reviewed mirror
|



Summary
Setup keeps an existing audio.cpp runtime when the release lookup fails ("update unavailable, existing prebuilt kept") or the install is busy. After a pin bump, users can stay on an older runtime with no hint, and Edit, Convert, or Separate then fail with the runtime's own error.
_audio_cpp_runtime_status()inroutes/inference.pynow addsexpected_tagandoutdatedto theaudio_cpp_runtimeblock of/audio/stt/status. It checks the install record's(published_repo, release_tag)against the installer's own release ladder (install_audio_cpp_prebuilt._release_ladder()), so the pinned fork tag and its upstream fallback both count as current. Only binaries under Studio's managed audio.cpp directory are checked. A binary the user configured throughAUDIOCPP_SERVER_PATH,UNSLOTH_AUDIO_CPP_PATH, orPATHis never flagged, and neither is a latest-tracking install (UNSLOTH_AUDIO_CPP_TAG=''), a record without a tag, or a failed release lookup.When
outdatedis true, the Audio rail shows one status line under the capability text on every workflow. It names the installed and expected releases and tells the user to rununsloth studio update, then restart Studio. Both new fields are optional inAudioCppRuntimeStatus, so the frontend shows nothing against an older server.Testing
Backend, from
studio/backend:test_audio_cpp_runtime_status.pypassed 15 tests. The three files together passed 143. The new cases cover the pinned release, the upstream fallback, an old release, the same tag from another repo, a latest-tracking ladder, a missing tag, a user-configured binary, and a release lookup error.Frontend, from
studio/frontend: the audio tests passed (492), including newaudioCppRuntimeUpdatecases intests/audio-cpp-catalog.test.ts. The fullnpm testrun passed 10577 of 10579. The 2 failures (theme and find-in-page) also fail on base7ccf3fcb2. Typecheck and build pass.Live Studio from this branch:
/audio/stt/statusreturnedoutdated=falseforv0.9.0-unsloth.1and for the0xShug0v0.9.0fallback, andoutdated=trueafter the install record was edited tov0.8.0-unsloth.1. The notice rendered on Speak and Transcribe in light and dark themes, in both wide and stacked layouts.Before / after
Audio page (Text to speech), same Studio-managed audio.cpp runtime whose install record names
v0.8.0-unsloth.1, merge base vs this branch. The status endpoint reportsexpected_tag: v0.9.0-unsloth.1,outdated: trueonly on the branch, and the rail shows the update line under the capability text.