Repository navigation
test: update stale integration and e2e expectations for intended changes - #53940
Merged
Merged
Conversation
Brings nine tests in line with behavior that intentionally changed: - SSO client removal: /sso/key/generate without SSO now redirects to /ui/login (#53205) - budget partial update: /budget/info returns the app relation keys (#52477, #52787, #53232) - performance alerts opt-out: /alerts/monitoring returns thresholds (#52139) - cost margin rejection: the error names 'customer' as a valid key (#52406) - regional two-image generation: Gemini gets n single-image requests (#52103) - customer app budget key rotation: the rotated key's cleanup tolerates /key/regenerate - DeepSeek 401: the upstream error type is relayed (#53217) - vLLM rejected predicate: the plain upstream message is relayed (#53217). The case still fails on the non-OpenAI error type that #51809 fixes - /callbacks/list e2e: the Rust spend logger is listed as spend_log (#52182)
Contributor
PR overviewNo security issues were found in this pull request. Reviews
|
yucheng-berri
approved these changes
Nov 23, 2026
This was referenced Nov 23, 2026
mateo-berri
pushed a commit
to zoveki/litellm
that referenced
this pull request
Nov 25, 2026
Backport the affected integration tests from BerriAI#53940, BerriAI#49310, BerriAI#54111, BerriAI#48665, and BerriAI#49667. Upstream commits: 96ae5fa, fbd126e, c90dfea, 21ab2cb, da04c60 Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Handwritten 1-3 sentence description
[insert handwritten description here]
Details
TLDR
Problem this solves:
How it solves it:
test_effective_settings::test_an_sso_client_removed_.../sso/key/generatewithout SSO redirects to/ui/logintest_budget_updates::test_partial_update_keeps_sibling_budget_fieldstest_performance_alerts::test_opt_out_is_shared_...thresholdsto/alerts/monitoringtest_cost_margin_discount::test_discount_and_margin_...customera valid margin keytest_vertex_image_regional_uplift::...[regional-two-images]test_app_customer_budgets::test_rotating_a_virtual_key_.../key/regenerateswaps the token, so the old key's delete 404stest_openai_compatible_permission_denied_wire::test_guard_deepseek_upstream_401_...invalid_request_errortest_decisions_basic_hosted_vllm[...predicate_rejected]invalid_request_errortest_config_misc_endpoints_e2e::test_callbacks_list_reports_active_logging_callbacksspend_log) when a DB is presentPre-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
E2E exception at 101bda2. The diff only touches tests, and the proof is each updated test going from red to green on the same product code. Both legs ran the same integration nodes through
tests/integration/run.pyagainst a throwaway UTC Postgres. The before leg is main at 073ab00 with the old tests, and the after leg is the same commit with this diff applied.Command (run once per group, before and after)
Groups and nodes:
accounting(the app customer budgets rotation case, the cost margin test, the whole vertex image uplift file),database(the performance alerts opt-out test),management(the budget partial update and SSO client removal tests),providers(the whole DeepSeek permission-denied file and the whole hosted_vllm decisions file).The one accounting failure left after the change is
test_openai_style_image_deployment_is_untouched, a real billing bug from #52103 that this PR doesn't touch. In providers, the vLLMpredicate_rejectedcase still fails, and now its only difference istype: "BadRequestError"against the expectedinvalid_request_error. That's the real bug #51809 fixes.The e2e
/callbacks/listchange was checked against a DB-backed proxy, whose/callbacks/listincludesspend_logand not_ProxyDBLogger. That matches the Buildkite e2e failure on main and rc.Lint:
ruff check --config .github/linters/ruff-tests.tomlon the changed files passes, andtest_quality_gate.py,type_discipline_gate.py,ruff_strict_gate.pyandtype_check_gate.pypass against the merge base.basedpyrighton the changed e2e file reports 0 errors.Type
✅ Test
Caveats (if any)
Low
predicate_rejectedstays red until fix(openai): relay provider error codes, types, and Responses params from OpenAI-compatible backends #51809 relays only snake_case typestest_spendlogs_ledger_parity[team_member]is left to the open fix(auth): report unreadable team rows as 503 and open the rust db in the spend logs parity test #52923, which fixes the same fixture/callbacks/listinsteadQA runbook
DATABASE_URLand defaultgeneral_settingsspend_loginsuccess,failureorsuccess_and_failure(or_ProxyDBLoggerwithuse_spend_logs_ledger: false)Final Attestation