Commit Graph

7 Commits

Author SHA1 Message Date
CI Bot 599ca792b5 perf(ci): 用 ruff 替换 flake8,规则完全对齐,速度提升 10x+
- pyproject.toml: ruff select 只保留 E/F/W 与 flake8 对齐
- pyproject.toml: 补充 per-file-ignores 完全对齐(tests/* 加 F821,3 个单独排除文件)
- pyproject.toml: 移除 W503/E704(ruff 0.14+ 已废弃,原配置导致解析失败)
- requirements-dev.txt: flake8→ruff==0.14.0
- ci-cd.yml: flake8 步骤替换为 ruff check,删除独立的告警模式 ruff 步骤
- ruff 现为阻断级,速度比 flake8 快 10 倍以上
2026-07-15 10:08:53 +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
xiaoxia ea93387f98 feat(ci): 代码质量深度加固 - mypy/ruff/vulture告警接入
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 1533h32m4s
CI/CD Pipeline / Build Production Web Image (push) Failing after 1533h32m5s
CI/CD Pipeline / Build Production Worker Image (push) Failing after 1533h32m5s
CI/CD Pipeline / Build Production API Image (push) Failing after 1533h32m5s
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 / Deploy Production (push) Failing after 1534h3m44s
CI/CD Pipeline / Frontend Lint (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
feat(ci): 代码质量深度加固 - mypy/ruff/vulture 告警模式接入Validate

- ruff lint 告警模式接入:规则集与原flake8对齐 + bugbear摸底
- mypy 类型检查告警模式接入:检查核心业务代码
- vulture死代码扫描升级:置信度阈值70% + 按置信度排序
- 新增pyproject.toml ruff配置(保留原有black/isort/coverage配置)
- 所有新检查均为告警模式,不阻断CI
2026-07-14 17:56:15 +08:00
xiaoxia ad671d94c5 fix(voice-clone): source_audio_url 不做预签名转换,原样返回用户输入
CI/CD Pipeline / Production Browser E2E (push) Failing after 1603h36m49s
CI/CD Pipeline / Deploy Production (push) Failing after 1603h36m52s
CI/CD Pipeline / Build Production Runtime Images (push) Failing after 1603h36m54s
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
fix(voice-clone): source_audio_url 不做预签名转换,原样返回用户输入
2026-07-11 19:50:30 +08:00
xiaoxia 759c23c418 feat(ci): 覆盖率门禁+CI失败通知
feat(ci): 覆盖率门禁加固 + CI失败通知
- unit test 覆盖率门禁 60%
- integration test 覆盖率门禁 65%
- 覆盖率汇总输出(行/分支覆盖率)
- CI失败飞书卡片通知(CI_NOTIFY_WEBHOOK)
- Build summary 输出总覆盖率
2026-07-11 15:05:50 +08:00
xiaoxia 1e840057cb fix(ci): 修复 Validate job
CI/CD Pipeline / Validate Code Quality And Tests (push) Failing after 1m20s
CI/CD Pipeline / Production Browser E2E (push) Failing after 1608h44m54s
CI/CD Pipeline / Build Production Runtime Images (push) Failing after 1608h44m58s
CI/CD Pipeline / Build & Push Staging (Watchtower auto-deploy) (push) Failing after 1608h44m58s
CI/CD Pipeline / Deploy Production (push) Failing after 1608h44m56s
CI/CD Pipeline / Staging API Integration Tests (push) Failing after 1608h44m56s
CI/CD Pipeline / Frontend Lint (push) Has been skipped
CI/CD Pipeline / Staging E2E Tests (push) Failing after 1609h16m30s
fix(ci): 修复 Validate job — black 格式化 + isort 排序 + .cache 排除 + celery mock 路径修复
2026-07-11 14:42:53 +08:00
Xiaoxia AI bfbaddbd9a style: normalize python formatting gates 2026-06-21 06:52:19 +08:00