From afb68249ba20b64fe6c1ebd7a408f93fdc80eefd Mon Sep 17 00:00:00 2001 From: yassin Date: Sat, 3 Oct 2026 20:22:57 +0000 Subject: [PATCH] fix(router): correct pod routing CI regressions Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> --- .../test_spend_management_endpoints.py | 14 +++++++++++++- .../LogDetailsDrawer/LogDetailContent.tsx | 4 ++-- 2 files changed, 15 insertions(+), 3 deletions(-) diff --git a/tests/unit/proxy/spend_tracking/test_spend_management_endpoints.py b/tests/unit/proxy/spend_tracking/test_spend_management_endpoints.py index c27ad7ba0bf..f3f986cf0c3 100644 --- a/tests/unit/proxy/spend_tracking/test_spend_management_endpoints.py +++ b/tests/unit/proxy/spend_tracking/test_spend_management_endpoints.py @@ -6,6 +6,7 @@ import json import re import sqlite3 from datetime import timezone +from typing import Final from unittest.mock import AsyncMock, MagicMock, patch import pytest @@ -3745,7 +3746,18 @@ class TestSpendLogsPayload: } ) - differences = _compare_nested_dicts(payload, expected_payload, ignore_keys=ignored_keys) + expected_payload_with_pod_routing: Final[SpendLogsPayload] = { + **expected_payload, + "metadata": expected_payload["metadata"].replace( + '"routing_decision": null, ', + '"routing_decision": null, "kubernetes_pod_routing": null, ', + ), + } + differences = _compare_nested_dicts( + payload, + expected_payload_with_pod_routing, + ignore_keys=ignored_keys, + ) if differences: pytest.fail(f"Dictionary mismatch: {differences}") diff --git a/ui/litellm-dashboard/src/components/view_logs/LogDetailsDrawer/LogDetailContent.tsx b/ui/litellm-dashboard/src/components/view_logs/LogDetailsDrawer/LogDetailContent.tsx index e162f958399..bdeefa96462 100644 --- a/ui/litellm-dashboard/src/components/view_logs/LogDetailsDrawer/LogDetailContent.tsx +++ b/ui/litellm-dashboard/src/components/view_logs/LogDetailsDrawer/LogDetailContent.tsx @@ -163,8 +163,8 @@ export function LogDetailContent({ {podRouting && typeof podRouting === "object" && ( - {podRouting.pod_ip} · {KUBERNETES_POD_ROUTING_LABELS[podRouting.selection]} ·{" "} - {podRouting.pod_count} pods + {podRouting.pod_ip} · {KUBERNETES_POD_ROUTING_LABELS[podRouting.selection]} · {podRouting.pod_count}{" "} + pods )} {logEntry.requester_ip_address && (