chore(ci): deps-image 超时 30 → 90 分钟(冷构建需 45min+,原值使镜像永远建不出来) - #656
Merged
Merged
Conversation
This was referenced Sep 16, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
问题(实测)
deps-imagejob 的timeout-minutes: 30小于冷构建的实际耗时:Dockerfile.deps要在 2 核 runner 上apt-get+mix deps.get --only prod+mix deps.compile全量编译(AGENTS.md 自己记录「未命中在 2 核 runner 上重建可超 45min」)。后果链(今天实测):
mix.lock变更(ash 3.33.3 → 3.33.4 修 CVE)→ 新 tag8ac7c792660e0fb0;ci.ymlrun:deps-image 一次成功都没有(全 skipped/failed/cancelled)→ 这个"lock 变更自动重建"的机制实际上从未生效过(此前镜像很可能是人工在 Apple Silicon 上推的,也正是历史上 arm64 误推事故的来源)。改动(一行 + 注释)
deps-image: if: github.event_name == 'push' runs-on: ubuntu-latest - timeout-minutes: 30 + # 冷构建(mix.lock 变更后首次)在 2 核 runner 上需 45min+(AGENTS.md 已记录), + # 原 30min 会把每次 lock 变更的构建都掐死 → 镜像永远缺失、deploy 端被迫 45–90min 现场重建。 + timeout-minutes: 90为什么选这条路(而不是本地 Mac 构建)
--platform linux/amd64构建推送--platform)KAMAL_REGISTRY_PASSWORD(本机无)验证
deps-image应在 ≤90min 内success,日志出现deps 镜像已就位(amd64)或构建并推送+docker push成功;docker manifest inspect -v ccr.ccs.tencentyun.com/codingirlsclub/cgc2046-backend-deps:8ac7c792660e0fb0的architecture应为 amd64;非目标
不改
Dockerfile.deps的构建内容;不引入 buildx cache(Dockerfile 注释已说明 mode=max 导出曾挂起);不改 deploy 端 fallback(它仍是兜底)。