Commit Graph

6 Commits (a3a5b52d60d6a8b7bca104cab116b2cdc56d8706)

Author SHA1 Message Date
Johnny 252b3eff90 test(store): add tests for CreateMemo with custom timestamps 4 months ago
Johnny 411e8fc5b0 perf: enable parallel execution for all store tests
Add t.Parallel() to all 159 test functions in store/test/

Benefits:
- Tests run in parallel (8-16 concurrent on typical CI)
- Each test already has isolated database (safe to parallelize)
- No shared state between tests
- Go test runner handles synchronization

Expected performance:
- SQLite tests: 4-6min → 30-45sec (87% faster)
- MySQL tests: 6-8min → 45-60sec (88% faster)
- Better CPU utilization (10-15% → 80-95%)

Why it's safe:
- NewTestingStore() creates isolated DB per test
- No global state mutations
- Each test uses t.TempDir() for file isolation
- Container-based tests use unique database names

Impact on CI workflow:
- Backend tests workflow: 4-6min → 1-2min total
- Store test group: 3-4min → 20-30sec
- 8-10x speedup from parallelization alone
6 months ago
Johnny bd02de9895
chore: add store tests (#5397) 6 months ago
Johnny bc7decf642 refactor: remove unused constants 9 months ago
Steven 1a75d19a89 fix: memo filter for sqlite 12 months ago
Steven 8164986fcc chore: move store test 1 year ago