fix(ci): 临时禁用registry cache-to,ACR推送缓存太慢导致构建超时 #378

Merged
xiaoxia merged 1 commits from fix/ci-disable-registry-cache-to into develop 2026-07-15 21:25:08 +08:00
Owner

问题

Run #5118 三镜像构建卡在最后一步「exporting cache to registry」

  • API: 650s+ 卡在缓存导出
  • Worker: 794s+ 卡在缓存导出
  • Web: 侥幸成功(缓存较小)

首次全量推ACR缓存量太大,网络成为瓶颈。

修复

临时注释掉 scripts/ci/docker_build_push.sh Step 2(registry cache sync)

  • 保留 Step 1: 构建+推送镜像 + 本地缓存读写 + registry缓存读
  • 保留 cache-from registry(读缓存加速)
  • 禁用 cache-to registry(写缓存,太慢)

核心目标:让全链路先跑通,缓存优化后续P2再调。

## 问题 Run #5118 三镜像构建卡在最后一步「exporting cache to registry」 - API: 650s+ 卡在缓存导出 - Worker: 794s+ 卡在缓存导出 - Web: 侥幸成功(缓存较小) 首次全量推ACR缓存量太大,网络成为瓶颈。 ## 修复 临时注释掉 `scripts/ci/docker_build_push.sh` Step 2(registry cache sync) - ✅ 保留 Step 1: 构建+推送镜像 + 本地缓存读写 + registry缓存读 - ✅ 保留 cache-from registry(读缓存加速) - ❌ 禁用 cache-to registry(写缓存,太慢) 核心目标:让全链路先跑通,缓存优化后续P2再调。
xiaoxia added 1 commit 2026-07-15 21:24:33 +08:00
fix(ci): 临时禁用registry cache-to,ACR推送缓存太慢导致构建超时\n\nStep 2的registry cache sync在首次全量推送时极慢(API 11min+ / Worker 13min+)\n先注释掉确保全链路跑通,缓存优化后续再调\n\n保留cache-from registry(读缓存),本地缓存读写正常
CI Build & Deploy Pipeline / Build Staging API Image (push) Has been skipped
CI Build & Deploy Pipeline / Build Staging Web Image (push) Has been skipped
CI Build & Deploy Pipeline / Build Staging Worker Image (push) Has been skipped
CI Build & Deploy Pipeline / Build Production API Image (push) Has been skipped
CI Build & Deploy Pipeline / Deploy Staging (Watchtower auto-deploy) (push) Has been skipped
CI Build & Deploy Pipeline / Build Production Web Image (push) Has been skipped
CI Build & Deploy Pipeline / Staging E2E Tests (push) Has been skipped
CI Build & Deploy Pipeline / Staging API Integration Tests (push) Has been skipped
CI Build & Deploy Pipeline / Build Production Worker Image (push) Has been skipped
CI Build & Deploy Pipeline / Deploy Production (push) Has been skipped
CI Build & Deploy Pipeline / Build Staging API Image (pull_request) Has been skipped
CI Build & Deploy Pipeline / Build Staging Web Image (pull_request) Has been skipped
CI Build & Deploy Pipeline / Production Browser E2E (push) Has been skipped
CI Build & Deploy Pipeline / Build Staging Worker Image (pull_request) Has been skipped
CI Build & Deploy Pipeline / Deploy Staging (Watchtower auto-deploy) (pull_request) Has been skipped
CI Build & Deploy Pipeline / Staging E2E Tests (pull_request) Has been skipped
CI Build & Deploy Pipeline / Staging API Integration Tests (pull_request) Has been skipped
CI/CD Pipeline / Frontend Lint (push) Successful in 48s
CI/CD Pipeline / Validate Code Quality And Tests (pull_request) Successful in 1m31s
CI/CD Pipeline / Validate Code Quality And Tests (push) Successful in 1m47s
CI Build & Deploy Pipeline / Build Production API Image (pull_request) Has been skipped
CI Build & Deploy Pipeline / Build Production Web Image (pull_request) Has been skipped
CI Build & Deploy Pipeline / Build Production Worker Image (pull_request) Has been skipped
CI Build & Deploy Pipeline / Deploy Production (pull_request) Has been skipped
CI Build & Deploy Pipeline / Production Browser E2E (pull_request) Has been skipped
CI/CD Pipeline / Unit Tests (push) Successful in 1m59s
CI/CD Pipeline / Frontend Lint (pull_request) Successful in 43s
CI/CD Pipeline / Unit Tests (pull_request) Successful in 1m47s
CI/CD Pipeline / Integration Tests (push) Successful in 1m27s
CI/CD Pipeline / Integration Tests (pull_request) Successful in 1m24s
f04038f955
xiaoxia merged commit 39316b7f22 into develop 2026-07-15 21:25:08 +08:00
Sign in to join this conversation.