mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-11 03:38:38 +00:00
fix(router): correct pod routing CI regressions
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
This commit is contained in:
parent
277f4b4218
commit
afb68249ba
2 changed files with 15 additions and 3 deletions
|
|
@ -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}")
|
||||
|
||||
|
|
|
|||
|
|
@ -163,8 +163,8 @@ export function LogDetailContent({
|
|||
</DescriptionItem>
|
||||
{podRouting && typeof podRouting === "object" && (
|
||||
<DescriptionItem label="Pod">
|
||||
{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
|
||||
</DescriptionItem>
|
||||
)}
|
||||
{logEntry.requester_ip_address && (
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue