Repository navigation
Retry transient GitHub and nuget.org errors in the release scripts - #7
Merged
Merged
Conversation
GetNewClosure() copies only the variables of the scope it is called in; on the CI runner's PowerShell the mocks could not see the script-level helper, so the retry self-tests failed there.
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.
The first upstream-sync dry run on master failed because the GitHub API returned a transient HTTP 502 for the openslide-bin release list; in a scheduled run that would open a failure issue for a GitHub hiccup.
Invoke-WebRequestWithRetry(eng/NuGetVersion.psm1) retries HTTP 500/502/503/504 and connection errors up to three attempts (5 s, then 15 s) and never retries 4xx. Find-UpstreamUpdate, the nuget.org version query and Update-OpenSlideManifest use it; error messages and hash checks are unchanged. Self-tests cover retry-then-success, retries exhausted, and 4xx without retry.