Repository navigation
test(e2e): bring the redis chaos load test and its config to main - #40876
Closed
devin-ai-integration[bot] wants to merge 1 commit into
Closed
devin-ai-integration[bot] wants to merge 1 commit into
devin-ai-integration[bot] wants to merge 1 commit into
Conversation
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Contributor
Author
🤖 Devin AI EngineerI'll be helping with this pull request! Here's what you should know: ✅ I will automatically:
Note: I can only respond to comments from users who have write access to this repository. ⚙️ Control Options:
|
devin-ai-integration
Bot
changed the base branch from
litellm_internal_staging
to
main
September 12, 2026 18:37
5 of 6 tasks
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:
e2e-redis-chaosa release-blocking rc gateload/test_redis_chaos_e2e.pyfrom the runner image built at the candidate SHAmainhas neither the chaos config nor the test, so the gate fails onmainHEADHow it solves it:
litellm_internal_stagingontomaintests/e2e/gateway/redis_chaos_ci_config.yml, theload/helpers, theredis_chaosmarker,psutiline2e-devUser Flow
Before: a release operator cuts an rc and the release gate goes red on the chaos step
mainHEADe2e-redis-chaosstep exits 1 with "This runner image carries no redis chaos config (its litellm revision predates the test)"chaos-not-passedAfter: the same rc run builds a runner image that carries the config and the test
mainHEAD with this PR mergedredis_chaos_ci_config.yml, the runner runsload/test_redis_chaos_e2e.pyand reports its verdicte2e-runande2e-redis-chaospassRelevant issues
Companion to BerriAI/project-releaser#238. The test itself landed on staging in #40482
Linear ticket
Pre-Submission checklist
uv run --no-sync pytest tests/e2e/load/test_phase_budget.py tests/e2e/load/test_proxy_usage.py tests/e2e/load/test_locust_load.py(41 passed), coverage registry tests (13 passed),E2E_REDIS_CHAOS=1 ... --collect-onlycollects the chaos test and it is deselected without the env varScreenshots / Proof of Fix
No proxy behavior changes here; this PR only ships test code and a test config to
main. The end-to-end proof is the rc pipeline'se2e-redis-chaosstep in project-releaser going from the "carries no redis chaos config" exit 1 to an actual test run once the runner image is built from amainSHA that includes this PRType
✅ Test
🚄 Infrastructure
Caveats (if any)
Medium
mainpasses it; the gate will tell us. The breaker and spend-tracking fixes the test was written against are on staging and only partly onmainmodels.py,e2e_config.py,conftest.pywere hand-ported and may show trivial merge overlapLow
.github/workflows/test-e2e-redis-chaos.ymlis included so the same test can be run by hand frommainvia workflow_dispatch; it is not wired to any trigger onmainQA runbook
uv run --no-sync litellm --config tests/e2e/gateway/redis_chaos_ci_config.yml --port 4000 --num_workers 4, note the master PID and log pathE2E_REDIS_CHAOS=1 E2E_PROXY_PID=<pid> E2E_PROXY_LOG=<log> LITELLM_PROXY_URL=http://localhost:4000 REDIS_HOST=127.0.0.1 REDIS_PORT=6379 uv run --no-sync pytest tests/e2e/load/test_redis_chaos_e2e.py -v -sCLIENT PAUSE ALLon Redis, run the chaos phase and report zero failed requests on /chat/completions and /v1/messagesFinal Attestation
Link to Devin session: https://app.devin.ai/sessions/84a7fe278ae44c09a9b0b4ed67fe4506
Open in Devin Desktop: https://app.devin.ai/desktop/session/84a7fe278ae44c09a9b0b4ed67fe4506?variant=devin