Repository navigation
Studio: remove dead direct_linux_release_plan path - #7030
Conversation
parse_direct_linux_release_bundle and direct_linux_release_plan are no longer reached by any live code path. Fork Linux installs resolve through _fork_manifest_release_plans -> _linux_published_attempts, and the upstream (ggml-org) path uses direct_upstream_release_plan. The dead parser also called _resolve_linux_bundle_profile, which no longer exists, so its CUDA branch would raise NameError if ever executed. Drop both functions and the obsolete TestDirectLinuxNvidiaCpuGate; its live equivalent TestLinuxPublishedAttemptsNvidiaCpuGate already covers the NVIDIA no-silent-CPU behaviour.
There was a problem hiding this comment.
Code Review
This pull request removes the unused parse_direct_linux_release_bundle and direct_linux_release_plan functions from studio/install_llama_prebuilt.py, along with their corresponding unit tests in tests/studio/install/test_selection_logic.py. There are no review comments, and I have no additional feedback to provide.
Important
The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.
|
@codex review |
|
Codex Review: Didn't find any major issues. Already looking forward to the next diff. 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". |
Summary
parse_direct_linux_release_bundleanddirect_linux_release_planare dead code left over from an earlier refactor. Nothing in the live install flow reaches them:unslothai/llama.cpp) Linux installs resolve throughresolve_simple_install_release_plans->_fork_manifest_release_plans->_linux_published_attempts.ggml-org) installs usedirect_upstream_release_plan.The only remaining references were the two definitions themselves plus one obsolete test class. The dead parser also called
_resolve_linux_bundle_profile, a helper that no longer exists in the tree, so its CUDA branch would raiseNameErrorif it were ever executed.Changes
parse_direct_linux_release_bundleanddirect_linux_release_planfromstudio/install_llama_prebuilt.py.TestDirectLinuxNvidiaCpuGatefromtests/studio/install/test_selection_logic.py. Its live counterpartTestLinuxPublishedAttemptsNvidiaCpuGatealready covers the "no silent CPU on NVIDIA hosts" behaviour on the fork-manifest path.Net: 218 lines removed, no behaviour change.
Testing
ast.parsesucceeds on both edited files.python -m pytest tests/studio/install/test_selection_logic.py-> 245 passed.