Skip to content

studio: fix openai route ci tests - #9952

Merged
danielhanchen merged 2 commits into
unslothai:mainfrom
mahiatlinux:fix/studio-8768-ci-tests
Aug 30, 2026
Merged

danielhanchen merged 2 commits into
unslothai:mainfrom
mahiatlinux:fix/studio-8768-ci-tests

Conversation

@mahiatlinux

Copy link
Copy Markdown
Contributor

#8768 changed Responses and Anthropic routing, current-subject propagation, and projector detection without updating the matching backend tests. Its merge introduced 19 Backend Python 3.13 failures compared with its first parent.

  • Pass the current subject to Responses adapter test doubles.
  • Match the two-step vision detection used by Responses and Anthropic routes.
  • Treat an omitted gguf_only value as false for non-streaming requests.
  • Locate projector checks relative to _maybe_auto_switch_model instead of a fixed source slice.

The async singleton failure was already fixed by 0d41a7203. This fixes the remaining 18 failures.

Checks

  • Ruff check passed.
  • Focused backend tests: 24 passed.

@mahiatlinux

Copy link
Copy Markdown
Contributor Author

@codex review

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Aug 29, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-08-30T03:03:33.529945Z 35f1de2 New commits
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Bravo.

Reviewed commit: 6e6583eeaf

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

mahiatlinux and others added 2 commits August 30, 2026 03:00
`captured.get("gguf_only", False) is streaming` passes for the non-streaming
case whether the route sends gguf_only = False or sends nothing at all, so it
would keep passing if the streaming branch stopped pinning GGUF and the key
simply went missing.

Only the streaming branch preflights in openai_responses, and it must pin. The
non-streaming one delegates to the chat route, whose own switch is right not to
pin, so it passes no gguf_only at all. Assert each of those directly.
@danielhanchen
danielhanchen force-pushed the fix/studio-8768-ci-tests branch from 6e6583e to 35f1de2 Compare August 30, 2026 03:01
@danielhanchen

Copy link
Copy Markdown
Member

Rebased this onto main and force-pushed, since it had gone conflicting. Two changes:

The test_responses_tool_passthrough.py hunk is dropped. #9114 landed the same fix on main (current_subject = None on the fake_chat_completions fakes) and that was the conflict. Those 15 tests already pass on main, so nothing here is lost. Your other two hunks rebased cleanly and are unchanged.

Second commit tightens one assertion. captured.get("gguf_only", False) is streaming passes the non-streaming case whether the route sends gguf_only = False or sends nothing at all, so it would stay green if the streaming branch stopped pinning GGUF and the key just went missing. Only the streaming branch preflights in openai_responses and it must pin; the non-streaming one delegates to the chat route, whose own switch is right not to pin and passes no gguf_only. Both are now asserted directly.

Verified on current main: test_openai_auto_switch.py, test_video_attachment_part.py and test_responses_tool_passthrough.py give 729 passed, 1 skipped. These 3 failures were the last ones in the Python 3.13 job after #9953 and #9959 merged.

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.

3 participants