Skip to content

Comments

fix(ci): improve build retry reliability and reduce wait time#929

Merged
IceyLiu merged 4 commits intomainfrom
zynx/fix-build-workflow-retry
Feb 21, 2026
Merged

fix(ci): improve build retry reliability and reduce wait time#929
IceyLiu merged 4 commits intomainfrom
zynx/fix-build-workflow-retry

Conversation

@piorpua
Copy link
Contributor

@piorpua piorpua commented Feb 21, 2026

Summary

  • Chocolatey 重试: 用 nick-fields/retry@v3 包装 windows-arm64 的 choco install 步骤,最多重试 3 次(间隔 60 秒),解决 Chocolatey CDN 502 瞬态错误
  • 修复权限: 添加 actions: write 权限,修复 workflow rerun API 返回 403 的问题(auto-retry 此前从未成功过)
  • 缩短等待: auto-retry 等待时间从 1 小时改为 5 分钟,原 1 小时设计是为 Apple 公证,但实际触发重试的多为瞬态网络错误

Test plan

  • 推送到 dev 分支观察 windows-arm64 构建 Chocolatey 安装步骤正常
  • 验证 nick-fields/retry@v3 在 CDN 错误时能自动重试
  • 可选:临时加 exit 1 测试 auto-retry 权限和 5 分钟等待是否生效

zynx added 4 commits February 21, 2026 08:55
- Add retry logic (nick-fields/retry@v3) to Chocolatey install step
  for windows-arm64, handling transient CDN 502 errors
- Add `actions: write` permission to fix 403 on workflow rerun API
- Reduce auto-retry wait from 1 hour to 5 minutes since the retry
  is mainly for transient network errors, not Apple notarization
@IceyLiu IceyLiu merged commit bb73286 into main Feb 21, 2026
8 checks passed
@piorpua piorpua deleted the zynx/fix-build-workflow-retry branch February 21, 2026 01:27
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.

2 participants