fix(publish): retry cargo publish on transient registry index lag#622
Merged
Conversation
There was a problem hiding this comment.
Benchmark
Details
| Benchmark suite | Current: db2c85b | Previous: 0b5fe57 | Ratio |
|---|---|---|---|
validate/single |
20046 ns/iter (± 206) |
||
validate/mono_50 |
364918 ns/iter (± 6221) |
||
validate/mono_100 |
716458 ns/iter (± 20134) |
This comment was automatically generated by workflow using github-action-benchmark.
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.
Releasing a multi-crate workspace to a private registry (kellnr) can fail when a dependent publishes before a just-published dependency lands in the sparse index — cargo errors with
no matching package / required by package, which the publisher surfaced as a fatal E1018 (seen on FerrLabs/Kit 2026-06-24; recovered only via a manual re-run the next day).The cargo publisher now retries
cargo publishup to 3 times (5s then 15s backoff) on transient failures — sparse-index resolution lag and network blips (connection reset/refused, timeouts, 502/503/504) — while keeping the existing idempotent "already uploaded" → skip. A genuinely missing/misconfigured dependency still matches as transient but simply fails again after the retries are spent (slower failure, but the release survives index lag without a manual re-run). New unit test pins the transient classifier;cargo test,cargo clippy,cargo fmtall green locally.Closes #621