Commit Graph

7 Commits

Author SHA1 Message Date
xiaoxia 3bc850dc0f fix(ci): 定时任务防僵尸自保——urlopen补超时+扫描墙钟上限+降频
CI/CD Pipeline / Dedup Check - skip PR tests when covered by push pipeline (push) Successful in 1s
CI/CD Pipeline / Validate - Code Quality (push) Has been cancelled
CI/CD Pipeline / Validate - Type Check (mypy) (push) Has been cancelled
CI/CD Pipeline / Validate - Migration (alembic) (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 Unit Tests (push) Has been cancelled
CI/CD Pipeline / Check push changed paths (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 / Retag skipped Staging API Image (push) Has been cancelled
CI/CD Pipeline / Retag skipped Staging Web Image (push) Has been cancelled
CI/CD Pipeline / Retag skipped 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
CI/CD Pipeline / ACR Image Cleanup (push) Has been cancelled
CI/CD Pipeline / Canary Release to Production (push) Has been cancelled
CI/CD Pipeline / CI Gate (push) Has been cancelled
AI Code Review / AI Code Review (pull_request) Has been cancelled
PR Automation / Auto Approve on CI Green (pull_request) Has been cancelled
Preview Deploy / Deploy Preview Environment (pull_request) Has been cancelled
Preview Cleanup / Cleanup Preview Environment (pull_request) Successful in 3m54s
ACR Cleanup / ACR Image Cleanup (pull_request_target) Waiting to run
PR Automation / Auto Merge on CI Green + Approved (pull_request) Failing after 387h27m32s
CI/CD Pipeline / PR Build Worker Image (push) Failing after 387h27m37s
CI/CD Pipeline / PR Build API Image (push) Failing after 387h27m37s
CI/CD Pipeline / Frontend Lint (push) Failing after 387h27m38s
CI/CD Pipeline / Check if frontend-only change (push) Failing after 387h27m41s
CI/CD Pipeline / PR Build Web Image (push) Failing after 388h1m47s
CI/CD Pipeline / Retag skipped Staging Web Image (pull_request) Failing after 388h18m22s
CI/CD Pipeline / Frontend Unit Tests (pull_request) Failing after 388h22m12s
CI/CD Pipeline / Dedup Check - skip PR tests when covered by push pipeline (pull_request) Successful in 5s
CI/CD Pipeline / Check if frontend-only change (pull_request) Successful in 3m31s
CI/CD Pipeline / Validate - Code Quality (pull_request) Successful in 7m17s
CI/CD Pipeline / Validate - Type Check (mypy) (pull_request) Successful in 3m44s
CI/CD Pipeline / Validate - Migration (alembic) (pull_request) Successful in 3m47s
CI/CD Pipeline / Unit Tests (pull_request) Successful in 18m25s
CI/CD Pipeline / Integration Tests (pull_request) Successful in 7m11s
CI/CD Pipeline / PR Build API Image (pull_request) Successful in 4m14s
CI/CD Pipeline / PR Build Worker Image (pull_request) Successful in 3m52s
CI/CD Pipeline / Retag skipped Staging Worker Image (pull_request) Failing after 387h44m10s
CI/CD Pipeline / Retag skipped Staging API Image (pull_request) Failing after 387h44m14s
CI/CD Pipeline / PR Build Web Image (pull_request) Failing after 387h48m0s
CI/CD Pipeline / Build Staging Worker Image (pull_request) Failing after 387h48m12s
CI/CD Pipeline / Build Staging Web Image (pull_request) Failing after 387h48m14s
CI/CD Pipeline / Build Staging API Image (pull_request) Failing after 387h48m16s
CI/CD Pipeline / Deploy Production (pull_request) Failing after 388h3m47s
CI/CD Pipeline / Staging API Integration Tests (pull_request) Failing after 388h16m32s
CI/CD Pipeline / Build Production Worker Image (pull_request) Failing after 387h29m38s
CI/CD Pipeline / Build Production Web Image (pull_request) Failing after 387h29m38s
CI/CD Pipeline / Build Production API Image (pull_request) Failing after 387h29m38s
CI/CD Pipeline / CI Gate (pull_request) Successful in 44s
CI/CD Pipeline / Check push changed paths (pull_request) Failing after 387h54m37s
CI/CD Pipeline / Production Browser E2E (pull_request) Failing after 387h29m36s
CI/CD Pipeline / Canary Release to Production (pull_request) Failing after 387h29m37s
CI/CD Pipeline / Staging E2E Tests (pull_request) Failing after 387h42m24s
CI/CD Pipeline / ACR Image Cleanup (pull_request) Failing after 387h42m20s
CI/CD Pipeline / Deploy Staging (Watchtower auto-deploy) (pull_request) Failing after 387h42m32s
CI/CD Pipeline / Frontend Lint (pull_request) Failing after 387h48m2s
P0修复:pr_auto_scan.py 的 api_request() 中 urlopen 无 timeout,
网络异常时永久阻塞(2026-08-30 实测卡死195分钟占满runner slot),
而 Gitea 1.26.4 的 timeout-minutes 对卡死job不生效。

改动:
1. pr_auto_scan.py: urlopen 加 timeout=15s + URLError/socket.timeout
   异常捕获(返回599);新增 --max-wall-seconds(默认240s)墙钟上限,
   到点主动退出;merge_pr 的 sleep(30) 改为可中断轮询
2. acr_cleanup.py: 7处 urlopen 补 timeout=30s(生产清理链路同款隐患)
3. auto_fix_formatting.py: 5处 urlopen 补 timeout=15s
4. pr-auto-scan.yml / ci-trigger-monitor.yml: schedule 从 */5 降到 */10,
   24h运行次数各减半(288→144),监控告警阈值同步为10分钟
2026-08-31 11:28:10 +08:00
xiaoxia 57f16364f1 fix: 修复 CI 单测隔离问题 + ruff 代码质量违规
CI/CD Pipeline / Check if frontend-only change (pull_request) Successful in 57s
CI/CD Pipeline / Build Staging Worker Image (push) Successful in 1m15s
CI/CD Pipeline / Validate - Type Check (mypy) (push) Successful in 2m8s
CI/CD Pipeline / Validate - Type Check (mypy) (pull_request) Successful in 2m25s
CI/CD Pipeline / Validate - Migration (alembic) (push) Successful in 2m38s
CI/CD Pipeline / Validate - Migration (alembic) (pull_request) Successful in 2m58s
CI/CD Pipeline / Build Staging Web Image (push) Successful in 4m56s
CI/CD Pipeline / Validate - Code Quality (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 Unit Tests (push) Has been cancelled
CI/CD Pipeline / Build Staging API 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
CI/CD Pipeline / ACR Image Cleanup (push) Has been cancelled
CI/CD Pipeline / Canary Release to Production (push) Has been cancelled
CI/CD Pipeline / CI Gate (push) Has been cancelled
CI/CD Pipeline / Validate - Code Quality (pull_request) Has been cancelled
CI/CD Pipeline / Unit Tests (pull_request) Has been cancelled
CI/CD Pipeline / Integration Tests (pull_request) Has been cancelled
CI/CD Pipeline / PR Build API Image (pull_request) Has been cancelled
CI/CD Pipeline / PR Build Web Image (pull_request) Has been cancelled
CI/CD Pipeline / PR Build Worker Image (pull_request) Has been cancelled
CI/CD Pipeline / Deploy Staging (Watchtower auto-deploy) (pull_request) Has been cancelled
CI/CD Pipeline / Staging E2E Tests (pull_request) Has been cancelled
CI/CD Pipeline / Staging API Integration Tests (pull_request) Has been cancelled
CI/CD Pipeline / Build Production API Image (pull_request) Has been cancelled
CI/CD Pipeline / Build Production Web Image (pull_request) Has been cancelled
CI/CD Pipeline / Build Production Worker Image (pull_request) Has been cancelled
CI/CD Pipeline / Deploy Production (pull_request) Has been cancelled
CI/CD Pipeline / Production Browser E2E (pull_request) Has been cancelled
CI/CD Pipeline / ACR Image Cleanup (pull_request) Has been cancelled
CI/CD Pipeline / Canary Release to Production (pull_request) Has been cancelled
CI/CD Pipeline / CI Gate (pull_request) Has been cancelled
AI Code Review / AI Code Review (pull_request) Has been cancelled
PR Automation / Auto Approve on CI Green (pull_request) Has been cancelled
Preview Deploy / Deploy Preview Environment (pull_request) Has been cancelled
CI/CD Pipeline / Frontend Unit Tests (pull_request) Failing after 500h46m9s
CI/CD Pipeline / Frontend Lint (pull_request) Failing after 500h46m11s
PR Automation / Auto Merge on CI Green + Approved (pull_request) Failing after 500h47m2s
CI/CD Pipeline / PR Build Worker Image (push) Failing after 500h47m45s
CI/CD Pipeline / Build Staging Worker Image (pull_request) Failing after 500h47m51s
CI/CD Pipeline / Frontend Lint (push) Failing after 500h48m32s
CI/CD Pipeline / PR Build Web Image (push) Failing after 500h47m47s
CI/CD Pipeline / Check if frontend-only change (push) Failing after 500h49m11s
CI/CD Pipeline / PR Build API Image (push) Failing after 500h47m49s
CI/CD Pipeline / Build Staging Web Image (pull_request) Failing after 500h47m53s
CI/CD Pipeline / Build Staging API Image (pull_request) Failing after 500h47m55s
- test_generated_video_creation_logic: 添加 teardown_class 恢复 setup_class
  中替换的 sys.modules 条目(video_processing.thumbnail_generator / dedup),
  避免 MagicMock 污染后续测试导致 4 个单测失败
- plan_generator_utils: 循环变量 seg_start 未使用 → _seg_start(B007)
- acr_cleanup: 移除未使用变量 open_pr_shas(F841)
- auto_fix_formatting: 移除未使用变量 head_branch_tmp / fix_mode(F841)
2026-08-26 18:36:37 +08:00
CI Bot 1230eaa24b style: auto-format with black + isort + prettier [skip ci-format-check]
CI/CD Pipeline / Validate - Type Check (mypy) (push) Successful in 2m11s
CI/CD Pipeline / Validate - Migration (alembic) (push) Successful in 2m19s
CI/CD Pipeline / Build Staging Worker Image (push) Successful in 3m4s
CI/CD Pipeline / Build Staging Web Image (push) Successful in 3m5s
CI/CD Pipeline / Frontend Unit Tests (push) Successful in 5m18s
CI/CD Pipeline / Build Staging API Image (push) Successful in 6m5s
CI/CD Pipeline / Validate - Code Quality (push) Successful in 6m37s
CI/CD Pipeline / Deploy Staging (Watchtower auto-deploy) (push) Successful in 31s
CI/CD Pipeline / ACR Image Cleanup (push) Successful in 35s
CI/CD Pipeline / Staging E2E Tests (push) Successful in 3m18s
CI/CD Pipeline / Unit Tests (push) Successful in 10m16s
CI/CD Pipeline / Integration Tests (push) Successful in 5m8s
CI/CD Pipeline / Staging API Integration Tests (push) Successful in 4m48s
CI/CD Pipeline / Canary Release to Production (push) Failing after 1177h51m30s
CI/CD Pipeline / Production Browser E2E (push) Failing after 1177h59m53s
CI/CD Pipeline / Build Production Worker Image (push) Failing after 1177h59m54s
CI/CD Pipeline / Build Production Web Image (push) Failing after 1177h59m54s
CI/CD Pipeline / Build Production API Image (push) Failing after 1177h59m54s
CI/CD Pipeline / PR Build Worker Image (push) Failing after 1178h10m9s
CI/CD Pipeline / PR Build API Image (push) Failing after 1178h10m10s
CI/CD Pipeline / Frontend Lint (push) Failing after 1178h10m11s
CI/CD Pipeline / Check if frontend-only change (push) Failing after 1178h10m13s
CI/CD Pipeline / CI Gate (push) Failing after 1178h31m24s
CI/CD Pipeline / Deploy Production (push) Failing after 1178h32m54s
CI/CD Pipeline / PR Build Web Image (push) Failing after 1178h43m10s
2026-07-29 05:07:44 +00:00
xiaoxia 0d7effe88f fix(ci): 修复两个外围失败 - E2E容器残留清理 + ACR pr-days参数支持
CI/CD Pipeline / Deploy Staging (Watchtower auto-deploy) (push) Successful in 1m21s
CI/CD Pipeline / Validate - Code Quality (push) Failing after 2m57s
CI/CD Pipeline / Validate - Type Check (mypy) (push) Successful in 2m4s
CI/CD Pipeline / Validate - Migration (alembic) (push) Successful in 2m4s
CI/CD Pipeline / Unit Tests (push) Successful in 8m22s
CI/CD Pipeline / Integration Tests (push) Successful in 2m30s
CI/CD Pipeline / Frontend Unit Tests (push) Successful in 2m48s
CI/CD Pipeline / Build Staging API Image (push) Successful in 12m46s
CI/CD Pipeline / Build Staging Web Image (push) Successful in 2m11s
CI/CD Pipeline / Build Staging Worker Image (push) Successful in 5m20s
CI/CD Pipeline / ACR Image Cleanup (push) Successful in 3m5s
CI/CD Pipeline / Staging API Integration Tests (push) Failing after 3m42s
CI/CD Pipeline / Staging E2E Tests (push) Failing after 5m12s
CI/CD Pipeline / Canary Release to Production (push) Failing after 1178h5m6s
CI/CD Pipeline / Production Browser E2E (push) Failing after 1178h14m31s
CI/CD Pipeline / CI Gate (push) Failing after 1178h14m33s
CI/CD Pipeline / Build Production Worker Image (push) Failing after 1178h14m33s
CI/CD Pipeline / PR Build Web Image (push) Failing after 1178h22m57s
CI/CD Pipeline / Build Production Web Image (push) Failing after 1178h14m33s
CI/CD Pipeline / PR Build API Image (push) Failing after 1178h22m57s
CI/CD Pipeline / Build Production API Image (push) Failing after 1178h14m33s
CI/CD Pipeline / Check if frontend-only change (push) Failing after 1178h23m1s
CI/CD Pipeline / Deploy Production (push) Failing after 1178h47m32s
CI/CD Pipeline / PR Build Worker Image (push) Failing after 1178h55m57s
CI/CD Pipeline / Frontend Lint (push) Failing after 1178h55m57s
2026-07-29 13:04:50 +08:00
xiaoxia e9bc340612 feat(ci): ACR镜像自动清理增强版(#524)
CI/CD Pipeline / Validate - Code Quality (push) Failing after 1m39s
CI/CD Pipeline / Validate - Type Check (mypy) (push) Successful in 1m11s
CI/CD Pipeline / Validate - Migration (alembic) (push) Successful in 58s
CI/CD Pipeline / Unit Tests (push) Failing after 5m46s
CI/CD Pipeline / Integration Tests (push) Successful in 3m19s
CI/CD Pipeline / Frontend Lint (push) Successful in 41s
CI/CD Pipeline / Frontend Unit Tests (push) Successful in 1m9s
CI/CD Pipeline / Build Staging API Image (push) Failing after 14m39s
CI/CD Pipeline / Build Staging Web Image (push) Successful in 1m44s
CI/CD Pipeline / Build Staging Worker Image (push) Successful in 6m0s
CI/CD Pipeline / ACR Image Cleanup (push) Failing after 1274h59m8s
CI/CD Pipeline / Staging API Integration Tests (push) Failing after 1274h59m9s
CI/CD Pipeline / Staging E2E Tests (push) Failing after 1274h59m10s
CI/CD Pipeline / Deploy Staging (Watchtower auto-deploy) (push) Failing after 1275h0m38s
CI/CD Pipeline / Production Browser E2E (push) Failing after 1275h2m30s
CI/CD Pipeline / Deploy Production (push) Failing after 1275h5m54s
CI/CD Pipeline / Build Production Worker Image (push) Failing after 1275h11m30s
CI/CD Pipeline / Build Production API Image (push) Failing after 1275h11m34s
CI/CD Pipeline / PR Build Worker Image (push) Failing after 1275h15m34s
CI/CD Pipeline / Check if frontend-only change (push) Failing after 1275h16m50s
CI/CD Pipeline / PR Build Web Image (push) Failing after 1275h15m35s
CI/CD Pipeline / Build Production Web Image (push) Failing after 1275h44m6s
CI/CD Pipeline / PR Build API Image (push) Failing after 1275h48m11s
ACR镜像自动清理增强版:
- 3种执行模式:PR-SHA清理/cron全量/手动预览
- 生产镜像保护:main/v*版本tag/固定tag永不删除
- develop镜像保留最近20个commit hash tag
- PR镜像关闭后自动清理(Gitea PR状态检查 + 7天降级保留)
- 安全兜底:staging运行中镜像白名单
- workflow触发:cron每天03:00 + PR关闭事件 + 手动触发
2026-07-25 12:07:17 +08:00
xiaoxia 91e3080371 fix(ci): ACR cleanup改到Deploy之后运行,保护当前构建tag不被误删 (#614)
CI/CD Pipeline / Validate Code Quality And Tests (push) Failing after 4m30s
CI/CD Pipeline / Integration Tests (push) Failing after 33s
CI/CD Pipeline / Staging E2E Tests (push) Failing after 2m15s
CI/CD Pipeline / Production Browser E2E (push) Failing after 1410h4m36s
CI/CD Pipeline / Build Production Worker Image (push) Failing after 1410h4m40s
CI/CD Pipeline / Build Production Web Image (push) Failing after 1410h4m40s
CI/CD Pipeline / Check if frontend-only change (push) Failing after 1410h4m42s
CI/CD Pipeline / Deploy Staging (Watchtower auto-deploy) (push) Has been skipped
CI/CD Pipeline / Unit 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 / Staging API Integration Tests (push) Has been skipped
CI/CD Pipeline / ACR Image Cleanup (push) Has been skipped
CI/CD Pipeline / Deploy Production (push) Failing after 1410h36m45s
CI/CD Pipeline / Build Production API Image (push) Failing after 1410h36m47s
Co-authored-by: xiaoxia <dev@xiaoxiajianji.com>
Co-committed-by: xiaoxia <dev@xiaoxiajianji.com>
2026-07-19 21:24:44 +08:00
xiaoxia bf137350c6 ci: ACR镜像清理策略 + CI自动清理 (#593)
CI/CD Pipeline / Unit Tests (push) Failing after 4m47s
CI/CD Pipeline / Check if frontend-only change (push) Failing after 1413h55m53s
CI/CD Pipeline / Validate Code Quality And 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
Co-authored-by: xiaoxia <dev@xiaoxiajianji.com>
Co-committed-by: xiaoxia <dev@xiaoxiajianji.com>
2026-07-19 17:33:34 +08:00