You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(test): handle orphaned keys and improve server startup
Fix three issues affecting test reliability and server performance:
Backend improvements:
- Handle 404 errors for orphaned API keys in backfill migration
by marking them with `orphaned_` prefix instead of failing
- Move LiteLLM-dependent operations to background tasks using
setImmediate to prevent blocking server startup
- Add graceful handling for keys deleted in LiteLLM but still
present in database
Frontend test fix:
- Add missing /api/v1/banners mock endpoint to test handlers
to support BannerProvider in Layout component
Impact:
- Tests no longer fail due to missing banner endpoint
- Server startup is faster and more resilient
- Migration handles edge cases without verbose error logging
---
Signed-off-by: Guillaume Moutier <[email protected]>
Co-authored-by: Claude
0 commit comments