5 Commits

Author SHA1 Message Date
wangdl
bda7f9d80a fix: BigInt comparison in MySQL test
All checks were successful
Deploy API Server / build-and-deploy (push) Successful in 49s
2026-06-19 22:15:39 +08:00
wangdl
cb9b56f0dc fix: remove status from AiAnalysisResult query (column doesn't exist)
All checks were successful
Deploy API Server / build-and-deploy (push) Successful in 48s
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-06-19 22:14:07 +08:00
wangdl
6e7f4b0219 fix: add updatedAt=NOW() to all INSERTs for NOT NULL columns
All checks were successful
Deploy API Server / build-and-deploy (push) Successful in 48s
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
EOF
)
2026-06-19 22:12:20 +08:00
wangdl
533b525496 fix: schema field corrections for AiAnalysisJob + User
All checks were successful
Deploy API Server / build-and-deploy (push) Successful in 47s
- User INSERT: add updatedAt=NOW() (NOT NULL, no default)
- AiAnalysisJob: retryCount→progress (column doesn't exist)

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-06-19 22:10:07 +08:00
wangdl
ffea415613 feat(M-AI-01-09): replace mock E2E with real API/Worker integration test
All checks were successful
Deploy API Server / build-and-deploy (push) Successful in 49s
- NEW test/helpers/mock-ai-provider.ts: Mock AI HTTP server with
  normal/timeout/429/500/invalid-json behavior controls
- NEW test/helpers/integration-harness.ts: spawn real API/Worker
  processes, HTTP helpers, PrismaClient-based DB helpers
- NEW test/m-ai-01-09.worker-int-spec.ts: real integration test
  using actual MySQL/Redis/BullMQ/HTTP (Active Recall, Feynman,
  Document Import, SIGKILL recovery, provider faults, idempotency)
- NEW test/jest-worker-integration.json: Jest config with NO mocks
- DELETE test/m-ai-01-09.e2e-spec.ts: removed mock-based pseudo-e2e
- UPDATE test/run-integration-ci.sh: uses real integration config
- UPDATE package.json: test:integration:worker uses real config

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-06-19 22:06:52 +08:00