Skip to content

ci: retry engine downloads that fail for a moment - #1276

Merged
KnifeLemon merged 1 commit into
mainfrom
ci/retry-engine-downloads
Nov 8, 2026
Merged

KnifeLemon merged 1 commit into
mainfrom
ci/retry-engine-downloads

Conversation

@KnifeLemon

Copy link
Copy Markdown
Owner

What does this change?

For over an hour on 2026-11-08, GitHub's release downloads answered 504 Gateway Time-out: first every rhwp v0.8.7 binary, then 7-Zip and pandoc at random. Every Windows and macOS job that fetches an engine stopped at the download, on #1243, #1064, #1242 and #1195 alike, and re-running only moved the failure to the next file.

fetch-engines.ps1, fetch-portable-engines.ps1 and fetch-magick-native.ps1 now call Invoke-WebRequest with -MaximumRetryCount 5 -RetryIntervalSec 20. PowerShell 7 retries on 304 and 400–599 answers. The SHA-256 check after each download is unchanged. fetch-fonts.ps1 already retries with its own mirror fallback, and the ExifTool curl in ci.yml already has --retry 3.

Type of change

  • Build, CI or dependencies

How was it tested?

  • All three scripts parse (Parser.ParseFile, 0 errors), and Invoke-WebRequest on the runners' PowerShell 7 has -MaximumRetryCount.
  • This PR's own CI runs the scripts.

🤖 Generated with Claude Code

GitHub's release downloads answered 504 for over an hour on 2026-11-08
(rhwp, then 7-Zip and pandoc), and every Windows and macOS job that
fetched an engine stopped there. fetch-engines, fetch-portable-engines and
fetch-magick-native now try a download up to five more times, 20 s apart.
The checksum check after it is unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@github-actions github-actions Bot added the build Build and release label Nov 8, 2026
@KnifeLemon
KnifeLemon merged commit 2282038 into main Nov 8, 2026
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

build Build and release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant