fix(rust): install proxy extra for retained callback integration tests

The integration fixtures import litellm.proxy.* guardrails (crowdstrike,
purview, proxy.utils), which import fastapi at module load. The install
target only synced base SDK deps, so those 12 tests failed with a
ModuleNotFoundError on fastapi in CI.
This commit is contained in:
Yujong Lee 2026-09-06 20:48:13 -07:00
parent 036007a4e9
commit bb3ac0fb74
2 changed files with 4 additions and 3 deletions

View file

@ -118,7 +118,7 @@ install-test-deps: install-proxy-dev
$(UV_RUN) prisma generate --schema litellm/proxy/schema.prisma
install-rust-python-test-deps:
$(UV) sync --inexact --frozen --no-default-groups --no-install-project
$(UV) sync --inexact --frozen --no-default-groups --no-install-project --extra proxy
install-helm-unittest:
@helm plugin list | grep -qE '^unittest[[:space:]]+0\.8\.2([[:space:]]|$$)' || { \

View file

@ -66,8 +66,9 @@ make test-rust-python
make lint-rust-python-fixtures
```
`test-rust-python` installs the locked SDK dependencies with uv, points
`PYO3_PYTHON` at the project interpreter, and runs
`test-rust-python` installs the locked SDK dependencies plus the `proxy` extra
(the integration fixtures import `litellm.proxy.*` guardrails, which need
`fastapi`) with uv, points `PYO3_PYTHON` at the project interpreter, and runs
`cargo test -p litellm-python-interop --tests --locked -- --include-ignored`.
`lint-rust-python-fixtures` runs pinned Ruff lint and formatting checks without
syncing the project environment