-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
Area
Backend — Database / Models
Category
Test coverage
Description
The store package is the data access layer wrapping PostgreSQL, Redis, ClickHouse, Kafka, and S3. It has 13 test files (1,199 lines) but key consistency paths are untested.
Priority test targets:
- Error group dual-write consistency (PostgreSQL → ClickHouse → Kafka)
- Cache invalidation after writes (manual Redis key deletion)
- Service upsert concurrency (ON CONFLICT behavior)
- Pagination edge cases (empty sets, single item, boundary cursors)
- GitHub rate limiting state transitions
Known risks:
- No optimistic locking — concurrent updates are last-write-wins
- Manual cache invalidation — missing invalidation = stale reads
- Inconsistent preloading patterns (GORM Preload vs manual map building)
See src/backend/store/MODULE.md for full analysis.
Affected Files / Packages
src/backend/store/stacktraces.go (299 lines)
src/backend/store/error_groups.go (199 lines)
src/backend/store/services.go (198 lines)
+ 14 more files, 13 test files
Reactions are currently unavailable