Repository navigation
ci: retried cargo-deny install (fix main 504 flake) - #266
Merged
Merged
Conversation
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>
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.
远端红灯与代码无关:
main两次连续失败都在taiki-e/install-action下载cargo-deny-0.20.2-aarch64-apple-darwin.tar.gz时拿到 HTTP 504(重试 10 次约 60s 后 fail),同一提交的devCI 早已全绿。处置:
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 verifyPASS、离线 62/328 PASS。