Repository navigation
test: record the remaining hosted call replays in the store:false script - #544
franciscojavierarceo merged 3 commits into
Conversation
Add OpenAI reference recordings of mcp_call, web_search_call and code_interpreter_call items sent back with store: false, inline and by id, with the scenario script that records them and a characterization test. The rehydrate test now asserts the exact upstream input for all three types from previous_response_id, a conversation, a by-id replay and an inline replay. New unit tests pin how a replayed MCP call is named, including in a compaction summary. No gateway code changes. Part of vllm-project#492. Signed-off-by: Sohom Chakraborty <[email protected]>
Signed-off-by: Sohom Chakraborty <[email protected]>
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
| } | ||
|
|
||
| /// `read_file` listed after `read.file`, which takes the sanitized name they share. | ||
| const RENAMED_READ_FILE: &str = "mcp__files__read_file__33ad240685"; |
There was a problem hiding this comment.
@sohom-cs I dont think these unit tests are necessary. you have recorded the cassettes you should be doing integration tests in replayed_calls_characterization_test.rs should be sufficient
There was a problem hiding this comment.
Agreed, I removed the unit tests in 1225609. Per your #492 note there is no separate script or cassette directory any more: the replays are a STORE_FALSE_SUITE=hosted-calls suite in record_store_false_cassettes.sh with one cassette in store_false/, and replayed_calls_characterization_test.rs now checks every turn of that cassette. I can go back to the separate script and directory if you prefer.
|
@sohom-cs could you please resolve merge conflict and address the comment so that we can merge this in thank you |
As the vllm-project#492 close note asks, the replays the existing scenarios do not cover become STORE_FALSE_SUITE=hosted-calls of record_store_false_cassettes.sh instead of a separate script and cassette directory: an inline code_interpreter_call replay, and the mcp_call, web_search_call and code_interpreter_call items of a stored response sent back by id, as returned and as item_reference. The cassette keeps the OpenAI recordings of those requests. The separate script, replayed_calls/ and the unit tests that pinned model input are removed; replayed_calls_characterization_test.rs now checks the one cassette. ARCHITECTURE.md keeps the correction that replayed calls are lowered, and the API page drops its pointer to vllm-project#492. Signed-off-by: Sohom Chakraborty <[email protected]>
franciscojavierarceo
left a comment
There was a problem hiding this comment.
the hosted-call recordings now use the existing recorder, and the characterization test covers the recorded turns. looks good to me.
Summary
Following the #492 close note, the remaining
store: falsereplays (an inlinecode_interpreter_call, and the by-idreplays ofmcp_call,web_search_callandcode_interpreter_callitems) are recorded against OpenAI in a suite of the existingrecord_store_false_cassettes.shinstead of a new script and cassette directory. OpenAI accepts every request and main already lowers all three types (#505), so no gateway code changes; ARCHITECTURE.md no longer says a replayedmcp_callorweb_search_callis not lowered.Changes by API
No wire change: a recorder suite and its cassette, a characterization test, and docs.
Test Plan
STORE_FALSE_SUITE=hosted-calls, one cassette,store_false/store-false-hosted-calls-openai-reference-gpt-5.6-sol-nonstreaming.yaml(gpt-5.6-sol, every request HTTP 200). Turns 1-2 run the code-interpreter prompt withstore: falseand send its items back inline; turns 3-11, once each for anmcp_call, aweb_search_calland acode_interpreter_call, store the response that makes the call and send its output items back withstore: false, as returned and asitem_reference.replayed_calls_characterization_test.rsreads that cassette and checks every turn: status,store, declared tools, the item types sent and returned, and that the by-idreplays name the stored items.pre-commit run --files <changed files>: pass.cargo clippy -p agentic-server-core --all-targets -- -D warnings: clean.cargo test -p agentic-server-core --test replayed_calls_characterization_test --test relayed_stream_validation_test --test multi_agent_contract_test: pass.The cassette holds OpenAI's recordings of these exact requests, made with this PR's earlier separate script. Run against a stub server that returns them, the suite sends the same request bodies, replayed input included, and writes the same file byte for byte.
Not run: the gateway set, which needs MCP, web search and the code-interpreter runtime. The gateway also has no
item_referenceinput type, so it refuses theitem_referencereplays (turns 5, 8 and 11).