Merge pull request #49754 from BerriAI/litellm_rc109_finish_integration_repairs

test(integration): finish rc/1.109.0 qualification repairs
This commit is contained in:
yuneng-jiang 2026-11-02 17:30:51 -08:00 • committed by GitHub
commit 6cd9a36ce5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 4 additions and 4 deletions

View file

@ -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[@]}" \

View file

@ -409,6 +409,7 @@ def test_cache_hit_post_call_reject_keeps_deployment_labels_anthropic(gateway: G
sdk: Final = anthropic.Anthropic(
base_url=str(rig.candidate.client.base_url),
api_key=rig.candidate.key,
auth_token=rig.candidate.key,
http_client=httpx.Client(trust_env=False, timeout=15),
)
sdk.messages.create(model=rig.model_name, max_tokens=16, messages=[{"role": "user", "content": text}])
@ -424,7 +425,7 @@ def test_cache_hit_post_call_reject_keeps_deployment_labels_anthropic(gateway: G
raised = True
assert raised, "cache-hit post_call guardrail did not reject /v1/messages"
assert rig.provider.received.qsize() == 1, rig.provider.drain()
_expect_metrics(rig, 1, 0, api_provider="anthropic", pf_id="None")
_expect_metrics(rig, 1, 0, api_provider="anthropic")
def test_cache_hit_post_call_reject_keeps_deployment_labels_responses(gateway: Gateway, tmp_path: Path) -> None:
@ -441,7 +442,7 @@ def test_cache_hit_post_call_reject_keeps_deployment_labels_responses(gateway: G
)
assert reject.status_code == 400, reject.text
assert rig.provider.received.qsize() == 1, rig.provider.drain()
_expect_metrics(rig, 1, 0, pf_id="None")
_expect_metrics(rig, 1, 0)
_assert_spend(_call_id(reject), rig)