From 9f0942ef04d383a70eb19f9233b9d1aab528fe45 Mon Sep 17 00:00:00 2001 From: Yuneng Jiang Date: Mon, 2 Nov 2026 16:39:07 -0800 Subject: [PATCH 1/2] test(integration): finish rc/1.109.0 qualification repairs --- .circleci/scripts/run_integration.sh | 3 +-- .../observability/test_cache_hit_guardrail_metrics.py | 4 ++-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/.circleci/scripts/run_integration.sh b/.circleci/scripts/run_integration.sh index fb91bcce77f..9f069f0a200 100644 --- a/.circleci/scripts/run_integration.sh +++ b/.circleci/scripts/run_integration.sh @@ -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[@]}" \ diff --git a/tests/integration/observability/test_cache_hit_guardrail_metrics.py b/tests/integration/observability/test_cache_hit_guardrail_metrics.py index 13cd2133d4f..3abb2a7e2be 100644 --- a/tests/integration/observability/test_cache_hit_guardrail_metrics.py +++ b/tests/integration/observability/test_cache_hit_guardrail_metrics.py @@ -424,7 +424,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 +441,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) From fbcc0e75bf7b3c1c765679f81787c6a6931e18b8 Mon Sep 17 00:00:00 2001 From: Yuneng Jiang Date: Mon, 2 Nov 2026 17:03:01 -0800 Subject: [PATCH 2/2] test(integration): bind Messages checks to gateway credentials --- .../observability/test_cache_hit_guardrail_metrics.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/integration/observability/test_cache_hit_guardrail_metrics.py b/tests/integration/observability/test_cache_hit_guardrail_metrics.py index 3abb2a7e2be..19b4efc1c7a 100644 --- a/tests/integration/observability/test_cache_hit_guardrail_metrics.py +++ b/tests/integration/observability/test_cache_hit_guardrail_metrics.py @@ -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}])