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(quality): harden error handling, validation, and test isolation
- Replace all silent `_ = repo.*` calls in goroutine paths with
clearStateWithLog helper that logs warnings on cleanup failures
- Add debug.Stack() capture to recoverPipeline for post-mortem debugging
- Guard all sync.Map type assertions with ok checks in pollDebounceExpiry,
cancelPair, and launchAIStage
- Extract cleanupCtx() (5s timeout) for all cleanup repo calls that
previously used unbounded context.Background()
- Use dur.String() instead of .Milliseconds() for duration log fields
- Add MessageEvent.Validate() with bounds checks on all BotConfig fields;
called in handleEvent before processing
- Log client IP on auth failures in SecretMiddleware
- Cap ScanStates with maxPairs parameter (10_000 at call site) and warn
on truncation
- Centralise test Redis config in internal/testhelpers replacing hardcoded
DB numbers (1, 2, 3) across three test packages
- config.Load() now returns error instead of calling os.Exit
0 commit comments