Skip to content

ci: retried cargo-deny install (fix main 504 flake) - #266

Merged
wangzhizhou merged 1 commit into
mainfrom
dev
Nov 9, 2026
Merged

wangzhizhou merged 1 commit into
mainfrom
dev

Conversation

@wangzhizhou

Copy link
Copy Markdown
Contributor

远端红灯与代码无关:main 两次连续失败都在 taiki-e/install-action 下载 cargo-deny-0.20.2-aarch64-apple-darwin.tar.gz 时拿到 HTTP 504(重试 10 次约 60s 后 fail),同一提交的 dev CI 早已全绿。

处置:

  • 新增 scripts/install-cargo-deny.sh:固定版本 + 自下载 5 轮退避重试,失败退回 cargo install cargo-deny --version 0.20.2 --locked。
  • ci.yml(macos/check)、security.yml、macos-acceptance.yml、macos-nightly.yml、两个 isolated drill 全部改用它;make bootstrap 同一入口(版本单一来源)。
  • CONTRIBUTING.md §9 写原因与用法,报告 263 §5 记证据。

验证:脚本两条路径实跑(干净 HOME 下资产路径安装成功、输出 cargo-deny 0.20.2);make verify PASS、离线 62/328 PASS。

Two consecutive main runs failed while downloading the cargo-deny release asset (HTTP 504) with the
code itself green. The new scripts/install-cargo-deny.sh pins the version, retries the asset download
with backoff and falls back to a crates.io source build, so a flaky asset host can no longer turn the
gate red. Workflows and make bootstrap share the single entry point.

Signed-off-by: wangzhizhou <824219521@qq.com>
@wangzhizhou
wangzhizhou merged commit 168115e into main Nov 9, 2026
4 checks passed
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.

1 participant