Repository navigation
ci: make the deploy job re-runnable after a partial failure - #247
Merged
Merged
Conversation
Skip the Make Release step when the GitHub Release for the tag already exists, and pass skip-existing to the PyPI publish step. This lets the deploy job be re-run after a partial release failure (e.g. PyPI 5xx after the GitHub Release was already created) without having to cut a new version. The existence check matches only the literal "release not found" reply; auth, rate-limit, or transient network failures re-raise so the job fails loudly instead of falling through to Make Release and erroring out with HTTP 422.
bdraco
marked this pull request as ready for review
May 19, 2026 20:03
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #247 +/- ##
=======================================
Coverage 99.54% 99.54%
=======================================
Files 10 10
Lines 439 439
Branches 17 17
=======================================
Hits 437 437
Misses 2 2
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
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.
What do these changes do?
Make the
deployjob inci-cd.ymlre-runnable after a partialrelease failure.
Make Releasestep is now gated on a precedinggh release viewcheck, so it is skipped when the GitHub Release for the tagalready exists (instead of failing with
HTTP 422 already_exists).skip-existing: trueso aretry does not fail on dists that were already uploaded.
Concretely, this means that if PyPI returns a 5xx (or any other
transient failure after the GitHub Release was created), the maintainer
can re-run the failed
deployjob instead of cutting a brand-newrelease. This mirrors the equivalent change in yarl (aio-libs/yarl#1721),
where the v1.24.0 cut hit exactly this scenario.
The existence check matches only the literal
release not foundreply for the not-exists branch; auth, rate-limit, or transient network
failures re-raise so the deploy job fails loudly with the real error
instead of falling through.
Are there changes in behavior for the user?
No. This only affects how the release pipeline recovers from partial
failures; the produced artifacts and release are unchanged.
Related issue number
None; ports aio-libs/yarl#1721 to propcache.
Checklist
CHANGES/folderAgent run details (optional, for reviewers)
Drafted with Claude Code (claude-opus-4-7); reviewed by @bdraco.
Local checks:
make doc-spelling; the new fragment introduces no new misspellings (the 2 reported warnings are pre-existing onmaster:subdirectoryinCHANGES/207.contrib.rstandpostfixinCHANGES.rst:168).yamllint; passes for the workflow change.python -c "import yaml; yaml.safe_load(...)"; workflow parses cleanly.