litellm/tests/test_litellm/proxy/db
Ryan Crabbe 1de3b90db2 perf(proxy): pipeline Redis RPUSH/LPOP in spend update cycle
Replace 14 sequential Redis round-trips (7 RPUSH + 7 LPOP) per spend
update cycle with 2 pipelined calls (1 RPUSH pipeline + 1 LPOP pipeline).
This reduces connection pool contention at scale (50+ pods).

- Add RedisPipelineRpushOperation and RedisPipelineLpopOperation TypedDicts
- Add async_rpush_pipeline() and async_lpop_pipeline() to RedisCache
- Refactor store_in_memory_spend_updates_in_redis() to use pipeline
- Add get_all_transactions_from_redis_buffer_pipeline() for batched drain
- Update _commit_spend_updates_to_db_with_redis() to use pipeline drain
- Existing individual methods preserved for backward compatibility
2026-03-03 18:15:25 +05:30
..
db_transaction_queue perf(proxy): pipeline Redis RPUSH/LPOP in spend update cycle 2026-03-03 18:15:25 +05:30
mcp_server build(VLLM-Passthrough-with-loadbalancing-support-(enables-using-model-list-for-VLLM-/classify-endpoint)): Closes #11205 2025-05-31 09:00:04 -07:00
test_check_migration.py Litellm fix GitHub action testing (#11163) 2025-05-26 14:41:42 -07:00
test_db_spend_update_writer.py perf(proxy): pipeline Redis RPUSH/LPOP in spend update cycle 2026-03-03 18:15:25 +05:30
test_exception_handler.py fix(proxy): restore broad is_database_connection_error; add is_database_transport_error for reconnect (#21796) 2026-02-21 12:04:00 -08:00
test_prisma_client.py test_recreate_prisma_client_successful_disconnect 2025-08-01 15:38:48 -07:00
test_prisma_self_heal.py fix(tests): use counter-based mock for time.time in prisma self-heal test 2026-02-23 13:25:02 -03:00
test_rds_iam_token_expiry.py fix: proactive RDS IAM token refresh to prevent 15-min connection failed (#18795) 2026-01-08 23:53:36 +05:30
test_tool_registry_writer.py feat(proxy): tool policies - auto-discover tools + policy enforcement guardrail (#22041) 2026-03-03 18:14:57 +05:30