mirror of
https://github.com/BerriAI/litellm.git
synced 2026-11-13 08:52:02 +00:00
ci(integration): hand the uv cache to the test process
The lane exports UV_OFFLINE for itself and then starts pytest through env -i, which drops both that flag and the UV_CACHE_DIR the uv setup action points at its restored cache. The docs gate test builds the base tree with uv, so it looked in an empty default cache and then tried PyPI, which the lane blocks. Pass both variables to the test process, the way rc/1.109.0 already does, and drop the UV_OFFLINE line from the test that could not help without the cache.
This commit is contained in:
parent
d1a0cc6b24
commit
048d87a476
2 changed files with 2 additions and 5 deletions
|
|
@ -128,8 +128,6 @@ fi
|
|||
sudo iptables -L integration_only -n -v -x > "$results/egress-guard.txt"
|
||||
awk '$3 == "REJECT" && $1 > 0 { rejected=1 } END { exit !rejected }' "$results/egress-guard.txt"
|
||||
|
||||
export UV_OFFLINE=true
|
||||
|
||||
if [ "$mode" = parity ]; then
|
||||
export INTEGRATION_WORKERS=1
|
||||
else
|
||||
|
|
@ -257,6 +255,7 @@ elif [ "${INTEGRATION_COVERAGE:-0}" = 1 ]; then
|
|||
fi
|
||||
|
||||
env -i PATH="$PATH" HOME="$HOME" PYTHONPATH="$PYTHONPATH" \
|
||||
UV_OFFLINE=true UV_CACHE_DIR="$(uv cache dir)" \
|
||||
INTEGRATION_RUN_ID="$integration_identity" \
|
||||
DATABASE_URL="$DATABASE_URL" \
|
||||
"${shared_services[@]}" "${worker_coverage[@]}" \
|
||||
|
|
|
|||
|
|
@ -1,11 +1,9 @@
|
|||
from typing import Final
|
||||
|
||||
import openapi_docs_gate as gate
|
||||
import pytest
|
||||
|
||||
|
||||
def test_base_counts_imports_native_extension_from_detached_worktree(monkeypatch: pytest.MonkeyPatch) -> None:
|
||||
monkeypatch.setenv("UV_OFFLINE", "1")
|
||||
def test_base_counts_imports_native_extension_from_detached_worktree() -> None:
|
||||
expected_counts: Final = dict(gate.count_by_rule(gate.head_violations()))
|
||||
assert expected_counts
|
||||
assert dict(gate.base_counts("HEAD")) == expected_counts
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue