Commit Graph

5 Commits

Author SHA1 Message Date
xiaoxia 539c71f5cb feat(tts): 正式合成支持克隆音色、保存到配音库改写 assets 素材体系、克隆接口支持 asset_id
CI/CD Pipeline / Dedup Check - skip PR tests when covered by push pipeline (pull_request) Successful in 0s
CI/CD Pipeline / Check if frontend-only change (pull_request) Successful in 3m0s
Preview Deploy / Deploy Preview Environment (pull_request) Successful in 3m14s
PR Automation / Auto Merge on CI Green + Approved (pull_request) Successful in 3m20s
CI/CD Pipeline / Validate - Migration (alembic) (pull_request) Successful in 3m35s
CI/CD Pipeline / Validate - Type Check (mypy) (pull_request) Successful in 3m49s
CI/CD Pipeline / PR Build API Image (pull_request) Successful in 1m10s
AI Code Review / AI Code Review (pull_request) Failing after 4m17s
CI/CD Pipeline / PR Build Worker Image (pull_request) Successful in 1m12s
CI/CD Pipeline / Validate - Code Quality (pull_request) Successful in 6m2s
PR Automation / Auto Approve on CI Green (pull_request) Successful in 6m4s
CI/CD Pipeline / Integration Tests (pull_request) Successful in 2m5s
CI/CD Pipeline / Unit Tests (pull_request) Failing after 8m35s
CI/CD Pipeline / CI Gate (pull_request) Failing after 23s
CI/CD Pipeline / Production Browser E2E (pull_request) Failing after 407h0m37s
CI/CD Pipeline / Build Production Web Image (pull_request) Failing after 407h0m39s
CI/CD Pipeline / Build Production API Image (pull_request) Failing after 407h0m39s
CI/CD Pipeline / Canary Release to Production (pull_request) Failing after 407h0m37s
CI/CD Pipeline / Frontend Unit Tests (pull_request) Failing after 407h9m15s
CI/CD Pipeline / Deploy Production (pull_request) Failing after 407h0m37s
CI/CD Pipeline / Frontend Lint (pull_request) Failing after 407h9m15s
CI/CD Pipeline / Retag skipped Staging API Image (pull_request) Failing after 407h12m12s
CI/CD Pipeline / Build Staging Worker Image (pull_request) Failing after 407h12m14s
CI/CD Pipeline / Build Staging API Image (pull_request) Failing after 407h12m15s
CI/CD Pipeline / Staging API Integration Tests (pull_request) Failing after 407h12m9s
CI/CD Pipeline / Check push changed paths (pull_request) Failing after 407h12m17s
CI/CD Pipeline / ACR Image Cleanup (pull_request) Failing after 407h12m9s
CI/CD Pipeline / Staging E2E Tests (pull_request) Failing after 407h12m10s
CI/CD Pipeline / Deploy Staging (Watchtower auto-deploy) (pull_request) Failing after 407h12m11s
CI/CD Pipeline / Retag skipped Staging Worker Image (pull_request) Failing after 407h12m11s
CI/CD Pipeline / Build Production Worker Image (pull_request) Failing after 407h34m47s
CI/CD Pipeline / PR Build Web Image (pull_request) Failing after 407h43m21s
CI/CD Pipeline / Retag skipped Staging Web Image (pull_request) Failing after 407h46m19s
CI/CD Pipeline / Build Staging Web Image (pull_request) Failing after 407h46m23s
1. TTS synthesize() 复用 preview 的克隆音色解析逻辑:voice_id 传克隆 profile UUID 时
   校验归属(403)/克隆完成状态(400 音色克隆尚未完成),job.voice_id 存解析后的
   CosyVoice voice_id,voice_clone_profile_id 记录 profile id。
2. save_tts_job_to_library 改写为新素材体系:TTS 音频持久化独立副本到
   uploads/voice/tts/,创建 file_type=audio/status=ready 的 asset 挂用户 voice
   素材库(无则自动创建),duration/metadata(source=tts_job) 完整记录;
   返回结构保持 id/name/audio_url/duration 兼容前端;移除旧 voice_library 表写入。
3. voice clone 创建接口支持 asset_id 字段:校验素材归属与音频类型,用 asset
   storage_key 生成 7 天有效签名 URL 供 worker 下载,不依赖前端签名;
   source_audio_url 方式保留兼容。

