Files
xiaoxia-saas/apps/api/app
CI Bot 6ffdef841b
CI/CD Pipeline / Build Staging API Image (pull_request) Has been skipped
CI/CD Pipeline / Build Staging Web Image (pull_request) Has been skipped
CI/CD Pipeline / Build Staging Worker Image (pull_request) Has been skipped
CI/CD Pipeline / Check if frontend-only change (pull_request) Successful in 45s
AI Code Review / AI Code Review (pull_request) Successful in 1m16s
CI/CD Pipeline / Frontend Lint (pull_request) Has been skipped
CI/CD Pipeline / Frontend Unit Tests (pull_request) Has been skipped
CI/CD Pipeline / Validate - Type Check (mypy) (pull_request) Successful in 1m49s
CI/CD Pipeline / Validate - Migration (alembic) (pull_request) Successful in 1m58s
CI/CD Pipeline / Deploy Staging (Watchtower auto-deploy) (pull_request) Has been skipped
PR Automation / Auto Merge on CI Green + Approved (pull_request) Successful in 1m15s
CI/CD Pipeline / PR Build Web Image (pull_request) Has been skipped
CI/CD Pipeline / Staging E2E Tests (pull_request) Has been skipped
CI/CD Pipeline / Staging API Integration Tests (pull_request) Has been skipped
CI/CD Pipeline / ACR Image Cleanup (pull_request) Has been skipped
CI/CD Pipeline / PR Build Worker Image (pull_request) Successful in 48s
PR Automation / Auto Approve on CI Green (pull_request) Successful in 3m48s
Preview Deploy / Deploy Preview Environment (pull_request) Successful in 3m3s
CI/CD Pipeline / PR Build API Image (pull_request) Successful in 2m26s
CI/CD Pipeline / Unit Tests (pull_request) Failing after 5m5s
CI/CD Pipeline / Validate - Code Quality (pull_request) Successful in 7m42s
CI/CD Pipeline / Build Production API Image (pull_request) Has been skipped
CI/CD Pipeline / Build Production Web Image (pull_request) Has been skipped
CI/CD Pipeline / Build Production Worker Image (pull_request) Has been skipped
CI/CD Pipeline / Canary Release to Production (pull_request) Has been skipped
CI/CD Pipeline / Deploy Production (pull_request) Has been skipped
CI/CD Pipeline / Production Browser E2E (pull_request) Has been skipped
CI/CD Pipeline / Integration Tests (pull_request) Successful in 3m7s
CI/CD Pipeline / CI Gate (pull_request) Failing after 9s
fix(cover): add plan.config.cover_candidates fallback in cover generation endpoint
Problem:
The cover generation endpoint (POST /generation/generate-cover) only
checks GenerationTask.cover_url through 3 fallback paths (A: direct
task_id, B: source_edit_plan_id, C: user+template). However, the
worker writes cover candidate frames to plan.config['cover_candidates']
during preview rendering, and this field was never read by the endpoint.

When GenerationTask.cover_url was empty (e.g., due to cover frame
extraction key mismatch or old data), the endpoint returned 400 even
though cover_candidates existed in plan.config.

Fix:
Add step D fallback that reads plan.config.cover_candidates[0] before
returning 400. This covers cases where:
- The worker wrote cover_candidates but GenerationTask.cover_url was
  not set (historical data, key mismatch)
- The cover frames were extracted during rendering but the task-level
  cover_url write was skipped

Also update the 400 warning log to indicate which steps were checked.
2026-08-22 20:40:37 +08:00
..
2026-07-03 18:49:54 +08:00
2026-07-03 18:56:16 +08:00