Skip to content

Studio: remove dead direct_linux_release_plan path - #7030

Merged
danielhanchen merged 1 commit into
mainfrom
studio-remove-dead-direct-linux-plan
Jul 9, 2026
Merged

danielhanchen merged 1 commit into
mainfrom
studio-remove-dead-direct-linux-plan

Conversation

@danielhanchen

Copy link
Copy Markdown
Member

Summary

parse_direct_linux_release_bundle and direct_linux_release_plan are dead code left over from an earlier refactor. Nothing in the live install flow reaches them:

  • Fork (unslothai/llama.cpp) Linux installs resolve through resolve_simple_install_release_plans -> _fork_manifest_release_plans -> _linux_published_attempts.
  • Upstream (ggml-org) installs use direct_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 raise NameError if it were ever executed.

Changes

  • Remove parse_direct_linux_release_bundle and direct_linux_release_plan from studio/install_llama_prebuilt.py.
  • Remove the obsolete TestDirectLinuxNvidiaCpuGate from tests/studio/install/test_selection_logic.py. Its live counterpart TestLinuxPublishedAttemptsNvidiaCpuGate already covers the "no silent CPU on NVIDIA hosts" behaviour on the fork-manifest path.

Net: 218 lines removed, no behaviour change.

Testing

  • ast.parse succeeds on both edited files.
  • python -m pytest tests/studio/install/test_selection_logic.py -> 245 passed.
  • Repo-wide grep confirms no remaining references to the removed symbols.

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.

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@danielhanchen

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Already looking forward to the next diff.

Reviewed commit: 8fe26c8723

ℹ️ 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".

@danielhanchen
danielhanchen merged commit fb5dc91 into main Jul 9, 2026
47 checks passed
@danielhanchen
danielhanchen deleted the studio-remove-dead-direct-linux-plan branch July 9, 2026 12:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant