ci: 加固 sync-to-gitee(超时 + SSH keepalive + 重试)#82
Merged
Conversation
首次全量镜像(~131MB)跨境推送时 TCP 连接僵死,git push 无限挂起 36 分钟无进展。三层加固: - job timeout-minutes: 30,兜底不再挂满 6 小时 - ssh ServerAliveInterval/CountMax,~2 分钟内主动断开死连接报错 - push 失败自动重试 3 次(间隔 30s),断线后无需人工重跑 Signed-off-by: D.J. Zou <wwsb.bopy@gmail.com>
lywaterman
approved these changes
Jul 8, 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.
背景
#81 合并后首次全量镜像推送(打包约 131MB)在
Push to Gitee步骤挂了 36 分钟无进展——跨境链路 TCP 连接僵死,git 会无限等待,且默认 job 超时是 6 小时。修改(三层兜底)
timeout-minutes: 30:job 级超时,最坏情况不再白挂 6 小时ServerAliveInterval 30×ServerAliveCountMax 4):死连接约 2 分钟内被主动断开并报错,而不是无限挂起验证