From bb3ac0fb74438e3c3e50df12c9613bce1664824b Mon Sep 17 00:00:00 2001 From: Yujong Lee Date: Sun, 6 Sep 2026 20:48:13 -0700 Subject: [PATCH] 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. --- Makefile | 2 +- litellm-rust/README.md | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 4fd2b23d53f..0fd9d8032b0 100644 --- a/Makefile +++ b/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:]]|$$)' || { \ diff --git a/litellm-rust/README.md b/litellm-rust/README.md index 74f28f61680..cf82418c0b0 100644 --- a/litellm-rust/README.md +++ b/litellm-rust/README.md @@ -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