Repository navigation
ci(unit): run the proxy-extras tests when a pull request touches proxy-extras - #52917
Merged
Merged
Conversation
…y-extras The changed-tests lane only mirrors litellm/<dir>/<module>.py to tests/unit/<dir>/test_<module>.py. proxy-extras lives at litellm/proxy-extras/litellm_proxy_extras/ but its tests are in tests/unit/litellm_proxy_extras/, and migrations are .sql, so no proxy-extras change selected any test. #52787 merged a non-idempotent migration that way. Any change under litellm/proxy-extras/ now selects every test file in tests/unit/litellm_proxy_extras/.
Contributor
PR overviewNo security issues were found in this pull request. Reviews
|
yuneng-berri
enabled auto-merge (squash)
November 19, 2026 19:48
tin-berri
approved these changes
Nov 19, 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.
Handwritten 1-3 sentence description
pull requests only run the unit tests that mirror the files they change, and proxy-extras doesn't mirror: its code is under
litellm/proxy-extras/litellm_proxy_extras/and its tests undertests/unit/litellm_proxy_extras/. so no proxy-extras change, migrations included, ran any proxy-extras test, which is how #52787 merged a migration the DDL tests reject. any change underlitellm/proxy-extras/now selects that test directoryDetails
TLDR
Problem this solves:
select_changed_tests.pymapslitellm/<dir>/<module>.pytotests/unit/<dir>/test_<module>.pyand skips non-.pyfilesTestMigrationSQLIdempotencyonly ran after merge, on mainHow it solves it:
PACKAGE_TESTSmapslitellm/proxy-extrastotests/unit/litellm_proxy_extras; any changed path under it selects everytest_*.pytherePre-Submission checklist
Please complete all items before asking a LiteLLM maintainer to review your PR
uv run pytest tests/unit/<your_test_file>.py -v. Leave the suites (make test-unit-*,make test-unit) to CI: it finishes in ~15 minutes where a laptop takes an hour or moreScreenshots / Proof of Fix
tests/unit/test_select_changed_tests.py: 18 passed; with the selector change reverted, the 4 new tests failtest_litellm_proxy_extras_utils.pyType
🚄 Infrastructure
✅ Test
Final Attestation