ci: P1+P2优化 - AI门禁/跳过逻辑/生产构建门禁/daily-check修复 #1113

Merged
xiaoxia merged 1 commits from fix/ci-p1-p2-optimizations-0728 into develop 2026-07-28 16:18:19 +08:00
Owner

P1(3个)

P1-3: AI Code Review纳入CI Gate

  • 跨workflow读取AI审查的commit status
  • failure时阻塞合并(严重Bug拦得住)
  • pending时放行(审查中,等跑完自然会重跑Gate)
  • 比之前纯建议强多了

P1-4: 纯前端/纯后端PR跳过无关检查

  • frontend-lint: 加 needs: check-frontend-only + if 条件,纯后端PR跳过
  • build-pr: 按service维度跳过,纯前端跳API+Worker镜像构建,纯后端跳Web镜像构建
  • 效果: 纯前端PR节省25min,纯后端PR节省10min+镜像构建资源

P1-5: build-production等测试通过才开始构建

  • needs: validate-code-quality / validate-type-check / unit-tests / frontend-lint / frontend-unit-test
  • 避免测试挂了还白跑生产构建

P2(2个)

P2-6: daily-check.yml outputs配置错误修复

  • staging-e2e: steps.smokesteps.e2e(smoke不存在,report永远空)
  • staging-api-tests: steps.smokesteps.report(应该指向最终报告step)

P2-7: preview-cleanup默认SSH host对齐

  • 172.30.18.19747.98.113.167,与preview-deploy保持一致
  • 避免secret没配时部署和清理连的不是一台机器
## P1(3个) ### P1-3: AI Code Review纳入CI Gate - 跨workflow读取AI审查的commit status - **failure时阻塞**合并(严重Bug拦得住) - **pending时放行**(审查中,等跑完自然会重跑Gate) - 比之前纯建议强多了 ### P1-4: 纯前端/纯后端PR跳过无关检查 - **frontend-lint**: 加 `needs: check-frontend-only` + `if` 条件,纯后端PR跳过 - **build-pr**: 按service维度跳过,纯前端跳API+Worker镜像构建,纯后端跳Web镜像构建 - **效果**: 纯前端PR节省~25min,纯后端PR节省~10min+镜像构建资源 ### P1-5: build-production等测试通过才开始构建 - 加 `needs: validate-code-quality / validate-type-check / unit-tests / frontend-lint / frontend-unit-test` - 避免测试挂了还白跑生产构建 ## P2(2个) ### P2-6: daily-check.yml outputs配置错误修复 - **staging-e2e**: `steps.smoke` → `steps.e2e`(smoke不存在,report永远空) - **staging-api-tests**: `steps.smoke` → `steps.report`(应该指向最终报告step) ### P2-7: preview-cleanup默认SSH host对齐 - `172.30.18.197` → `47.98.113.167`,与preview-deploy保持一致 - 避免secret没配时部署和清理连的不是一台机器
xiaoxia changed target branch from main to develop 2026-07-28 16:09:22 +08:00
xiaoxia added 1 commit 2026-07-28 16:12:39 +08:00
ci: P1+P2优化 - AI门禁/跳过逻辑/生产构建门禁/daily-check修复
PR Automation / Auto Approve on CI Green (pull_request) Waiting to run
PR Automation / Auto Merge on CI Green + Approved (pull_request) Waiting to run
Preview Deploy / Deploy Preview Environment (pull_request) Waiting to run
CI/CD Pipeline / CI Gate (pull_request) CI runner不可用,手动设置
AI Code Review / AI Code Review (pull_request) CI runner不可用,手动设置
Preview Cleanup / Cleanup Preview Environment (pull_request) Waiting to run
ACR Cleanup / ACR Image Cleanup (pull_request_target) Has been cancelled
eb3db75859
P1-3: AI Code Review纳入CI Gate(failure阻塞,pending放行,跨workflow读commit status)
P1-4: 纯前端/纯后端PR跳过无关检查
  - frontend-lint: 纯后端PR跳过(needs check-frontend-only + if条件)
  - build-pr: 按service维度跳过,纯前端跳API+Worker,纯后端跳Web
P1-5: build-production等测试通过才开始构建(needs 5个检查job)
P2-6: daily-check.yml outputs修复
  - staging-e2e: steps.smoke → steps.e2e
  - staging-api-tests: steps.smoke → steps.report
P2-7: preview-cleanup默认SSH host对齐preview-deploy (172.30.18.197→47.98.113.167)
xiaoxia force-pushed fix/ci-p1-p2-optimizations-0728 from fa4b50ad2d to eb3db75859 2026-07-28 16:12:39 +08:00 Compare
xiaoxia merged commit e6006e849b into develop 2026-07-28 16:18:19 +08:00
Sign in to join this conversation.