ci: optimize test performance — from ~3h to 3.5s #35

Merged
Ichitux merged 2 commits from ci/optimize-test-performance into main 2026-07-14 11:08:42 +00:00
Owner
  • Lazy-load tesseract.js only in OCR route (skips 30MB WASM download)
  • Conditional tracing.js import (skip OTel gRPC in test mode)
  • Remove unused barcode-detector import
  • Add testTimeout/openHandlesTimeout to jest.config.js
  • Add --forceExitTimeout=30000 to test script
  • Split CI test jobs into parallel workflows (backend/frontend/mobile)
  • Add timeout-minutes: 15 to all test jobs
  • Use npm ci --ignore-scripts + selective native rebuild
- Lazy-load tesseract.js only in OCR route (skips 30MB WASM download) - Conditional tracing.js import (skip OTel gRPC in test mode) - Remove unused barcode-detector import - Add testTimeout/openHandlesTimeout to jest.config.js - Add --forceExitTimeout=30000 to test script - Split CI test jobs into parallel workflows (backend/frontend/mobile) - Add timeout-minutes: 15 to all test jobs - Use npm ci --ignore-scripts + selective native rebuild
Ichitux added 1 commit 2026-07-14 10:42:26 +00:00
ci: optimize test performance — from ~3h to 3.5s
Run Tests on Branches / Frontend Tests (push) Has been cancelled
Run Tests on Branches / Frontend Mobile Tests (push) Has been cancelled
Run Tests on Branches / Backend Tests (push) Has been cancelled
Run Tests on Branches / Detect Changes (push) Successful in 13s
e3db56715b
- Lazy-load tesseract.js only in OCR route (skips 30MB WASM download)
- Conditional tracing.js import (skip OTel gRPC in test mode)
- Remove unused barcode-detector import
- Add testTimeout/openHandlesTimeout to jest.config.js
- Add --forceExitTimeout=30000 to test script
- Split CI test jobs into parallel workflows (backend/frontend/mobile)
- Add timeout-minutes: 15 to all test jobs
- Use npm ci --ignore-scripts + selective native rebuild
Ichitux added 1 commit 2026-07-14 11:03:54 +00:00
fix: skip Redis connection in test mode — prevents CI hang
Run Tests on Branches / Detect Changes (push) Successful in 13s
Run Tests on Branches / Backend Tests (push) Successful in 2m9s
Run Tests on Branches / Frontend Tests (push) Has been skipped
Run Tests on Branches / Frontend Mobile Tests (push) Has been skipped
bd7fe56330
The top-level await redisClient.connect() in redis-client.js was
blocking module import when no Redis server is available (CI env).
Add NODE_ENV guard + reconnect strategy with max retries.
Ichitux merged commit 89cb8ee2fb into main 2026-07-14 11:08:42 +00:00
Ichitux deleted branch ci/optimize-test-performance 2026-07-14 11:08:42 +00:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Ichitux/FarmaFinder#35