litellm/tests/test_litellm/proxy/db
Ishaan Jaff e0129710c8
fix(proxy): self-heal Prisma connection for auth and runtime (#21706)
* fix(proxy): add prisma reconnect primitive and db watchdog

* fix(proxy): start and stop prisma watchdog in lifecycle

* fix(auth): retry key lookup once after prisma reconnect

* test(proxy): add prisma self-heal watchdog coverage

* test(auth): cover reconnect-once behavior for key lookup

* refactor(auth): extract db reconnect helper and remove inline import

* fix(proxy): apply reconnect cooldown after attempt and add auth timeout path

* fix(auth): bound reconnect latency on key lookup path

* test(auth): assert reconnect timeout argument in key lookup

* test(proxy): verify reconnect cooldown timestamp set after attempt

* fix(proxy): harden prisma reconnect cycle semantics

* test(proxy): cover watchdog reconnect + timeout budget

* fix(proxy): bound watchdog probe and reconnect paths

* test(proxy): cover watchdog timeout and probe behavior

* fix(proxy): narrow prisma db connection error classification

* fix(proxy): add auth reconnect lock timeout budget

* fix(auth): pass lock timeout for db reconnect retries

* test(proxy): cover narrow prisma connection error detection

* test(proxy): add reconnect lock-timeout behavior coverage

* test(auth): assert reconnect lock timeout argument

* fix(proxy): avoid lock leak race in reconnect lock timeout path

* test(proxy): cover reconnect lock-timeout race cleanup
2026-02-20 18:11:36 -08:00
..
db_transaction_queue test_queue_flush_limit 2026-02-14 15:34:45 -08:00
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 [Feature] Track key last active timestamp 2026-02-18 23:11:58 -08:00
test_exception_handler.py fix(proxy): self-heal Prisma connection for auth and runtime (#21706) 2026-02-20 18:11:36 -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(proxy): self-heal Prisma connection for auth and runtime (#21706) 2026-02-20 18:11:36 -08: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