补集成测试:synthesize 克隆音色 4 用例、save-to-library asset 断言、
clone from asset 5 用例(成功/404/403/非音频400/两参同传400)。
2026-08-30 16:12:57 +08:00
CI Bot 1a57878f76 chore(backend): Phase 3 清理 — 未使用依赖删除 + pyflakes 警告清零 + 测试文件冗余清理
CI/CD Pipeline / Validate Code Quality And Tests (pull_request) Failing after 1m12s
CI/CD Pipeline / Unit Tests (pull_request) Failing after 2m17s
CI/CD Pipeline / Integration Tests (pull_request) Failing after 1m33s
CI/CD Pipeline / Production Browser E2E (pull_request) Failing after 1559h12m3s
CI/CD Pipeline / Staging API Integration Tests (pull_request) Failing after 1559h12m3s
CI/CD Pipeline / Staging E2E Tests (pull_request) Failing after 1559h12m4s
CI/CD Pipeline / Build Production Runtime Images (pull_request) Failing after 1559h12m4s
CI/CD Pipeline / Build & Push Staging (Watchtower auto-deploy) (pull_request) Failing after 1559h12m4s
CI/CD Pipeline / Deploy Production (pull_request) Failing after 1559h43m37s
CI/CD Pipeline / Frontend Lint (pull_request) Has been skipped
1. 未使用依赖清理:
   - 从 requirements-base.txt 移除 cryptography 和 pyOpenSSL

2. pyflakes 警告清零 (apps/ + packages/ + tests/):
   - 移除 17 处未使用的 import (F401)
   - 修复 26 处未使用的局部变量 (F841):
     * 有副作用的赋值转为裸调用
     * 无副作用的赋值直接删除
   - 修复 1 处未使用的异常变量 (F841)
   - 修复 1 处空 except 块

3. 测试文件冗余清理:
   - 删除 tests/integration/test_project_management.py (模块级 skip,测试不存在的模块)
   - 删除 tests/integration/fixtures/duplication_routes_fixed.py (未被引用)

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-13 16:14:46 +08:00
xiaoxia ce4f73d4de fix(test): voice_clone集成测试断言修复
fix(test): voice_clone集成测试断言修复 - Mock默认改为异步模式(匹配真实CosyVoice API) - 创建/重试后状态断言从ready改为processing - 覆盖get_audio_url_signer依赖避免预签名干扰
2026-07-11 15:21:02 +08:00
灵应 32ab1a0561 chore: 修复black代码格式问题
CI/CD Pipeline / Frontend Lint (push) Failing after 1h3m24s
CI/CD Pipeline / Validate Code Quality And Tests (push) Failing after 1h3m24s
CI/CD Pipeline / Production Browser E2E (push) Failing after 1659h38m29s
CI/CD Pipeline / Staging E2E Tests (push) Failing after 1659h38m31s
CI/CD Pipeline / Build Production Runtime Images (push) Failing after 1659h38m33s
CI/CD Pipeline / Deploy Production (push) Failing after 1659h38m31s
CI/CD Pipeline / Build & Push Staging (Watchtower auto-deploy) (push) Failing after 1659h38m33s
CI/CD Pipeline / Staging API Integration Tests (push) Failing after 1660h10m0s
2026-07-09 11:51:04 +08:00
xiaoxia 3adce8c1f1 test(api): 补充P1级API集成测试(分类/摄入/生成视频/模板分类/仪表盘/声音克隆/TTS) (#193)
CI/CD Pipeline / Frontend Lint (push) Failing after 1h16m49s
CI/CD Pipeline / Validate Code Quality And Tests (push) Failing after 1h17m13s
CI/CD Pipeline / Production Browser E2E (push) Failing after 1659h51m27s
CI/CD Pipeline / Staging API Integration Tests (push) Failing after 1659h51m29s
CI/CD Pipeline / Staging E2E Tests (push) Failing after 1659h51m29s
CI/CD Pipeline / Build & Push Staging (Watchtower auto-deploy) (push) Failing after 1659h51m31s
CI/CD Pipeline / Deploy Production (push) Failing after 1660h22m58s
CI/CD Pipeline / Build Production Runtime Images (push) Failing after 1660h23m0s
2026-07-09 11:36:49 +08:00