Repository navigation
test(configuration): restore isolated gateway launcher imports - #51848
Merged
mateo-berri merged 1 commit intoNov 14, 2026
Merged
mateo-berri merged 1 commit into
mateo-berri merged 1 commit into
Conversation
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
mateo-berri
enabled auto-merge (squash)
November 14, 2026 19:00
Contributor
PR overviewNo security issues were found in this pull request. Reviews
|
mateo-berri
deleted the
litellm_flakeheal_20261114_test_gateway_launcher_logs_the_real_clie
branch
November 14, 2026 19:14
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
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
Restore the gateway launcher tests after the runtime source move so they can check real client addresses behind Rust again. Keep isolated Python and the existing worker command and access log assertions
Details
TLDR
Problem this solves
How it solves it
CI evidence
times_failed=2for the covered test in https://github.com/BerriAI/litellm/actions/runs/43614386285/job/132506140919After #51006,
gateway.launchlives belowlitellm/runtime. The harness uses-I, which ignoresPYTHONPATH. A gateway-only bootstrap adds that owned source directory and runs the same module. The regular proxy command and all assertions stay unchangedPre-Submission checklist
make lintpassesScreenshots / Proof of Fix
E2E exception at f00d8d7
Test harness import correction only, with real Rust forwarding and two Python workers. Tests also prove the supervised child retains the supervisor's isolated interpreter command. Rebase only added unrelated Bedrock vector store changes and preserved this diff
Setup used
sudo service postgresql start, local Redis, and the workflow's Rust gateway build fromlitellm/packaging/litellm-proxyCARGO_INCREMENTAL=0 uv run --no-project --with maturin==1.15.0 maturin build --profile dev --strip --out /home/ubuntu/scratchpad/heal-gateway-dist uv pip install --no-deps --python ../../../.venv/bin/python /home/ubuntu/scratchpad/heal-gateway-dist/*.whlThe first fixed run found the local gateway binary missing, so it failed the explicit no-fallback assertion. Installing it exactly as the workflow does resolved that environment gap before the five runs below. No assertion was bypassed
All runner commands used
DATABASE_URL=postgresql://postgres:postgres@127.0.0.1:5432/circle_test REDIS_HOST=127.0.0.1 REDIS_PORT=6379 INTEGRATION_WORKERS=2, with retries disabledUnchanged origin/main, gateway import never reached readiness
Same command after the fix and workflow binary setup
Whole file plus the other shared harness consumer
Mutation, temporarily return immediately from
_restore_peerand run the targeted command above. Access logs report the loopback or spoofed address instead of the real client, and both parameter variants failThe mutation was reverted exactly before committing
make lintexited 0Type
Test