Skip to content

Remove dead code, fix mypy error, count bare-byte DRM allocations - #64

Closed
offbyonebit wants to merge 1 commit into
maintenance/rc1-local-follow-upfrom
claude/practical-darwin-q6a675
Closed

offbyonebit wants to merge 1 commit into
maintenance/rc1-local-follow-upfrom
claude/practical-darwin-q6a675

Conversation

@offbyonebit

Copy link
Copy Markdown
Owner

Summary

Small cleanup on top of the RC2 follow-up branch.

  • Remove unreferenced code: AgentError, format_assistant_tool_call, AutoTuner._last_used_at, gguf_vram_estimate, Router.backend_url_for, ChatStore.wipe (and the shutil import it left unused).
  • Type the entry_points() result in plugin discovery so mypy --check-untyped-defs src passes.
  • gpu_ownership: treat bare-number drm-total-* fdinfo values as bytes (the DRM spec allows a missing unit), and exclude all drm-total-cycles* counters explicitly. Added tests for both.

Testing

  • ruff: clean
  • mypy: no issues in 48 source files
  • pytest: 1129 passed, 1 skipped, 1 failed. The failure is test_semantic_search_requires_optional_dependency, which only passes when fastembed is not installed; with all extras it tries to download a model and was blocked by the sandbox proxy.

Not run: Windows, Alchemist, Lunar Lake, native GPU inference, Docker build.


Generated by Claude Code

Remove unreferenced AgentError, format_assistant_tool_call,
AutoTuner._last_used_at, gguf_vram_estimate, Router.backend_url_for and
ChatStore.wipe.

Type the entry_points() result in plugin discovery so mypy passes.

Treat bare-number drm-total-* fdinfo values as bytes so external
llama-server allocations without a unit suffix are detected, and exclude
drm-total-cycles* counters explicitly.
@offbyonebit

Copy link
Copy Markdown
Owner Author

Closing as superseded by merged PR #68 (48bc7e9), which is an ancestor of current main. Verified the original text patches against that merge and the four UI image blobs by Git blob SHA. The plugin annotation from #64 is present; its surrounding fallback also received a safer getattr check. No outstanding changes from these PRs remain.

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