Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
OpenDAS
vllm_cscc
Commits
1e4a084c
Unverified
Commit
1e4a084c
authored
Feb 17, 2026
by
Flora Feng
Committed by
GitHub
Feb 17, 2026
Browse files
[CI] Fix flaky test_parsable_context (#34717)
Signed-off-by:
sfeng33
<
4florafeng@gmail.com
>
parent
7967e854
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
12 deletions
+19
-12
tests/entrypoints/openai/responses/test_parsable_context.py
tests/entrypoints/openai/responses/test_parsable_context.py
+19
-12
No files found.
tests/entrypoints/openai/responses/test_parsable_context.py
View file @
1e4a084c
...
...
@@ -172,19 +172,26 @@ async def test_mcp_tool_call(client: OpenAI, model_name: str):
assert
response
is
not
None
assert
response
.
status
==
"completed"
assert
response
.
output
[
0
].
type
==
"reasoning"
assert
response
.
output
[
1
].
type
==
"mcp_call"
assert
type
(
response
.
output
[
1
].
arguments
)
is
str
assert
type
(
response
.
output
[
1
].
output
)
is
str
assert
response
.
output
[
2
].
type
==
"reasoning"
# make sure the correct math is in the final output
assert
response
.
output
[
3
].
type
==
"message"
assert
any
(
s
in
response
.
output
[
3
].
content
[
0
].
text
for
s
in
(
"56088"
,
"56,088"
))
# test raw input_messages / output_messages
# The model may produce multiple reasoning/mcp_call rounds before the
# final message, so validate structurally rather than by exact index.
output_types
=
[
o
.
type
for
o
in
response
.
output
]
assert
"reasoning"
in
output_types
mcp_calls
=
[
o
for
o
in
response
.
output
if
o
.
type
==
"mcp_call"
]
assert
len
(
mcp_calls
)
>=
1
assert
type
(
mcp_calls
[
0
].
arguments
)
is
str
assert
type
(
mcp_calls
[
0
].
output
)
is
str
# The final output should be a message containing the correct answer
assert
response
.
output
[
-
1
].
type
==
"message"
assert
any
(
s
in
response
.
output
[
-
1
].
content
[
0
].
text
for
s
in
(
"56088"
,
"56,088"
))
# Test raw input_messages / output_messages
assert
len
(
response
.
input_messages
)
==
1
assert
len
(
response
.
output_messages
)
==
3
assert
any
(
s
in
response
.
output_messages
[
2
][
"message"
]
for
s
in
(
"56088"
,
"56,088"
))
assert
len
(
response
.
output_messages
)
>=
3
assert
any
(
s
in
response
.
output_messages
[
-
1
][
"message"
]
for
s
in
(
"56088"
,
"56,088"
)
)
@
pytest
.
mark
.
asyncio
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment