Repository navigation
ci: move caching, proxy-extras, gateway and enterprise tests into tests/unit and run them from litellm-tests - #42902
Conversation
…list and coverage upload on failure
… synthetic values and integration and e2e coverage
…d wire the gemini pass-through split
…ts/unit and run them from litellm-tests under their legacy flags
…ts/unit and run them from litellm-tests under their legacy flags
|
I'll fix CI failures and address comments from users with write access. I'll skip comments containing "(aside)".
|
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
|
Comments Outside DiffThese findings sit on lines the diff does not cover, so they could not be posted inline. Each one leaves this list once its file changes.
|
…ll_trees # Conflicts: # .circleci/tests.yml
4b0e503 to
d2054d6
Compare
bb62bba to
8f8d572
Compare
…ll_trees # Conflicts: # .circleci/tests.yml
|
On the gateway finding: tests/test_gateway/test_launch.py is unchanged, this PR only moves it. The destination follows the reviewed split plan, so it stays a rename here |
d1e2cda to
715975f
Compare
| # `fork-flag` names the `.circleci/tests.yml` job that now runs part of the | ||
| # shard under the same Codecov flag. CircleCI does not build pull requests from | ||
| # forks, so the shard still runs those files there and skips them elsewhere. |
There was a problem hiding this comment.
Unnecessary fork-flag comment The new comment repeats the workflow input description. AGENTS.md permits comments only for complex logic, tool inputs, or TODOs; remove it before merging
Context Used: AGENTS.md (source)
Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!
Stack 3/5 of the split of #42831 (reference PR, stays open until the stack lands). Below: #42901. Above: #42903. Carved from
litellm_ci_migration_proxy_miscat c17f440 withgit checkout <branch> -- <paths>andgit checkout -pfor the shared CI files, no rewritesTLDR
Problem this solves:
tests/unitlitellm-testsHow it solves it:
.circleci/scripts/unit_selection.shwithcaching-local,proxy-extras,enterprise-package,enterprise-routing,proxy-infratests.ymljob per flag withreruns: 2; generalunitshards exclude the legacy-owned pathstests/local_testingcaching files ->tests/unit/cachingtests/litellm-proxy-extras->tests/unit/litellm_proxy_extras,tests/test_gateway->tests/unit/gatewaytests/enterpriseandtests/test_litellm/enterprise->tests/unit/enterprisefork-flagin_test-unit-base.ymlandtest-unit.yml: drained GHA jobs keep their names and still run the moved paths on fork PRstests/unit/conftest.pyallowslocalhost(pytest-rerunfailures xdist status server), outbound hosts stay blockedassert_ci_coverage.py,Makefilehunks and the coverage test that ships with the scriptRenames
git diff -M --stat litellm_ci_mig_2_key_cleanup litellm_ci_mig_3_small_trees: 34 renames, 33 at 100 percent. The one at 99 percent istest_litellm_proxy_extras_utils.py, where three__file__-relative paths gain one../Type
🚄 Infrastructure
✅ Test
Screenshots / Proof of Fix
litellm-testson this head: https://app.circleci.com/pipelines/github/BerriAI/litellm/90348Locally, each flag through
unit_selection.shwith the CircleCI pytest flags under the sameenv -iallowlist with outbound network blocked: caching-local 44 passed, proxy-extras 78 passed, enterprise-routing 188 passed, enterprise-package 286 passed 4 skipped, proxy-infra 10 passed.assert_ci_coverage.pyreports every test file owned by a jobPre-Submission checklist
Final Attestation
Link to Devin session: https://app.devin.ai/sessions/d541aba7e5844703bab65085ef2d54b2
Open in Devin Desktop: https://app.devin.ai/desktop/session/d541aba7e5844703bab65085ef2d54b2?variant=devin