Commit graph

2 commits

Author SHA1 Message Date
04f174f6bb fix: Comprehensive test suite fixes for reliability
- Add test-utils.ts with mock embedding function
- Fix S3 tests to use mock embeddings instead of loading models
- Fix vector dimension mismatches in tests
- Update import paths for case-sensitive file systems
- Ensure proper S3 mock initialization with ListObjectsV2Command

All test infrastructure now properly mocked for fast, reliable tests
2025-08-18 09:23:42 -07:00
0ec21e96e6 feat: Add comprehensive S3 storage testing with mocks
CRITICAL: Ensures production reliability at scale

- Add aws-sdk-client-mock for S3 testing without AWS resources
- Create comprehensive test suite for ALL S3 operations
- Test statistics persistence, recovery, and partitioning
- Test rate limiting, throttling, and retry logic
- Test concurrent operations from multiple services
- Test data integrity with checksums
- Test batch operations and performance optimizations
- Simulate millions of records for scale testing
- Ensure backward compatibility with legacy formats

Also: Remove deprecated addSmart() method (functionality merged into add())

These tests are critical for production deployments where S3 is the primary
storage backend for scaled systems handling millions of records.
2025-08-18 08:48:14 -07:00