From e399ec52f1de87535c8b602bd7104cc7147e281f Mon Sep 17 00:00:00 2001 From: Yujong Lee Date: Sun, 6 Sep 2026 15:43:56 -0700 Subject: [PATCH] test(rust): run retained logging integration in CI --- .github/workflows/test-rust.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/.github/workflows/test-rust.yml b/.github/workflows/test-rust.yml index c6901411167..add38eb66e7 100644 --- a/.github/workflows/test-rust.yml +++ b/.github/workflows/test-rust.yml @@ -6,6 +6,7 @@ on: - "litellm-rust/**" - ".cargo/**" - "pyproject.toml" + - "uv.lock" - "rust-toolchain.toml" - ".github/actions/setup-uv-with-retries/**" - ".github/scripts/smoke_test_native_wheel.py" @@ -22,6 +23,7 @@ on: - "litellm-rust/**" - ".cargo/**" - "pyproject.toml" + - "uv.lock" - "rust-toolchain.toml" - ".github/actions/setup-uv-with-retries/**" - ".github/scripts/smoke_test_native_wheel.py" @@ -125,3 +127,15 @@ jobs: --config-setting "maturin.build-args=--features panic-test,extension-module" - run: python .github/scripts/smoke_test_native_wheel.py panic-dist/*.whl + + - name: Install locked SDK dependencies for retained callback tests + run: uv sync --frozen --no-default-groups --no-install-project --python 3.12 + + - name: Test retained callbacks with real Python logging + env: + PYO3_PYTHON: ${{ github.workspace }}/.venv/bin/python + PYTHONPATH: ${{ github.workspace }}:${{ github.workspace }}/.venv/lib/python3.12/site-packages + LITELLM_LOCAL_MODEL_COST_MAP: "True" + run: >- + cargo test --manifest-path litellm-rust/Cargo.toml + -p litellm-python-interop --test prepared_call --locked -- --include-ignored