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
Owner

背景

PR上Build Staging动辄30-50分钟,加上集成测试整体反馈周期太长,严重拖慢开发效率。

改动

  1. Build Staging 移出PR流程:仅在 develop/main 的 push 事件异步执行,PR 不再触发镜像构建
  2. Unit Tests 独立并行:从 Validate 拆出为独立 job,与 Validate/Frontend Lint 并行执行
  3. PR门禁调整:3个必过快检查 = Validate(静态检查) + Frontend Lint + Unit Tests
  4. Integration Tests:保留执行但不再作为 PR 合并门禁(后续可移到 develop 上跑)

目标

PR 全绿时间从 15-30min 降至 8min 以内

配套操作

  • 分支保护规则需同步更新:将 Integration Tests 替换为 Unit Tests
## 背景 PR上Build Staging动辄30-50分钟,加上集成测试整体反馈周期太长,严重拖慢开发效率。 ## 改动 1. **Build Staging 移出PR流程**:仅在 develop/main 的 push 事件异步执行,PR 不再触发镜像构建 2. **Unit Tests 独立并行**:从 Validate 拆出为独立 job,与 Validate/Frontend Lint 并行执行 3. **PR门禁调整**:3个必过快检查 = Validate(静态检查) + Frontend Lint + Unit Tests 4. **Integration Tests**:保留执行但不再作为 PR 合并门禁(后续可移到 develop 上跑) ## 目标 PR 全绿时间从 15-30min 降至 8min 以内 ## 配套操作 - 分支保护规则需同步更新:将 Integration Tests 替换为 Unit Tests
xiaoxia added 1 commit 2026-07-13 11:56:37 +08:00
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
56ea9ff7b8
改动:
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 以内
xiaoxia added 1 commit 2026-07-13 12:03:30 +08:00
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
4e76dadd98
test_probe_success 的 fake_output 缺少 codec_type: video 字段,
导致 probe_video_info 找不到视频流,返回默认值 1280 而非预期的 1920。
xiaoxia merged commit ffd99ffeb0 into develop 2026-07-13 12:14:02 +08:00
Sign in to join this conversation.