Repository navigation
Fix DeepSeek reasoning test shim - #7169
Conversation
There was a problem hiding this comment.
Code Review
This pull request refactors the test helper function _kwargs_for in test_deepseek_v4_thinking_effort.py. It replaces the use of SimpleNamespace and manual descriptor binding with a mock LlamaCppBackend instance created via object.__new__ to directly invoke _request_reasoning_kwargs. There are no review comments, so I have no 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: Didn't find any major issues. Delightful! 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
SimpleNamespacetest shim with an uninitialized realLlamaCppBackendinstance.Root cause
_request_reasoning_kwargsnow delegates final normalization to_coerce_reasoning_effort. The test bound_request_reasoning_kwargsto aSimpleNamespace, so normal class method lookup was unavailable and four tests failed withAttributeError.Impact
This changes test setup only. Production backend behavior is unchanged. The test now exercises the same helper method resolution used by a real
LlamaCppBackendinstance, which makes it less likely to break when the production method delegates to another backend helper.Validation
main.uvenvironments.git diff --check.