Repository navigation
Ask GitHub again when it fails for a moment while starting publish workflow - #109
Merged
Merged
Conversation
…rkflows A publish run failed for Go and PyPI because GitHub answered 502 Bad Gateway to the request that starts their workflows; npm and Maven in the same run were fine. One such answer stopped the whole language. Reads from the GitHub API (run listings and run status) are now asked again, up to four times with a growing pause, on 429 and 5xx. Starting a workflow is not simply sent again, because GitHub can start the run and still answer with an error, and a second request would start a second run. After such an error the script first looks for the run it started, and sends the request again only when there is none. Other errors, such as 422, still stop at once.
colinjlacy
approved these changes
Dec 2, 2026
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 this fixes
A publish run failed for Go and PyPI because GitHub answered 502 Bad Gateway to the request that starts their publish workflows. npm and Maven in the same run worked. One such answer was enough to fail a whole language.
Changes
This covers all four languages (Go, PyPI, npm and Maven), because they all start their workflows the same way. It does not change the uploads inside each registry's own workflow.