Skip to content

[CI][cherry-pick] Add retry for git clone in Test-release workflow - #1771

Merged
swgu98 merged 1 commit into
PaddlePaddle:release/0.4from
swgu98:ci/git-clone-retry-release-0.4
Aug 18, 2026
Merged

[CI][cherry-pick] Add retry for git clone in Test-release workflow#1771
swgu98 merged 1 commit into
PaddlePaddle:release/0.4from
swgu98:ci/git-clone-retry-release-0.4

Conversation

@swgu98

@swgu98 swgu98 commented Aug 17, 2026

Copy link
Copy Markdown
Member

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 -ceset -e 导致的提前退出。

这些包含 git clone 的 step 本身未设置 timeout-minutes,无需放开时间限制。
Merged in dev: #1770

是否引起精度变化

否。仅修改 CI workflow,不涉及训练执行路径。

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 risemeup1111 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

序号 位置 优先级 状态
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.

@swgu98
swgu98 merged commit 7b0d2df into PaddlePaddle:release/0.4 Aug 18, 2026
41 of 53 checks passed
@swgu98
swgu98 deleted the ci/git-clone-retry-release-0.4 branch August 18, 2026 13:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants