e7bf85ca86fac94487bdd2ae7d75debcfef549ca
10 Commits
| Author | SHA1 | Message | Date | |
|---|---|---|---|---|
|
|
53fb25efcf |
fix(#1834): 批量修复 UP 系列静态分析警告(UP007/UP006/UP017/UP035) (#1928)
CI/CD Pipeline / Dedup Check - skip PR tests when covered by push pipeline (push) Successful in 2s
CI/CD Pipeline / Check push changed paths (push) Successful in 19s
CI/CD Pipeline / Build Staging API Image (push) Successful in 41s
CI/CD Pipeline / Build Staging Worker Image (push) Successful in 48s
CI/CD Pipeline / Integration Tests (push) Successful in 3m10s
CI/CD Pipeline / Validate - Python (mypy + alembic) (push) Successful in 3m17s
CI/CD Pipeline / Build Staging Web Image (push) Successful in 3m30s
CI/CD Pipeline / Validate - Style (push) Successful in 4m17s
CI/CD Pipeline / Deploy Staging (Watchtower auto-deploy) (push) Successful in 59s
CI/CD Pipeline / Frontend Unit Tests (push) Failing after 5m33s
CI/CD Pipeline / Validate - Security (push) Successful in 7m12s
CI/CD Pipeline / ACR Image Cleanup (push) Successful in 2m38s
CI/CD Pipeline / Staging API Integration Tests (push) Successful in 3m13s
CI/CD Pipeline / Unit Tests (push) Successful in 10m11s
CI/CD Pipeline / Production Browser E2E (push) Has been skipped
CI/CD Pipeline / Staging E2E Tests (push) Has been cancelled
CI/CD Pipeline / Build Production Worker Image (push) Failing after 26h14m3s
CI/CD Pipeline / PR Build Worker Image (push) Failing after 26h24m21s
CI/CD Pipeline / Retag skipped Staging API Image (push) Failing after 26h19m47s
CI/CD Pipeline / PR Build Web Image (push) Failing after 26h23m44s
CI/CD Pipeline / PR Build API Image (push) Failing after 26h23m44s
CI/CD Pipeline / Deploy Production (push) Failing after 26h13m23s
CI/CD Pipeline / Build Production Web Image (push) Failing after 26h13m26s
CI/CD Pipeline / CI Gate (push) Failing after 26h13m25s
CI/CD Pipeline / Build Production API Image (push) Failing after 26h13m26s
CI/CD Pipeline / Canary Release to Production (push) Failing after 26h13m23s
CI/CD Pipeline / Retag skipped Staging Web Image (push) Failing after 26h19m46s
CI/CD Pipeline / Frontend Lint (push) Failing after 26h23m37s
CI/CD Pipeline / Check if frontend-only change (push) Failing after 26h23m45s
CI/CD Pipeline / Retag skipped Staging Worker Image (push) Failing after 26h19m46s
Co-authored-by: xiaoxia <dev@xiaoxiajianji.com> Co-committed-by: xiaoxia <dev@xiaoxiajianji.com> |
||
|
|
e8e4928062 |
ci: fix migration safety check for tar.gz checkout environment
CI/CD Pipeline / Frontend Lint (pull_request) Successful in 1m14s
CI/CD Pipeline / Frontend Lint (push) Successful in 1m16s
CI/CD Pipeline / Unit Tests (pull_request) Successful in 3m18s
CI/CD Pipeline / Unit Tests (push) Successful in 3m48s
CI/CD Pipeline / Validate Code Quality And Tests (pull_request) Failing after 14m42s
CI/CD Pipeline / Validate Code Quality And Tests (push) Failing after 14m42s
CI/CD Pipeline / Integration Tests (pull_request) Successful in 1m47s
CI/CD Pipeline / Integration Tests (push) Successful in 1m51s
CI Build & Deploy Pipeline / Production Browser E2E (pull_request) Failing after 1485h4m19s
CI Build & Deploy Pipeline / Production Browser E2E (push) Failing after 1485h4m21s
CI Build & Deploy Pipeline / Build Production Worker Image (pull_request) Failing after 1485h4m21s
CI Build & Deploy Pipeline / Build Production Web Image (pull_request) Failing after 1485h4m21s
CI Build & Deploy Pipeline / Deploy Production (pull_request) Failing after 1485h4m20s
CI Build & Deploy Pipeline / Staging E2E Tests (pull_request) Failing after 1485h4m21s
CI Build & Deploy Pipeline / Deploy Production (push) Failing after 1485h4m21s
CI Build & Deploy Pipeline / Build Production API Image (pull_request) Failing after 1485h4m21s
CI Build & Deploy Pipeline / Staging API Integration Tests (push) Failing after 1485h4m23s
CI Build & Deploy Pipeline / Deploy Staging (Watchtower auto-deploy) (pull_request) Failing after 1485h4m22s
CI Build & Deploy Pipeline / Staging E2E Tests (push) Failing after 1485h4m23s
CI Build & Deploy Pipeline / Build Production API Image (push) Failing after 1485h4m23s
CI Build & Deploy Pipeline / Build Production Worker Image (push) Failing after 1485h4m23s
CI Build & Deploy Pipeline / Deploy Staging (Watchtower auto-deploy) (push) Failing after 1485h4m24s
CI Build & Deploy Pipeline / Build Staging Worker Image (pull_request) Failing after 1485h4m25s
CI Build & Deploy Pipeline / Build Staging Web Image (pull_request) Failing after 1485h4m25s
CI Build & Deploy Pipeline / Build Staging Worker Image (push) Failing after 1485h4m25s
CI Build & Deploy Pipeline / Build Staging API Image (pull_request) Failing after 1485h4m25s
CI Build & Deploy Pipeline / Build Staging API Image (push) Failing after 1485h4m25s
CI Build & Deploy Pipeline / Staging API Integration Tests (pull_request) Failing after 1485h36m13s
CI Build & Deploy Pipeline / Build Production Web Image (push) Failing after 1485h36m15s
CI Build & Deploy Pipeline / Build Staging Web Image (push) Failing after 1485h36m17s
|
||
|
|
0386b9b34e |
fix(ci): migration safety检查稳定性加固
CI/CD Pipeline / Frontend Lint (pull_request) Successful in 1m7s
CI/CD Pipeline / Frontend Lint (push) Successful in 1m8s
CI/CD Pipeline / Unit Tests (push) Successful in 2m27s
CI/CD Pipeline / Unit Tests (pull_request) Successful in 2m33s
CI/CD Pipeline / Validate Code Quality And Tests (pull_request) Failing after 16m38s
CI/CD Pipeline / Validate Code Quality And Tests (push) Failing after 16m38s
CI/CD Pipeline / Integration Tests (pull_request) Successful in 1m55s
CI/CD Pipeline / Integration Tests (push) Successful in 2m0s
CI Build & Deploy Pipeline / Production Browser E2E (pull_request) Failing after 1494h39m59s
CI Build & Deploy Pipeline / Deploy Production (pull_request) Failing after 1494h40m0s
CI Build & Deploy Pipeline / Production Browser E2E (push) Failing after 1494h40m0s
CI Build & Deploy Pipeline / Build Production Worker Image (pull_request) Failing after 1494h40m2s
CI Build & Deploy Pipeline / Deploy Production (push) Failing after 1494h40m1s
CI Build & Deploy Pipeline / Build Production Web Image (pull_request) Failing after 1494h40m2s
CI Build & Deploy Pipeline / Build Production API Image (pull_request) Failing after 1494h40m4s
CI Build & Deploy Pipeline / Build Production Worker Image (push) Failing after 1494h40m4s
CI Build & Deploy Pipeline / Build Production API Image (push) Failing after 1494h40m6s
CI Build & Deploy Pipeline / Staging API Integration Tests (pull_request) Failing after 1494h41m12s
CI Build & Deploy Pipeline / Staging API Integration Tests (push) Failing after 1494h41m12s
CI Build & Deploy Pipeline / Staging E2E Tests (pull_request) Failing after 1494h41m12s
CI Build & Deploy Pipeline / Deploy Staging (Watchtower auto-deploy) (pull_request) Failing after 1494h41m14s
CI Build & Deploy Pipeline / Staging E2E Tests (push) Failing after 1494h41m12s
CI Build & Deploy Pipeline / Deploy Staging (Watchtower auto-deploy) (push) Failing after 1494h41m14s
CI Build & Deploy Pipeline / Build Staging Worker Image (pull_request) Failing after 1494h41m15s
CI Build & Deploy Pipeline / Build Staging API Image (pull_request) Failing after 1494h41m16s
CI Build & Deploy Pipeline / Build Staging Worker Image (push) Failing after 1494h41m16s
CI Build & Deploy Pipeline / Build Staging Web Image (push) Failing after 1494h41m16s
CI Build & Deploy Pipeline / Build Staging API Image (push) Failing after 1494h41m16s
CI Build & Deploy Pipeline / Build Staging Web Image (pull_request) Failing after 1495h13m0s
CI Build & Deploy Pipeline / Build Production Web Image (push) Failing after 1495h11m51s
- API调用增加3次重试+指数退避,避免网络抖动导致降级全量扫 - 同时支持Gitea/GitHub环境变量命名(GITEA_* / GITHUB_*) - API失败时fallback到git diff方式找新增迁移 - 最后兜底才全量扫,并输出明确警告和排查建议 - 彻底解决历史迁移drop_column被误扫为高风险的flaky问题 |
||
|
|
e1b6ccaf0a |
fix(ci): 修复check_migration_safety.py的import排序(isort I001)
CI/CD Pipeline / Build Staging API Image (push) Has been cancelled
CI/CD Pipeline / Build Staging Worker 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 / Production Browser E2E (push) Failing after 1509h13m19s
CI/CD Pipeline / Build Production Worker Image (push) Failing after 1509h13m20s
CI/CD Pipeline / Build Production Web Image (push) Failing after 1509h13m21s
CI/CD Pipeline / Build Production API Image (push) Failing after 1509h13m23s
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 / Build Staging Web Image (push) Has been skipped
CI/CD Pipeline / Deploy Production (push) Failing after 1509h45m3s
|
||
|
|
8ebe970615 |
fix(ci): 重构migration增量检查 — 改用Gitea API替代git diff,彻底解决CI卡住问题
CI/CD Pipeline / Validate Code Quality And Tests (push) Has been cancelled
CI/CD Pipeline / Unit Tests (push) Has been cancelled
CI/CD Pipeline / Integration Tests (push) Has been cancelled
CI/CD Pipeline / Frontend Lint (push) Has been cancelled
CI/CD Pipeline / Build Staging API Image (push) Has been cancelled
CI/CD Pipeline / Build Staging Web Image (push) Has been cancelled
CI/CD Pipeline / Build Staging Worker 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
- 移除 Prepare git for migration diff step(git init+fetch+diff方案在host runner上不稳定) - check_migration_safety.py 改用 Gitea Contents API 对比 develop 分支迁移文件列表 - 轻量可靠:1-2秒完成,不依赖git,不会卡住 - API失败时自动降级为全量检查 |
||
|
|
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 加类型标注 |
||
|
|
881eea9195 |
fix(api+ci): DELETE 204响应体全修复 + isort/black整理 + CI环境兼容 + 测试修复 (#286)
CI/CD Pipeline / Build & Push Staging (Watchtower auto-deploy) (push) Failing after 9s
CI/CD Pipeline / Staging API Integration Tests (push) Failing after 1544h21m30s
CI/CD Pipeline / Staging E2E Tests (push) Failing after 1544h21m31s
CI/CD Pipeline / Deploy Production (push) Failing after 1544h21m40s
CI/CD Pipeline / Build Production Runtime Images (push) Failing after 1544h21m40s
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 / Production Browser E2E (push) Failing after 1544h53m14s
CI/CD Pipeline / Frontend Lint (push) Has been skipped
fix(api+ci): DELETE 204响应体全修复 + isort/black整理 + CI环境兼容 + 测试修复 |
||
|
|
9c6c477f55 |
fix(backend): Phase 1 后端代码清理与修复
CI/CD Pipeline / Validate Code Quality And Tests (pull_request) Failing after 2m22s
CI/CD Pipeline / Unit Tests (pull_request) Failing after 2m24s
CI/CD Pipeline / Integration Tests (pull_request) Failing after 37s
CI/CD Pipeline / Production Browser E2E (pull_request) Failing after 1561h35m7s
CI/CD Pipeline / Build Production Runtime Images (pull_request) Failing after 1561h35m8s
CI/CD Pipeline / Deploy Production (pull_request) Failing after 1561h35m7s
CI/CD Pipeline / Build & Push Staging (Watchtower auto-deploy) (pull_request) Failing after 1561h35m9s
CI/CD Pipeline / Staging API Integration Tests (pull_request) Failing after 1561h35m7s
CI/CD Pipeline / Frontend Lint (pull_request) Has been skipped
CI/CD Pipeline / Staging E2E Tests (pull_request) Failing after 1562h6m43s
P0 关键修复: - P0-1: 注册接口添加 RateLimitMiddleware 限流保护 - P0-3: /metrics 端点添加 JWT 认证(移除匿名访问) - P0-4: 修复 Celery 任务名冲突(generation_task vs generate_video) - P1-5: JWT logout token 黑名单机制 P1 修复: - P1-1: forgot_password 硬编码 localhost → 使用 settings.APP_BASE_URL - P1-2: generation.py 直接创建 DB 连接 → 使用依赖注入 - P1-6: Image.open() 未关闭 → 统一使用 with 语句 - P1-7: 订阅续费事务修复 P2 代码质量: - P2-1: 修复 EditingMode 枚举重复定义 → 统一引用 shared 包 - P2-2: 修复 SMTP_FRON_NAME → SMTP_FROM_NAME 拼写 - P2-3: UserModel subscription_quota 类型统一为 float - P2-4: .env.production DATABASE_MAX_OVERFLOW 30 → 10 - 清理 15 处 except:pass(保留 2 处有注释说明的) - 禁用 SVG 上传(XSS 风险) - 删除 decode_token_unsafe() 不安全函数 - 简化 /ready 端点 - 删除 8 处死代码、10 个空文件/模块 - 合并 3 对 100% 重复函数 - 对齐 6 个废弃环境变量 v2 修复(代码审查后): - 修复密码重置路由路径: /password/forgot → /forgot-password, /password/reset → /reset-password(与前端 API 对齐) - 合并 _check_project_access: asset_libraries.py 和 edit_plans.py 中的重复函数统一到 _helpers.py(含空字符串守卫 + 中文错误信息) - 顺手修复: HTTPException 统一从 fastapi 导入(替换 starlette 导入) - OSS_ENDPOINT 拼写修复拆分为单独 PR,本 PR 不包含 |
||
|
|
3d4cb554b5 |
fix(ci): 修复数据库安全闸门误报,改为只对比main检查新增迁移
CI/CD Pipeline / Build & Push Staging (Watchtower auto-deploy) (push) Failing after 15h3m16s
CI/CD Pipeline / Frontend Lint (push) Failing after 15h5m54s
CI/CD Pipeline / Validate Code Quality And Tests (push) Failing after 15h5m54s
CI/CD Pipeline / Staging E2E Tests (push) Failing after 1673h37m47s
CI/CD Pipeline / Deploy Production (push) Failing after 1673h39m19s
CI/CD Pipeline / Build Production Runtime Images (push) Failing after 1673h39m21s
CI/CD Pipeline / Production Browser E2E (push) Failing after 1674h10m45s
- check_migration_safety.py 新增 --diff-against 参数,支持通过 git diff 只检查新增迁移 - CI 中 prepare git 环境并 fetch origin/main,安全闸门对比 main 分支 - 避免历史已执行迁移的破坏性操作导致误报 |
||
|
|
f767cdb136 |
feat(quality): 第一阶段质量保障 - 数据库安全闸门 + 生产回滚脚本 + E2E修复
CI/CD Pipeline / Validate Code Quality And Tests (push) Failing after 0s
CI/CD Pipeline / Frontend Lint (push) Failing after 0s
CI/CD Pipeline / Production Browser E2E (push) Failing after 0s
CI/CD Pipeline / Staging E2E Tests (push) Failing after 0s
CI/CD Pipeline / Build Production Runtime Images (push) Failing after 0s
CI/CD Pipeline / Build & Push Staging (Watchtower auto-deploy) (push) Failing after 0s
CI/CD Pipeline / Deploy Production (push) Failing after 0s
1. 数据库迁移安全检查 (scripts/check_migration_safety.py) - 检测 DROP TABLE / DROP COLUMN 等高风险破坏性变更 - 检测列类型变更、NOT NULL新增、重命名等中风险操作 - 只检查 upgrade 函数,忽略 downgrade 中的正常回滚操作 - 已加入 CI validate 闸门(--allow-medium-risk 模式) 2. 生产一键回滚脚本 (scripts/rollback_production.sh) - 支持指定版本镜像回滚 - 可选数据库版本回滚 - 健康检查确认服务正常 - 二次确认防误操作 3. E2E CI 修复 - staging-e2e checkout 从 actions/checkout@v4 改为自定义脚本(修复Gitea兼容性) - 缩小E2E范围到核心冒烟用例:登录/上传/生成 - 先保证稳定,再逐步扩大覆盖 |