Repository navigation
test(proxy): move utils, agent_endpoints and endpoint tests into tests/unit/proxy - #44006
Conversation
|
I'll fix CI failures and address comments from users with write access. I'll skip comments containing "(aside)".
|
|
6a6617c to
9a27bd5
Compare
c467f04 to
1ee9229
Compare
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
|
@greptileai review |
This comment has been minimized.
This comment has been minimized.
|
@greptileai |
|
That’s fair. |
082066c to
581c1c8
Compare
|
@greptileai review |
|
@greptileai review |
a240878 to
2f9fda7
Compare
21fba8f to
c79c50c
Compare
…s/unit/proxy Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
c79c50c to
c796fb3
Compare
TLDR
Problem this solves:
tests/test_litellm/proxystill holds utils, agent_endpoints and 27 small endpoint test dirstests/unit/proxy/<same path>How it solves it:
git mvof the 29 directories (141 files, all pure renames, no test file name collisions)disconnected_prismafixture intotests/unit/proxy/conftest.pyproxy-endpointsshard paths intest-unit.yml, shard name unchanged__init__.pyto the moved dirs that lacked one sotest_package_layout.pypassesPR 4 of 7, stacked on #44003
Screenshots / Proof of Fix
Coverage ledger
Same
ledger.pyas #43998, baseorigin/litellm_migrate_proxy_tests_p3Runs
The
proxy-endpointsshard command,env -iwith outbound sockets blocked,-n 4:14492 passed, 9 skipped, 1 xfailed. The four pre-existing destination files thattest-unit-proxy-db.ymlowns, run on their own:28 passed.assert_ci_coverage.pyprints OK in both modes, andtests/unit/test_package_layout.pypassesOutbound calls were checked with a probe that records every non loopback
socket.connect,connect_exandgetaddrinfowhile pytest-socket still blocks them. It recorded nothing across the moved set, so no test needed an HTTP stub hereNon-rename edits
.github/workflows/test-unit.ymlproxy-endpointsruns the moved dirs fromtests/unit/proxyand ignores the 4 destination filestest-unit-proxy-db.ymlalready owns, so each file runs in exactly one GHA shardtests/unit/proxy/conftest.pydisconnected_prismafixture and its stub classes, used by a moved utils testagent_endpoints/test_endpoints.pytests.test_litellm.proxy.*helper imports now point attests.unit.proxy.*utils/prisma_and_spend/_harness_smoke_test.pyMakefiletest-unit-proxy-miscpaths, plus--ignorefor the same 4 filestest-unit-proxy-db.ymlowns, matching the shardtests/proxy_behavior/spend/test_cache_activity.py__init__.py.circleci/scripts/unit_selection.shis unchanged: the moved files fall into theunitcatch-allType
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