litellm/tests/unit/redis/stores
yujonglee 9f5f234499
fix(rust_bridge): send warnings from unscoped native threads to the proxy log (#53539)
A tracing event reached the Python logger only on a thread a call had scoped.
A detached task on the Rust runtime has no scoped dispatch, so its warnings
were dropped. The failed auth cache invalidation publish was one of them, and
the integration test that waits for that warning never converged.

The extension now installs a process-wide sink when it loads. It takes
warnings and errors from LiteLLM targets on any thread no call scoped and
logs them without request correlation. Records from runtime threads go
through a bounded queue to one task that delivers them from the blocking
pool, so a slow log handler costs lines and never an async worker. A full
queue drops records and reports how many.

The failed publish warning also quotes and escapes its cache key so it stays
on one line.
2026-11-23 17:53:52 +09:00
..
__init__.py feat(redis): extend the native Redis foundation for the store families (#50169) 2026-11-06 12:30:07 +09:00
auth_cache_double.py refactor(auth_cache): type auth cache keys and keep the cache always native (#51130) 2026-11-21 17:20:30 +09:00
cache_invalidation_double.py refactor(auth_cache_invalidation): move the invalidation channel to the native client (#51135) 2026-11-21 18:58:27 +09:00
fake_rate_limits.py fix(dynamic_rate_limiter_v3): read a model's saturation from Redis so every worker agrees on it (#51519) 2026-11-12 19:15:21 -08:00
router_session_pins_memory.py feat(redis): serve the router's session pins from a native store (#50870) 2026-11-13 03:22:28 +00:00
router_usage_double.py refactor(redis): delete the Python RedisBatch now that every request op is native (#51383) 2026-11-13 03:22:28 +00:00
spend_counters_double.py refactor(redis): move per-request miss, settlement and shutdown-drain tracking from Python into Rust (#51384) 2026-11-20 17:57:37 +09:00
test_active_teams.py feat(redis): serve the dynamic rate limiter's active teams from a native store (#52995) 2026-11-20 10:58:19 +09:00
test_auth_cache.py refactor(auth_cache): type auth cache keys and keep the cache always native (#51130) 2026-11-21 17:20:30 +09:00
test_auth_cache_key.py refactor(auth-store): shape the cached virtual key in Rust and load it through one Python path (#53325) 2026-11-21 22:06:13 +09:00
test_cache_invalidation.py fix(rust_bridge): send warnings from unscoped native threads to the proxy log (#53539) 2026-11-23 17:53:52 +09:00
test_connection.py fix(redis): share one native circuit breaker between RedisCache and the Rust stores (#50473) 2026-11-07 17:50:06 +09:00
test_deployment_health.py feat(redis): serve the health checks' deployment states from a native store (#50357) 2026-11-13 03:22:28 +00:00
test_rate_limits.py refactor(redis): delete the Python RedisBatch now that every request op is native (#51383) 2026-11-13 03:22:28 +00:00
test_router_cooldowns.py refactor(redis): delete the Python RedisBatch now that every request op is native (#51383) 2026-11-13 03:22:28 +00:00
test_router_session_pins.py feat(redis): serve the router's session pins from a native store (#50870) 2026-11-13 03:22:28 +00:00
test_router_usage.py refactor(redis): move per-request miss, settlement and shutdown-drain tracking from Python into Rust (#51384) 2026-11-20 17:57:37 +09:00
test_spend_counters.py feat(proxy): add app groups with shared budgets and usage (#53232) 2026-11-21 12:50:58 -08:00