fix: cover.py import路径修正 app.database → app.dependencies
CI/CD Pipeline / Validate - Migration (alembic) (push) Successful in 2m2s
CI/CD Pipeline / Validate - Type Check (mypy) (push) Successful in 2m35s
CI/CD Pipeline / Build Staging Web Image (push) Successful in 2m38s
CI/CD Pipeline / Frontend Unit Tests (push) Failing after 3m11s
CI/CD Pipeline / Build Staging Worker Image (push) Successful in 5m17s
CI/CD Pipeline / Validate - Code Quality (push) Successful in 5m58s
CI/CD Pipeline / Unit Tests (push) Has been cancelled
CI/CD Pipeline / Integration Tests (push) Has been cancelled
CI/CD Pipeline / Build Staging API Image (push) Has been cancelled
CI/CD Pipeline / Deploy Staging (Watchtower auto-deploy) (push) Has been cancelled
CI/CD Pipeline / Staging E2E Tests (push) Has been cancelled
CI/CD Pipeline / Staging API Integration Tests (push) Has been cancelled
CI/CD Pipeline / Build Production API Image (push) Has been cancelled
CI/CD Pipeline / Build Production Web Image (push) Has been cancelled
CI/CD Pipeline / Build Production Worker Image (push) Has been cancelled
CI/CD Pipeline / Deploy Production (push) Has been cancelled
CI/CD Pipeline / Production Browser E2E (push) Has been cancelled
CI/CD Pipeline / ACR Image Cleanup (push) Has been cancelled
CI/CD Pipeline / Canary Release to Production (push) Has been cancelled
CI/CD Pipeline / CI Gate (push) Has been cancelled
CI/CD Pipeline / PR Build Worker Image (push) Failing after 864h57m44s
CI/CD Pipeline / Frontend Lint (push) Failing after 864h57m46s
CI/CD Pipeline / PR Build Web Image (push) Failing after 864h57m46s
CI/CD Pipeline / Check if frontend-only change (push) Failing after 864h57m48s
CI/CD Pipeline / PR Build API Image (push) Failing after 865h31m15s

get_db_session 定义在 app.dependencies 而非 app.database,
错误 import 导致 MediaKit 抽帧异常被吞,封面返回 SVG 占位图。
This commit is contained in:
CI Bot
2026-08-11 14:28:54 +08:00
parent b7e0de2e0e
commit d6f0eef929
@@ -188,7 +188,7 @@ def editor_generate_cover(
primary_video_url = None
if body.asset_ids and body.cover_type in ("ai_frame", "ai_regenerate"):
try:
from app.database import get_db_session
from app.dependencies import get_db_session
from packages.adapters.sqlalchemy_impl.asset_repository import SQLAlchemyAssetRepository
from packages.shared.storage import get_shared_storage_service