unsloth/tests/sh
karan yadav dc26127a42
Studio: propagate required backend version to repair pipeline (#8610) (#8670)
* Studio: propagate required backend version to repair pipeline (#8610)

Fix second-launch infinite repair loop when installed backend version is outdated (#8610).

When the Desktop App launches with an installed managed venv whose version is older than expected_backend_version() (e.g. 2026.8.4 < 2026.8.15), preflight flags the install as ManagedStale with desktop_backend_version_outdated. On auto-repair, unsloth studio update ran setup.sh/setup.ps1 from the old venv, which skipped python dependency installation because INSTALLED_VER == LATEST_VER on PyPI or PyPI timeout, leaving the venv unchanged. The installer fallback (install.sh/install.ps1) also lacked version floor pins on standard fresh paths, locking the user in a permanent repair error loop.

Key changes:
- Pass UNSLOTH_DESKTOP_BACKEND_VERSION from Tauri (update.rs & install.rs) to child process environments.
- Force Python dependency pass in setup.sh & setup.ps1 when UNSLOTH_DESKTOP_BACKEND_VERSION is set and INSTALLED_VER < UNSLOTH_DESKTOP_BACKEND_VERSION.
- Apply UNSLOTH_DESKTOP_BACKEND_VERSION floor constraint when updating core packages in install_python_stack.py.
- Ensure standard fresh install paths in install.sh and install.ps1 use "unsloth>=2026.8.15".
- Bump MIN_DESKTOP_BACKEND_VERSION in preflight/version.rs to "2026.8.15".
- Add shell and Python unit tests for the fast-path escape and desktop backend version constraint.

Fixes #8610

* Narrow desktop repair to version propagation

* Handle version suffixes in repair fallback

---------

Co-authored-by: imagineer99 <samleejackson0@gmail.com>
Co-authored-by: Lee Jackson <130007945+Imagineer99@users.noreply.github.com>
2026-08-19 19:12:22 +01:00
..
test_agent_guides_timeout_classification.sh Stop blaming the recipe for a turn that never came back (#9266) 2026-08-19 03:21:20 -07:00
test_apt_distro_prompt.sh install.sh, setup.sh: apply the no-tty consent fix to the remaining sites (#7470) 2026-07-26 05:22:28 -07:00
test_clean_machine_install_name_tool_assert.sh Installer: suppress macOS uv developer tools dialog (#8479) 2026-08-11 12:19:30 -07:00
test_get_torch_index_url.sh Linux: resolve the ROCm version from every source, not the first that answers (#8414) 2026-08-11 05:55:17 -07:00
test_install_host_defaults.sh Anchor the host-defaults assertions and take the file off the skip list (#7774) 2026-08-03 02:42:26 -07:00
test_install_pipe_safety.sh Installer: wrap install.sh in a function so a piped install cannot report curl (56) (#7548) 2026-07-28 21:16:31 -07:00
test_install_python_guard.sh Installer: suppress macOS uv developer tools dialog (#8479) 2026-08-11 12:19:30 -07:00
test_install_rollback_lifecycle.sh Surface actionable installer failures in Studio desktop (#7529) 2026-07-28 10:19:44 +02:00
test_install_sh_xpu_flavor_probe.sh Add Intel Arc GPU detection and XPU PyTorch install to Windows installer (#7706) 2026-08-04 03:03:10 -07:00
test_install_uv_override_space.sh Resolve latest mlx-vlm and route its new processors (#8251) 2026-08-09 15:39:34 +03:00
test_linux_deps_gate.sh Installer: stop requiring a developer toolchain on the consumer path (#7547) 2026-07-28 18:50:38 -07:00
test_llama_build_jobs.sh Studio: cap llama.cpp source build parallelism by RAM (#8061) 2026-08-07 04:12:10 -07:00
test_llama_degraded_tauri_mode.sh Studio setup: report a missing llama.cpp in Tauri mode instead of aborting the install (#7720) 2026-08-01 04:12:25 -07:00
test_mac_intel_compat.sh Installer: suppress macOS uv developer tools dialog (#8479) 2026-08-11 12:19:30 -07:00
test_macos_clt_gate.sh Installer: suppress macOS uv developer tools dialog (#8479) 2026-08-11 12:19:30 -07:00
test_macos_uv_install_name_tool_guard.sh Installer: suppress macOS uv developer tools dialog (#8479) 2026-08-11 12:19:30 -07:00
test_macos_venv_python_preference.sh Installer: suppress macOS uv developer tools dialog (#8479) 2026-08-11 12:19:30 -07:00
test_node_decision.sh Studio: use an isolated Node.js for the frontend build instead of replacing the system Node/npm (#6533) 2026-06-21 21:17:29 -07:00
test_nvcc_meets_llama_minimum.sh Windows installer: fix DiskPart UAC mid-install, drive-root cache, and spurious unsloth.exe rename warning (#6296) 2026-06-22 03:09:08 -07:00
test_packaged_frontend_skip.sh Studio: skip redundant packaged frontend rebuilds (#8326) 2026-08-11 03:02:17 -07:00
test_previous_torch_pin.sh Add Intel Arc GPU detection and XPU PyTorch install to Windows installer (#7706) 2026-08-04 03:03:10 -07:00
test_redact_install_output.sh install: let UNSLOTH_TORCH_INDEX_FAMILY / _URL override CUDA wheel detection (#6692) 2026-07-20 00:58:52 -07:00
test_resolve_cuda_archs.sh studio/setup.sh: guard empty CUDA arch detection in the source build (#5854) (#6481) 2026-06-23 01:26:43 -07:00
test_rocm_version_source_disagreement.sh Linux: resolve the ROCm version from every source, not the first that answers (#8414) 2026-08-11 05:55:17 -07:00
test_setup_desktop_backend_version_fastpath.sh Studio: propagate required backend version to repair pipeline (#8610) (#8670) 2026-08-19 19:12:22 +01:00
test_setup_http_get.sh Installer: accept wget in studio/setup.sh, as install.sh already does (#7600) 2026-07-29 03:05:42 -07:00
test_setup_sh_denied_install_tree.sh Report a denied UNSLOTH_LOCAL_LLAMA_CPP_DIR instead of aborting on errexit (#8143) 2026-08-08 01:18:24 -07:00
test_setup_webview_cache_clear.sh Setup: clear stale WebView caches on install and update, keep user settings and data (#7361) 2026-08-07 06:35:01 -07:00
test_setup_xpu_fastpath_escape.sh Add Intel Arc GPU detection and XPU PyTorch install to Windows installer (#7706) 2026-08-04 03:03:10 -07:00
test_setup_xpu_posix_summary.sh Add Intel Arc GPU detection and XPU PyTorch install to Windows installer (#7706) 2026-08-04 03:03:10 -07:00
test_staged_validation_enabled.sh fix(studio): opt-in source-build GPU smoke validation (#7322) 2026-07-23 19:13:54 -07:00
test_strixhalo_wsl_reroute.sh Studio: add UNSLOTH_SKIP_AUTOSTART installer flag (#7093) 2026-07-12 21:23:14 -07:00
test_studio_home_node_dir.sh Studio: use an isolated Node.js for the frontend build instead of replacing the system Node/npm (#6533) 2026-06-21 21:17:29 -07:00
test_system_node_readonly.sh Studio: use an isolated Node.js for the frontend build instead of replacing the system Node/npm (#6533) 2026-06-21 21:17:29 -07:00
test_tauri_install_exit_order.sh Windows installer: fix DiskPart UAC mid-install, drive-root cache, and spurious unsloth.exe rename warning (#6296) 2026-06-22 03:09:08 -07:00
test_tauri_retry_failure_context.sh Repair the Tauri retry test against the download-marker pipeline (#8996) 2026-08-16 07:40:19 -07:00
test_torch_constraint.sh tests: stop the installer constraint test counting occurrences (#7503) 2026-07-27 06:42:20 -07:00
test_torch_flavor.sh Add Intel Arc GPU detection and XPU PyTorch install to Windows installer (#7706) 2026-08-04 03:03:10 -07:00
test_uninstall_arg_guard.sh Close two false passes in the uninstaller argument tests, and document the piped help form (#7690) 2026-08-01 03:02:44 -07:00
test_uninstall_prebuilt_artifacts.sh Uninstall the whisper.cpp prebuilt and the node/whisper install locks (#7686) 2026-08-01 03:03:30 -07:00
test_uninstall_sd_cpp_custom_root.sh Studio: install sd.cpp under the Studio home, not beside it (#8226) 2026-08-10 07:03:20 -07:00
test_uninstall_shared_icon.sh Make the uninstaller test suites run on macOS and Windows PowerShell 5.1 (#7643) 2026-07-30 04:09:02 -07:00
test_uninstall_webview_data.sh Fix two macOS installer bugs (#8279) 2026-08-09 22:40:14 -07:00
test_unsloth_torch_override.sh Installer: restore interrupted updates and clean stale rollback environments (#7342) 2026-07-23 01:29:53 -07:00
test_uv_pinned_release.sh Reduce antivirus false positives in the desktop installers (#8586) 2026-08-13 07:02:18 -07:00
test_with_llama_cpp_dir_flag.sh Windows: do not abort setup on an unreadable llama.cpp install (#7735) 2026-08-02 07:25:39 -07:00
test_with_llama_cpp_dir_link_behavior.sh Surface actionable installer failures in Studio desktop (#7529) 2026-07-28 10:19:44 +02:00
test_xpu_bitsandbytes_reachable.sh Add Intel Arc GPU detection and XPU PyTorch install to Windows installer (#7706) 2026-08-04 03:03:10 -07:00
test_xpu_torch_spec_parity.sh Add Intel Arc GPU detection and XPU PyTorch install to Windows installer (#7706) 2026-08-04 03:03:10 -07:00