Skip to content

Commit b531440

Browse files
authored
Merge branch 'main' into remove_xfail
2 parents bc3a9d9 + e727908 commit b531440

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

tests/fixtures/guardrails.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ def guardrails_orchestrator(
6464
"otlpMetricsEndpoint": metrics_endpoint,
6565
"otlpTracesEndpoint": traces_endpoint,
6666
"enableMetrics": True,
67-
"enableTracing": True,
67+
"enableTraces": True,
6868
}
6969

7070
with GuardrailsOrchestrator(**gorch_kwargs, teardown=teardown_resources) as gorch:

tests/model_explainability/guardrails/test_guardrails.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -390,8 +390,7 @@ def test_guardrails_traces_in_tempo(
390390

391391
@retry(wait_timeout=Timeout.TIMEOUT_1MIN, sleep=5)
392392
def check_traces():
393-
services = requests.get(f"{tempo_traces_service_portforward}/api/services").json().get("data", [])
394-
393+
services = requests.get(f"{tempo_traces_service_portforward}/api/services").json().get("data") or []
395394
guardrails_services = [s for s in services if "guardrails" in s]
396395
if not guardrails_services:
397396
return False

tests/model_serving/model_server/llmd/utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -381,10 +381,10 @@ def get_scheduler_decision_logs(
381381

382382
# Get all logs from the scheduler pod
383383
# Note: The router-scheduler container is the default/main container
384-
raw_logs = router_scheduler_pod.log()
384+
raw_logs = router_scheduler_pod.log(container="main")
385385

386386
# Target decision message
387-
target_decision_msg = "Selecting pods from candidates sorted by max score"
387+
target_decision_msg = "Selecting endpoints from candidates sorted by max score"
388388

389389
# Filtering logs
390390
filtered_logs = "\n".join(line for line in raw_logs.splitlines() if target_decision_msg in line)

0 commit comments

Comments
 (0)