Repository navigation
test(integration): expect the Exa search envelope's provider_metadata after #47423 - #47572
Conversation
… after #47423 Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
|
I'll fix CI failures and address comments from users with write access. I'll skip comments containing "(aside)".
|
|
@litereview code-review |
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
✅ code-review5/5 · Ready for human reviewScope: full · Full PR review. No correctness findings. The PR changes only test assertions. Both proxy tests now expect the Checks and execution details
View review · Reviewed |
[Low impact] This test-only change appears safe to merge SummaryUpdates two integration tests to expect
Reviews (1) · Last reviewed commit: "test(integration): expect the Exa search..." · Reviewed by Greptile |
|
bugbot run |
There was a problem hiding this comment.
✅ Bugbot reviewed your changes and found no new issues!
Comment @cursor review or bugbot run to trigger another review on this PR
Reviewed by Cursor Bugbot for commit f42d3c3. Configure here.
|
@litellm-stampbot |
litellm-stampbot: risk lowApproved at Rules (
Judge: skipped, the rules alone decided. Pushes do not re-run this check. Comment |
kerry-berri
left a comment
There was a problem hiding this comment.
Low risk by rule and by judgement at f42d3c3
TLDR
Problem this solves:
main/v1/searchenvelope withoutprovider_metadataHow it solves it:
provider_metadataincludedUser Flow
Before: CircleCI on
mainreportsintegration-managementandintegration-management-replicared for search testsintegrationworkflow onmain/v1/search/<tool>and get{"object": "search", "results": [...], "provider_metadata": {}}provider_metadatakey, so they failAfter: the same calls pass
integrationworkflow on this branch/v1/search/<tool>returns the same envelopeCircleCI
Red on
mainin scheduled pipeline 91428 at f5d6e89, jobs integration-management 2265272 and integration-management-replica 2265273The failing test ids are
tests/integration/authorization/test_search_tool_allowlist.py::test_search_tool_allowlist_refuses_other_tools_before_any_upstream_call[key], the same test with[team], andtests/integration/management/test_search_tool_crud.py::test_search_tool_create_update_delete_is_read_back_and_applied_without_restartThey first failed in scheduled pipeline 91412 at f4347d4 and passed in 91411 at 1ef59fa. The culprit in that range is ca0ec62 from #47423, which intentionally returns every Exa top-level key except
resultsasSearchResponse.provider_metadata. The SDK and wire tests it added already expect the field, but these two proxy tests still pinned the old shape. This PR updates only those assertions to the new envelopePR branch pipeline 91431 at f42d3c3. All three test ids pass there in integration-management 2265329 and integration-management-replica 2265341. Both jobs stay red for the deferred causes below. Every other failure in them is also red on
mainin 91428 or in the two scheduled runs before it, and no job green onmainwent redDeferred to their own PRs or later runs. The double spend from #47192 behind most
integration-accounting,integration-mcp,integration-costandintegration-managementbudget failures is #47510. The TypeSafe decisions cost and Arize span failures are #47508. Thereasoning_effort=none400s on gpt-5 intest_cursor_responses_wireandtest_azure_reasoning_effort_none_wireafter #43935 need a product call. Passthrough spend after #44795, Responses WebSocket turn admission after #45727, Gemini TTS billing after #44551, and the remaining single failures wait for the next run. Those jobs stay red on this branch for the same reasons they are red onmainPre-Submission checklist
Please complete all items before asking a LiteLLM maintainer to review your PR
uv run pytest tests/unit/<your_test_file>.py -v. Leave the suites (make test-unit-*,make test-unit) to CI: it finishes in ~15 minutes where a laptop takes an hour or moreDelays in PR merge?
If you're seeing a delay in your PR being merged, ping the LiteLLM Team on Slack (#pr-review).
Screenshots / Proof of Fix
This is a test-only change, so the proof is the three previously red test ids passing in the PR branch CircleCI pipeline linked above
Type
✅ Test
Final Attestation
The tests check the right things, including the edge cases, and regressions in the respective real-world customer use-cases are not possible after this PR
f42d3c3 passes /live-pr-risk
Link to Devin session: https://app.devin.ai/sessions/b0cfe4686d774b28a561d2416418ee27
Open in Devin Desktop: https://app.devin.ai/desktop/session/b0cfe4686d774b28a561d2416418ee27?variant=devin
Requested by: @mateo-berri
Note
Low Risk
Assertions-only; no runtime or API behavior changes in this PR.
Overview
Test-only fix so integration tests match the
/v1/searchresponse shape introduced in #47423.Successful search assertions in
test_search_tool_allowlist.pyandtest_search_tool_crud.pynow require"provider_metadata": {}alongsideobjectandresults. Full-response equality is unchanged—only the expected envelope is updated so scheduled CI stops failing on the missing key.Reviewed by Cursor Bugbot for commit f42d3c3. Bugbot is set up for automated code reviews on this repo. Configure here.