Ishaan Jaff
a939fa37ae
fix(proxy): restore broad is_database_connection_error; add is_database_transport_error for reconnect ( #21796 )
...
Any PrismaError should be treated as a DB connection error for the
allow_requests_on_db_unavailable feature and 503 responses. The narrow
keyword-based check is now in is_database_transport_error, which is
what the reconnect logic in auth_checks.py should use.
Fixes test_delete_access_group_503_on_db_connection_error and
test_handle_authentication_error_db_unavailable failures caused by
PR #21706 narrowing is_database_connection_error.
2026-02-21 12:04:00 -08:00
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
Krish Dholakia
ef42461c1e
Litellm fix GitHub action testing ( #11163 )
...
* test: add __init__.py files
* refactor: rename test folder to avoid naming conflict
* test: update workflows
* test: update tests
* test: update imports
* test: update tests
* test: remove unused import
* ci(test-litellm.yml): add pytest retry to github workflow
* test: fix test
2025-05-26 14:41:42 -07:00