Commit Graph

7 Commits

Author SHA1 Message Date
xiaoxia 981d965d89 feat(phase3): 下线/edit-plans/*旧路由 + 清理废弃代码 + 数据库冗余字段清理 (#657)
CI/CD Pipeline / Staging E2E Tests (push) Failing after 59s
CI/CD Pipeline / Production Browser E2E (push) Failing after 1383h40m38s
CI/CD Pipeline / Build Production Worker Image (push) Failing after 1383h40m42s
CI/CD Pipeline / Build Production Web Image (push) Failing after 1383h40m42s
CI/CD Pipeline / Check if frontend-only change (push) Failing after 1383h40m43s
CI/CD Pipeline / Validate Code Quality And Tests (push) Has been skipped
CI/CD Pipeline / Unit Tests (push) Has been skipped
CI/CD Pipeline / Integration Tests (push) Has been skipped
CI/CD Pipeline / Frontend Lint (push) Has been skipped
CI/CD Pipeline / Frontend Unit Tests (push) Has been skipped
CI/CD Pipeline / Build Staging API Image (push) Has been skipped
CI/CD Pipeline / Build Staging Web Image (push) Has been skipped
CI/CD Pipeline / Build Staging Worker Image (push) Has been skipped
CI/CD Pipeline / Deploy Staging (Watchtower auto-deploy) (push) Has been skipped
CI/CD Pipeline / Staging API Integration Tests (push) Has been skipped
CI/CD Pipeline / Build Production API Image (push) Failing after 1384h12m51s
CI/CD Pipeline / ACR Image Cleanup (push) Has been skipped
CI/CD Pipeline / Deploy Production (push) Failing after 1384h12m49s
Co-authored-by: xiaoxia <dev@xiaoxiajianji.com>
Co-committed-by: xiaoxia <dev@xiaoxiajianji.com>
2026-07-20 23:48:36 +08:00
CI Bot 6cbd08f666 fix(code-quality): 第一批代码质量修复 - 零风险项
CI/CD Pipeline / Production Browser E2E (pull_request) Failing after 1526h35m2s
CI/CD Pipeline / Staging E2E Tests (pull_request) Failing after 1526h35m3s
CI/CD Pipeline / Deploy Production (pull_request) Failing after 1526h35m3s
CI/CD Pipeline / Build Production Web Image (pull_request) Failing after 1526h35m3s
CI/CD Pipeline / Build Production Worker Image (pull_request) Failing after 1526h35m3s
CI/CD Pipeline / Build Staging Web Image (pull_request) Failing after 1526h35m3s
CI/CD Pipeline / Build Staging Worker Image (pull_request) Failing after 1526h35m3s
CI/CD Pipeline / Build Staging API Image (pull_request) Failing after 1526h35m3s
CI/CD Pipeline / Validate Code Quality And Tests (pull_request) Has been skipped
CI/CD Pipeline / Unit Tests (pull_request) Has been skipped
CI/CD Pipeline / Integration Tests (pull_request) Has been skipped
CI/CD Pipeline / Frontend Lint (pull_request) Has been skipped
CI/CD Pipeline / Staging API Integration Tests (pull_request) Failing after 1527h6m43s
CI/CD Pipeline / Deploy Staging (Watchtower auto-deploy) (pull_request) Failing after 1527h6m43s
CI/CD Pipeline / Build Production API Image (pull_request) Failing after 1527h6m43s
- 修复 ruff 配置:移除已废弃规则 W503/E704(ruff 0.14+ 不兼容)
- 修复 F541 (13处):f-string 无占位符改为普通字符串
- 修复 B017 (1处):pytest.raises(Exception) 改为 ValidationError
- 修复 vulture 死代码:trim_engine 中 if False 的三元表达式
- 修复 mypy var-annotated:SUNSET_VERSIONS 加类型标注
2026-07-15 00:51:36 +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 ed972a230c feat: 扩展剪辑模板体系 + 实现剪辑计划生成器
CI/CD Pipeline / Production Browser E2E (push) Failing after 1650h6m27s
CI/CD Pipeline / Deploy Production (push) Failing after 1650h6m30s
CI/CD Pipeline / Build Production Runtime Images (push) Failing after 1650h6m32s
CI/CD Pipeline / Validate Code Quality And Tests (push) Has been skipped
CI/CD Pipeline / Frontend Lint (push) Has been skipped
CI/CD Pipeline / Build & Push Staging (Watchtower auto-deploy) (push) Has been skipped
CI/CD Pipeline / Staging E2E Tests (push) Has been skipped
CI/CD Pipeline / Staging API Integration Tests (push) Has been skipped
2026-07-09 21:21:23 +08:00
灵应 6057ec18ce fix: 修复4个单元测试断言 — 中文错误消息适配 + FastAPI路由检查
CI/CD Pipeline / Frontend Lint (push) Failing after 27h6m12s
CI/CD Pipeline / Validate Code Quality And Tests (push) Failing after 27h6m12s
CI/CD Pipeline / Production Browser E2E (push) Failing after 1685h40m42s
CI/CD Pipeline / Build Production Runtime Images (push) Failing after 1685h40m46s
CI/CD Pipeline / Deploy Production (push) Failing after 1685h40m44s
CI/CD Pipeline / Build & Push Staging (Watchtower auto-deploy) (push) Failing after 1685h40m46s
CI/CD Pipeline / Staging E2E Tests (push) Failing after 1686h12m12s
- test_edit_plans_api: 状态校验断言改为包含'无效'关键词
- test_edit_plan_service: can_generate断言适配新错误消息
- test_config_schemas_and_ai_endpoints: AI推荐端点断言适配
- test_video_upload_fix_and_generated_api: 直接检查generated_videos router路由,
  绕过FastAPI 0.139.0 _IncludedRouter惰性包装
2026-07-08 09:48:14 +08:00
DevOps Bot c67aadcb2b chore: 修复 isort import 排序
CI/CD Pipeline / Frontend Lint (push) Failing after 75h39m10s
CI/CD Pipeline / Validate Code Quality And Tests (push) Failing after 75h39m22s
CI/CD Pipeline / Production Browser E2E (push) Failing after 1734h14m40s
CI/CD Pipeline / Deploy Production (push) Failing after 1734h14m42s
CI/CD Pipeline / Deploy Staging (push) Failing after 1734h14m44s
CI/CD Pipeline / Staging E2E Tests (push) Failing after 1734h14m42s
CI/CD Pipeline / Build Production Runtime Images (push) Failing after 1734h46m11s
2026-07-06 09:15:09 +08:00
灵应 48d7e01498 feat(edit-plans): AI推荐片段方案 + 封面生成接口 + config JSON schema 标准化
Deploy / Staging E2E Tests (push) Failing after 112h44m30s
Deploy / Deploy Staging (push) Failing after 112h47m19s
CI/CD Pipeline / Frontend Lint (push) Failing after 112h47m45s
CI/CD Pipeline / Validate Code Quality And Tests (push) Failing after 112h47m52s
Deploy / Production Browser E2E (push) Failing after 1771h21m57s
Deploy / Build Production Runtime Images (push) Failing after 1771h22m8s
Deploy / Deploy Production (push) Failing after 1771h53m32s
新增接口:
- POST /api/v1/edit-plans/{plan_id}/ai-recommend — AI分析素材推荐片段编排
- POST /api/v1/edit-plans/{plan_id}/generate-cover — AI智能选帧/生成封面

config 标准化:
- packages/domain/config_schemas.py: cover/title/subtitle/bgm 完整 schema 定义
- normalize_plan_config() / normalize_template_config() 自动填充默认值
- edit_plans create/update 和 edit_templates create/update 均已接入标准化

AI任务:
- apps/worker/worker_app/tasks/ai_tasks.py: stub实现,后续替换为真实AI服务
- Celery lazy import 已注册 run_ai_recommend / run_generate_cover

测试: 33个新用例覆盖 schema验证、AI任务、API端点、config标准化
2026-07-04 20:06:30 +08:00