ci: 优化PR门禁 - Build Staging移出PR流程 + Unit Tests独立并行 #245

Merged
xiaoxia merged 2 commits from feat/ci-pr-gate-optimization into develop 2026-07-13 12:14:02 +08:00

2 Commits

Author SHA1 Message Date
xiaoxia 4e76dadd98 fix(test): 修复FFmpeg超时保护单测 - probe mock数据缺少codec_type字段
CI/CD Pipeline / Validate Code Quality And Tests (pull_request) Successful in 2m47s
CI/CD Pipeline / Unit Tests (pull_request) Successful in 3m24s
CI/CD Pipeline / Frontend Lint (pull_request) Successful in 4m20s
CI/CD Pipeline / Build & Push Staging (Watchtower auto-deploy) (pull_request) Has been skipped
CI/CD Pipeline / Build Production Runtime Images (pull_request) Has been skipped
CI/CD Pipeline / Staging E2E Tests (pull_request) Has been skipped
CI/CD Pipeline / Staging API Integration Tests (pull_request) Has been skipped
CI/CD Pipeline / Deploy Production (pull_request) Has been skipped
CI/CD Pipeline / Production Browser E2E (pull_request) Has been skipped
CI/CD Pipeline / Integration Tests (pull_request) Successful in 3m56s
test_probe_success 的 fake_output 缺少 codec_type: video 字段,
导致 probe_video_info 找不到视频流,返回默认值 1280 而非预期的 1920。
2026-07-13 12:03:28 +08:00
xiaoxia 56ea9ff7b8 ci: 优化PR门禁 - Build Staging移出PR流程 + Unit Tests独立并行
CI/CD Pipeline / Validate Code Quality And Tests (pull_request) Successful in 1m46s
CI/CD Pipeline / Unit Tests (pull_request) Failing after 2m16s
CI/CD Pipeline / Frontend Lint (pull_request) Successful in 2m40s
CI/CD Pipeline / Build Production Runtime Images (pull_request) Has been skipped
CI/CD Pipeline / Build & Push Staging (Watchtower auto-deploy) (pull_request) Has been skipped
CI/CD Pipeline / Staging API Integration Tests (pull_request) Has been skipped
CI/CD Pipeline / Deploy Production (pull_request) Has been skipped
CI/CD Pipeline / Staging E2E Tests (pull_request) Has been skipped
CI/CD Pipeline / Production Browser E2E (pull_request) Has been skipped
CI/CD Pipeline / Integration Tests (pull_request) Successful in 2m7s
改动:
1. Build Staging 从 PR 流程移出,仅在 develop/main 的 push 事件异步执行
2. Unit Tests 从 Validate 中拆出为独立 job,与 Validate/Frontend Lint 并行
3. PR 门禁从 3 项(含 Integration Tests)改为 3 项快检查(Validate + Frontend Lint + Unit Tests)
4. Integration Tests 保留执行但不再作为 PR 合并门禁
5. 目标: PR 全绿时间从 15-30min 降至 8min 以内
2026-07-13 11:56:23 +08:00