Skip to content

fix: retry logic for crates.io rate limits#22

Merged
EffortlessSteven merged 2 commits intomainfrom
chore/publish-retry
Apr 6, 2026
Merged

fix: retry logic for crates.io rate limits#22
EffortlessSteven merged 2 commits intomainfrom
chore/publish-retry

Conversation

@EffortlessSteven
Copy link
Copy Markdown
Member

Closes #20

@EffortlessSteven EffortlessSteven merged commit 56644f9 into main Apr 6, 2026
@EffortlessSteven EffortlessSteven deleted the chore/publish-retry branch April 6, 2026 05:03
@gemini-code-assist
Copy link
Copy Markdown

Warning

You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again!

Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 56644f965d

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

echo " Published $crate"
return 0
fi
if cargo publish -p "$crate" 2>&1 | grep -q "already published"; then
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Parse publish errors without rerunning cargo publish

The retry block invokes cargo publish a second time inside the grep check, which means each failed attempt makes an extra publish request and can misclassify success as failure. If the first call fails transiently but the second call actually publishes (or if the first call uploaded and then errored), the pipeline only checks for the literal text and continues retrying, so the job can eventually fail even though the crate was already uploaded; this is especially risky in a multi-crate release because later crates won’t be published.

Useful? React with 👍 / 👎.

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.

Ship diffguard v0.2.0 to crates.io

1 participant