Repository navigation
test(proxy): move proxy_server, _experimental and db tests into tests/unit/proxy - #44012
Merged
Merged
Conversation
Contributor
Author
|
I'll fix CI failures and address comments from users with write access. I'll skip comments containing "(aside)".
|
Contributor
|
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
1 task done
devin-ai-integration
Bot
force-pushed
the
litellm_migrate_proxy_tests_p4
branch
from
October 1, 2026 12:46
082066c to
581c1c8
Compare
devin-ai-integration
Bot
force-pushed
the
litellm_migrate_proxy_tests_p5
branch
2 times, most recently
from
October 1, 2026 14:13
08350ee to
2da439c
Compare
devin-ai-integration
Bot
force-pushed
the
litellm_migrate_proxy_tests_p4
branch
from
October 1, 2026 16:33
21fba8f to
c79c50c
Compare
devin-ai-integration
Bot
force-pushed
the
litellm_migrate_proxy_tests_p5
branch
from
October 1, 2026 16:33
2da439c to
8b8dc59
Compare
yuneng-berri
force-pushed
the
litellm_migrate_proxy_tests_p4
branch
from
October 1, 2026 17:52
c79c50c to
c796fb3
Compare
yuneng-berri
force-pushed
the
litellm_migrate_proxy_tests_p5
branch
from
October 1, 2026 17:53
8b8dc59 to
7814e2c
Compare
…/unit/proxy Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
…target paths Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
yuneng-berri
force-pushed
the
litellm_migrate_proxy_tests_p5
branch
from
October 1, 2026 18:07
7814e2c to
4f02a99
Compare
yuneng-berri
approved these changes
Oct 1, 2026
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:
tests/test_litellm/proxystill holds the proxy_server, _experimental and db teststests/unit/proxy/<same path>How it solves it:
git mvof the three directories (165 files, all renames)_experimental/mcp_server/conftest.pyinto the destination one, which already has all four of its fixturesproxy-serverandproxy-infrashard paths intest-unit.yml, shard names unchangedPR 5 of 7, stacked on #44006
Screenshots / Proof of Fix
Coverage ledger
Same
ledger.pyas #43998, baseorigin/litellm_migrate_proxy_tests_p4The one deleted legacy file is the
mcp_server/conftest.pycollision, which holds fixtures and no testsOwnership
tests/unit/proxy/proxy_serverruns inproxy-server.tests/unit/proxy/dbruns inproxy-infra, except for the two filestest-unit-proxy-db.ymlalready owns (db_transaction_queue/test_e2e_pod_lock_manager.py,test_update_daily_tag_spend.py).tests/unit/proxy/_experimental/mcp_serveris already on themcp-integrationshard's unit-flag list in.circleci/scripts/unit_selection.sh, soproxy-infraignores it and each file runs in exactly one GHA shard.assert_ci_coverage.pyprints OK in every mode, andtests/unit/test_package_layout.pypassesRuns
tests/unit/proxy/proxy_server,tests/unit/proxy/dbandtests/unit/proxy/_experimental/mcp_server,env -iwith outbound sockets blocked,-n 4:7736 passed, 3 skipped. The 21test_semantic_tool_filter.pycases fail locally withNo module named 'semantic_router', the same as at the legacy path on the base, because that optional extra is missing from the local venv. Run separately, the two proxy-db-owned db files give4 passed, 8 skippedA probe recorded every non-loopback
socket.connect,connect_exandgetaddrinfoacross the moved set. After the two stubs below it recorded nothingNon-rename edits
.github/workflows/test-unit.ymlproxy-serverandproxy-infrapaths, plus the ignores described abovetests/unit/proxy/conftest.pyGATED_AUTO_ROUTER_CAPABILITIESis a tuple of dataclass instances, so each test got fresh copies and theislookup incount_capability_routersstopped matching, which made 8 license-limit tests inproxy_serverfail with DID NOT RAISE. Values that hold no list, dict, set or bytearray now keep their identityproxy_server/test_routes_onboarding.pyapi.pwnedpasswords.com. A respx route on the k-anonymity range URL now returns an unrelated suffix through the sharedhttpx_transportfixture. Returning the real suffix from that route turns the test redproxy_server/test_routes_utils.pyget_max_tokensfetched a model'sconfig.jsonfromhuggingface.co. A respx 404 on that exact URL pluslocal_model_cost_mapkeeps it offline. The asserted route 404 does not depend on that responseMakefiletest-unit-proxy-coreandtest-unit-proxy-miscpaths and the same proxy-db ignores as the shards.gitignoretest_mcp_server_manager.pytests/proxy_behavior/spend/test_autorouter_session_rollup.py,db/test_rds_iam_token_expiry.py,proxy_server/conftest.py,proxy_server/test_team_model_name_translation.py__init__.pylitellm/proxy/_experimental/mcp_server/AGENTS.mdandutils.pystill mention the old test path. They are production files, so PR 7 leaves them alone tooType
✅ Test
Final Attestation
Link to Devin session: https://app.devin.ai/sessions/d9bda95617da464e88d3619765819d0e
Open in Devin Desktop: https://app.devin.ai/desktop/session/d9bda95617da464e88d3619765819d0e?variant=devin