Skip to content

test(chatgpt): expect the provider code relayed on a streamed top-level rate limit - #54202

Merged
mateo-berri merged 1 commit into
mainfrom
litellm_flakeheal_20261124_test_chatgpt_stream_top_level_rate_limit
Nov 24, 2026
Merged

mateo-berri merged 1 commit into
mainfrom
litellm_flakeheal_20261124_test_chatgpt_stream_top_level_rate_limit

Conversation

@devin-ai-integration

Copy link
Copy Markdown
Contributor

Handwritten 1-3 sentence description

The ChatGPT streaming test for a top-level rate limit went red on main once the proxy began relaying the provider's own error code next to the message, which the test's expected error did not include. This PR adds that relayed code to the expected error, so the test again checks the whole error a client receives

Details

Link to Devin session: https://app.devin.ai/sessions/6710f2ac1e124ae5847ccef8a89cce54
Open in Devin Desktop: https://app.devin.ai/desktop/session/6710f2ac1e124ae5847ccef8a89cce54?variant=devin
Requested by: @mateo-berri

TLDR

Problem this solves:

  • test_chatgpt_stream_top_level_rate_limit_fails_with_the_provider_code_and_message is red on main
  • Failed the last 2 scheduled integration providers runs
  • Newest failing Job: AssertionError on an error that now carries provider_specific_fields

How it solves it:

Type

✅ Test

Screenshots / Proof of Fix

E2E exception at 452aabf: test-only change to one expected value, proven on the integration rig

All runs used INTEGRATION_WORKERS=1 INTEGRATION_SHARD_FILES=<this file> bash .github/scripts/ci/run_integration.sh providers against Postgres and Redis containers, the same script the integration providers job runs

  1. Unchanged origin/main: 1 failed, 1 passed, with the same AssertionError as CI
  2. On the fix, four times: 2 passed each time
  3. The old expectation is itself the mutation proof: without the relayed code in the response the whole-dict comparison fails

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

…el rate limit

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
@mateo-berri
mateo-berri enabled auto-merge (squash) November 24, 2026 18:02
@veria-ai

veria-ai Bot commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

PR overview

No security issues were found in this pull request.

Reviews

@mateo-berri
mateo-berri merged commit 5f23aa8 into main Nov 24, 2026
40 checks passed
@mateo-berri
mateo-berri deleted the litellm_flakeheal_20261124_test_chatgpt_stream_top_level_rate_limit branch November 24, 2026 18:07
mateo-berri added a commit to zoveki/litellm that referenced this pull request Nov 25, 2026
…el rate limit (BerriAI#54202)

Co-authored-by: mateo <277851410+mateo-berri@users.noreply.github.com>
Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
(cherry picked from commit 5f23aa8)
yuneng-berri added a commit that referenced this pull request Nov 28, 2026
…teg_e2e_tests

chore(release): backport #54092, #54111, #54112, #54202, #52923, #54246 and #54305 to rc/1.112.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant