Commit graph

2 commits

Author SHA1 Message Date
jeda
320a6c2799 feat(bd-1a6): Add comprehensive unit tests for errorGrouping module
Added extensive test coverage for error grouping functionality:

- Error categorization edge cases (syntax priority, case insensitivity)
- Advanced normalization tests (timestamps, hex strings, large numbers, UUIDs)
- Category-specific normalizer tests (network, timeout, resource, validation)
- Error group manager edge cases (trimming, merging, severity boundaries)
- Group management edge cases (rapid concurrent errors, mixed types, unique IDs)
- Statistics edge cases (empty manager, all categories)
- Time-based behavior tests (active/inactive transitions, severity downgrades)

Total: 65 passing tests covering error clustering logic, similarity detection,
group merging, and edge cases with different error patterns.

Co-Authored-By: Claude Worker <noreply@anthropic.com>
2026-03-04 03:50:58 +00:00
jeda
19097e7841 feat(bd-4jn): P4-004: Smart Error Grouping
Implement smart error grouping to cluster similar errors together and reduce
noise in the activity stream. Uses pattern matching on error messages and
stack traces to group related errors.

Features:
- Error categorization into 9 categories (network, permission, validation, etc.)
- Pattern-based fingerprinting for grouping similar errors
- Normalization of variable data (IPs, paths, UUIDs, timestamps)
- Severity calculation based on frequency and recency
- Integration with InMemoryEventStore for automatic error tracking

New files:
- src/errorGrouping.ts - Error grouping module
- src/errorGrouping.test.ts - Comprehensive test suite (34 tests)

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2026-03-03 11:53:27 +00:00