Skip to content

Retry transient GitHub and nuget.org errors in the release scripts - #7

Merged
IOL0ol1 merged 3 commits into
masterfrom
fix/upstream-api-retry
Nov 19, 2026
Merged

IOL0ol1 merged 3 commits into
masterfrom
fix/upstream-api-retry

Conversation

@IOL0ol1

@IOL0ol1 IOL0ol1 commented Nov 19, 2026

Copy link
Copy Markdown
Owner

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.

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.
@IOL0ol1
IOL0ol1 merged commit ac1eb8e into master Nov 19, 2026
12 checks passed
@IOL0ol1
IOL0ol1 deleted the fix/upstream-api-retry branch November 19, 2026 02:41
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.

1 participant