Repository navigation
test(e2e): repair completion, SAIL, and spend-log fixtures - #43902
Merged
Merged
Conversation
yuneng-berri
had a problem deploying
to
e2e-changed
September 30, 2026 19:15 — with
GitHub Actions
Failure
yuneng-berri
had a problem deploying
to
e2e-changed
September 30, 2026 19:16 — with
GitHub Actions
Failure
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
yuneng-berri
marked this pull request as ready for review
September 30, 2026 19:43
Contributor
|
yucheng-berri
approved these changes
Sep 30, 2026
This was referenced Sep 30, 2026
yuneng-berri
added a commit
that referenced
this pull request
Oct 3, 2026
) * test(e2e): align completion, SAIL, and spend-log fixtures with supported contracts (#43902) Partial backport to rc/1.104.0: only the text completion endpoint test moves off the deprecated gpt-3.5-turbo-instruct to openai/gpt-5.4-nano. The SAIL, spend-log and coverage registry repairs target tests or behavior this line does not need for the e2e suite (cherry picked from commit e61733b) * test(ci): repair stale tests and flaky CI infrastructure (#43983) Partial backport to rc/1.104.0: only the Together AI structured-output e2e case moves to the hybrid reasoning backend with reasoning off, since the reasoning-only model it picked returned no content. The CI infrastructure and other test repairs are not needed for this line's e2e suite (cherry picked from commit 6ca90b9)
Merged
4 of 14 tasks
haowang1013
pushed a commit
to directivegames/litellm
that referenced
this pull request
Oct 12, 2026
…ted contracts (BerriAI#43902) Partial backport to stable/1.103.x: only the text completion endpoint test moves off the retired gpt-3.5-turbo-instruct to openai/gpt-5.4-nano with reasoning off. This line predates the OpenAI SDK rewrite of the test, so reasoning_effort goes through EndpointsClient.text_completions instead of extra_body. The SAIL, spend-log and coverage registry repairs are not needed for this line's e2e suite (cherry picked from commit e61733b)
This branch had an error being deployed
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.
TLDR
Problem this solves:
How it solves it:
Causes and scope
These are three test/harness repairs from E2E build 336, which tested
b370996b9d2fc9aaec356013a698711ee3e127cc. Product code is unchanged. Fresh main was checked at264b09ac8d5753f157ad65b529adf6f52ce869b7; relevant open PRs and subsequent main changes were checked for overlapCompletion: the original fixture receives an explicit retired-model 404 for
gpt-3.5-turbo-instruct. Main also marksbabbage-002anddavinci-002retired on September 28, so substituting either would keep a dead fixture.gpt-5.4-nanois supported through the existing chat-to-text bridge. The test still calls/v1/completionswithprompt, uses the real OpenAI SDK, and requires choices containing nonempty text. Explicitreasoning_effort: nonekeeps its small output budget available for visible text. This exercises the gateway's legacy endpoint compatibility, not a retired native OpenAI upstreamSAIL: the original PR #42840 says: “Under
drop_paramsthe value is dropped and the call runs and bills at asap”. Its preceding bullet covers unknown strings and non-string values. The pinned external harness enables global dropping. SAIL combines global and request settings, so request-level false cannot make that stack strict. The repaired live case explicitly enables dropping forbogusand5, computes the distinct base-tier price from returned usage, and checks both the cost header and persisted spend. Existing strict 400/no-upstream tests remain and gainbogus; drop tests now cover both global and request settings, parameter removal, and billingThe coverage registry gains a drop-mode entry and retains the strict-mode requirement as a visible gap. It does not claim strict proxy E2E coverage from unit tests
Decoder: the E2E schema only accepted strings, while the production contract accepts strings, lists, and structured modes. The observed
['post_call']aborted page decoding before health-key attribution. The repair models those shapes and tests paginated and unpaginated payloads with neighboring health rows and masked responses. Malformed numeric values still produce validation failures. Attribution and Presidio privacy assertions are unchanged; this does not establish the cause of the separate Presidio failuresValidation
make checkb370996b370996and base264b09aMutation edits and qualification scripts remain local and are absent from this diff
Screenshots / Proof of Fix
Real OpenAI calls through an isolated local proxy. Register each deployment with
POST http://127.0.0.1:54682/model/new,api_key: os.environ/OPENAI_API_KEY, and the backend named below. Temporary deployments were deleted afterwardBefore (264b09a)
completion-beforewithtext-completion-openai/gpt-3.5-turbo-instruct, then runcurl -sS http://127.0.0.1:54682/v1/completions -H "Authorization: Bearer $LITELLM_MASTER_KEY" -H "Content-Type: application/json" -d '{"model":"completion-before","prompt":"Finish this sentence in a few words: the capital of France is","max_tokens":32,"cache":{"no-cache":true}}'model_not_found: “The model gpt-3.5-turbo-instruct has been deprecated”After (18f4a93)
completion-afterwithopenai/gpt-5.4-nano, then run the same curl request usingcompletion-afterand adding"reasoning_effort":"none"object: text_completion,choices[0].text: "Paris.", prompt tokens 19, completion tokens 5Current-head CI
At
18f4a9311608f4900ab7dd7cd15576b3547d085b, OSV scanning fails on vulnerabilities in unchanged lockfiles (pyjwt2.14.0,urllib32.7.0, Next 16.3.3). Dependency updates are outside this PR. GitHub changed-E2E and OAuth await environment approval. Buildkite E2E #1215 started automatically with this product SHA and harnessce5cc5b08c5f92e864f32845a23afa89a944ba54; its image builds are still running. Other CI and review remain pending, so this draft is not qualified for mergePre-Submission checklist
Type
Test
Caveats
Medium
SAIL_API_KEYQA runbook