mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-19 00:01:29 +00:00
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:
parent
036007a4e9
commit
bb3ac0fb74
2 changed files with 4 additions and 3 deletions
2
Makefile
2
Makefile
|
|
@ -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:]]|$$)' || { \
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue