Skip to content

ci(unit): run the proxy-extras tests when a pull request touches proxy-extras - #52917

Merged
yuneng-berri merged 1 commit into
mainfrom
litellm_select_proxy_extras_tests
Nov 19, 2026
Merged

yuneng-berri merged 1 commit into
mainfrom
litellm_select_proxy_extras_tests

Conversation

@yuneng-berri

Copy link
Copy Markdown
Contributor

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 under tests/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 under litellm/proxy-extras/ now selects that test directory

Details

TLDR

Problem this solves:

How it solves it:

  • PACKAGE_TESTS maps litellm/proxy-extras to tests/unit/litellm_proxy_extras; any changed path under it selects every test_*.py there
  • pull requests that don't touch proxy-extras select exactly what they did before

Pre-Submission checklist

Please complete all items before asking a LiteLLM maintainer to review your PR

  • I have added meaningful tests
  • The handful of test files covering my change pass locally, e.g. 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 more
  • My PR passes all required CI/CD checks (e.g., lint, schema.d.ts sync check, etc.)
  • My PR's scope is as isolated as possible; it only solves 1 specific problem
  • Every automated review on my PR's latest commit has finished, and I have addressed or replied to each of its findings before requesting a maintainer review

Screenshots / Proof of Fix

Type

🚄 Infrastructure
✅ Test

Final Attestation

  • The tests check the right things, including the edge cases, and regressions in the respective real-world customer use-cases are not possible after this PR

…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/.
@yuneng-berri
yuneng-berri requested a review from a team November 19, 2026 19:42
@veria-ai

veria-ai Bot commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

PR overview

No security issues were found in this pull request.

Reviews

@yuneng-berri
yuneng-berri enabled auto-merge (squash) November 19, 2026 19:48
@yuneng-berri
yuneng-berri merged commit 12735df into main Nov 19, 2026
46 checks passed
@yuneng-berri
yuneng-berri deleted the litellm_select_proxy_extras_tests branch November 19, 2026 19:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants