[CI][cherry-pick] Add retry for git clone in Test-release workflow - #1771
Merged
swgu98 merged 1 commit intoAug 18, 2026
Merged
Conversation
Wrap all git clone commands in Test-release.yml with a 5-attempt retry loop (clean up partial checkout, sleep 10s between attempts) to reduce flaky failures caused by transient network issues.
risemeup1111
approved these changes
Aug 17, 2026
risemeup1111
left a comment
Contributor
There was a problem hiding this comment.
| 序号 | 位置 | 优先级 | 状态 |
|---|---|---|---|
| 1 | - | - | ✅ |
审查范围:基于当前 head e5d23a6944b51a8a1492c2e9590ac0dd8af72876,核对 .github/workflows/Test-release.yml 的 4 处 clone 重试逻辑、release/0.4 基线差异、相关历史与检查状态。
结论:未发现需要修改的代码问题。新增循环在 bash -ce 下显式处理 clone 失败,清理残留后重试,并在 5 次失败后返回非零状态;YAML 语法和 diff 空白检查通过。
Powered by Nyanpasu with gpt-5.5 xhigh, please check the suggestions carefully.
risemeup1
approved these changes
Aug 18, 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.
PR Category
Execute Infrastructure
PR Types
Devs
Description
Cherry-pick of #1770 to
release/0.4。为
.github/workflows/Test-release.yml中所有git clone命令增加失败重试,降低因网络抖动导致的 CI flaky 失败。共 4 处
git clone(1 处 PaddleFleet、3 处 PaddleFormers)统一改为最多 5 次重试:每次失败先清理已下载的残留目录再重试,每次间隔sleep 10,5 次全部失败才exit 1。使用if git clone ...; then形式规避bash -ce下set -e导致的提前退出。这些包含
git clone的 step 本身未设置timeout-minutes,无需放开时间限制。Merged in dev: #1770
是否引起精度变化
否。仅修改 CI workflow,不涉及训练执行路径。