feat(unified-render): Phase 2 - Feature Flag + RenderAdapter 适配层
CI/CD Pipeline / Frontend Lint (pull_request) Successful in 3m14s
CI/CD Pipeline / Validate Code Quality And Tests (pull_request) Failing after 24s
CI/CD Pipeline / Build & Push Staging (Watchtower auto-deploy) (pull_request) Has been skipped
CI/CD Pipeline / Build Production Runtime Images (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 / 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 2m14s

- 新增 RENDER_ENGINE 配置项(legacy/unified),支持运行时切换渲染引擎
- 新建 RenderAdapter 适配层:EditPlan + EditPlanClips → ResolvedClip 转换,素材下载,进度回调
- compose_video 任务改造:根据 RENDER_ENGINE 配置选择旧引擎或新引擎
- 新引擎结果回写字段对齐(engine/width/height/file_size)
- 新增 16 个单元测试,validate_plan/render_plan/download_assets 全覆盖
This commit is contained in:
灵应
2026-07-12 19:18:45 +08:00
parent ad86f5bc79
commit 2dbddf536e
6 changed files with 869 additions and 65 deletions
+3
View File
@@ -109,6 +109,9 @@ class Settings(BaseSettings):
LOG_LEVEL: str = "INFO"
CORS_ORIGINS_RAW: str = "http://localhost:3000,http://localhost:5173,http://localhost:8000"
# 渲染引擎选择:legacy=旧VideoComposeServiceunified=新UnifiedRenderService
RENDER_ENGINE: str = "legacy"
model_config = SettingsConfigDict(
env_file=".env",
env_file_encoding="utf-8",