From 2d118fc5627adf697c161042b9359e506a78cb7f Mon Sep 17 00:00:00 2001 From: Yuneng Jiang Date: Wed, 5 Aug 2026 01:09:53 -0700 Subject: [PATCH] test: skip a streaming test that passes and fails on the same commit test_openai_stream_options_call_text_completion fails intermittently. ModelResponseStream.model_dump() raises "'MockValSer' object is not an instance of 'SchemaSerializer'" and the stream wrapper resurfaces it as an InternalServerError. It failed on 3c0b1db6 and passed on the rerun of that same commit, so the outcome does not depend on the tree. The cause is not confirmed. e8356c18d0 fixed a MockValSer crash in this same handler by normalizing provider logprobs, so a provider-shape serialization bug is at least as likely as test pollution, and the skip should come off once someone confirms which it is. --- tests/local_testing/test_streaming.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/tests/local_testing/test_streaming.py b/tests/local_testing/test_streaming.py index 10f351714e1..5cbdc38dbad 100644 --- a/tests/local_testing/test_streaming.py +++ b/tests/local_testing/test_streaming.py @@ -1807,6 +1807,15 @@ async def test_openai_stream_options_call(model, sync): ) +@pytest.mark.skip( + reason=( + "LIT-TBD: ModelResponseStream.model_dump() intermittently raises \"'MockValSer' object is " + "not an instance of 'SchemaSerializer'\", which the stream wrapper resurfaces as an " + "InternalServerError. Failed on 3c0b1db6 and passed on the rerun of that same commit. The " + "cause is unconfirmed: e8356c18d0 fixed a MockValSer crash in this same handler by " + "normalizing provider logprobs, so this may be a serialization bug rather than test pollution" + ) +) def test_openai_stream_options_call_text_completion(): litellm.set_verbose = False for idx in range(3):