Skip to content

Windows: Retry dependencies installation with backoff - #7151

Merged
snejus merged 1 commit into
masterfrom
fix-windows-deps-installation
Nov 2, 2026
Merged

snejus merged 1 commit into
masterfrom
fix-windows-deps-installation

Conversation

@snejus

@snejus snejus commented Nov 2, 2026

Copy link
Copy Markdown
Member

Retry each Chocolatey package install on Windows CI 🔁

Windows jobs keep failing before tests even start, because Chocolatey install scripts download from upstream hosts that drop connections now and then. For example, this job failed downloading flac from downloads.xiph.org with The underlying connection was closed. We only retried mp3gain, and ffmpeg, flac and imagemagick were installed in a single choco install call, so one hiccup killed the whole job.

Chocolatey install scripts download from upstream hosts such as xiph and
SourceForge, which drop connections now and then. Retry each package on its
own with exponential backoff instead of retrying the whole batch, so one
flaky download no longer fails the entire step.

- Add an `Install-ChocoPackage` helper with five attempts and backoff
- Install ffmpeg, flac, imagemagick and mp3gain through the helper
- Keep the `--allow-empty-checksums` flag for mp3gain only
Copilot AI balanced review requested due to automatic review settings November 2, 2026 15:20
@snejus
snejus requested a review from a team as a code owner November 2, 2026 15:20
@github-actions github-actions Bot added the windows Relates specifically to Windows OS label Nov 2, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

No active review issues remain for the focused change to retry Windows CI dependencies individually.

No open issues 🎉

What changed in this PR

Windows CI now retries each Chocolatey dependency on its own, so brief download failures have more chance to recover before tests start. Grug sees change stays small and focused.

Changes:

  • Add shared install function with five attempts and exponential backoff.
  • Install packages separately, keeping mp3gain’s empty-checksum allowance.
File Description
.github/​workflows/​ci.yaml Add per-package Windows dependency retries with increasing delays.

Review effort: Balanced

@codecov

codecov Bot commented Nov 2, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 80.76%. Comparing base (840471f) to head (afc705b).
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #7151      +/-   ##
==========================================
- Coverage   80.78%   80.76%   -0.02%     
==========================================
  Files         150      150              
  Lines       21199    21199              
  Branches     3238     3238              
==========================================
- Hits        17125    17122       -3     
- Misses       3257     3260       +3     
  Partials      817      817              

see 1 file with indirect coverage changes

🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@snejus
snejus merged commit 24a806d into master Nov 2, 2026
26 checks passed
@snejus
snejus deleted the fix-windows-deps-installation branch November 2, 2026 15:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

windows Relates specifically to Windows OS

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants