Skip to content

Reduce updater download amplification#4936

Merged
Gabriel Dufresne (GabrielDuf) merged 2 commits into
mainfrom
mamoreau-devolutions/audit-cdn-downloads
Jun 16, 2026
Merged

Reduce updater download amplification#4936
Gabriel Dufresne (GabrielDuf) merged 2 commits into
mainfrom
mamoreau-devolutions/audit-cdn-downloads

Conversation

@mamoreau-devolutions

Copy link
Copy Markdown
Contributor

Summary

  • Add resumable auto-updater installer downloads using .part files, sidecar metadata, Range, and If-Range.
  • Add persistent exponential backoff with jitter for updater download/validation failures.
  • Validate downloaded partials before promoting them over the cached final installer.
  • Change the automatic updater loop to use a 60-minute default interval instead of retrying failures every 10 minutes.

Validation

  • dotnet test src\UniGetUI.Core.Tools.Tests\UniGetUI.Core.Tools.Tests.csproj --verbosity q --nologo -p:UseSharedCompilation=false -p:BuildInParallel=false -m:1
  • dotnet test src\UniGetUI.Tests\UniGetUI.Tests.csproj --verbosity q --nologo -p:UseSharedCompilation=false -p:BuildInParallel=false -m:1
  • dotnet build src\UniGetUI.Avalonia\UniGetUI.Avalonia.csproj --verbosity q --nologo -p:UseSharedCompilation=false -p:BuildInParallel=false -m:1
  • dotnet build src\UniGetUI\UniGetUI.csproj --verbosity q --nologo -p:Platform=x64 -p:UseSharedCompilation=false -p:BuildInParallel=false -m:1

Final updater-only regression review found no significant auto-updater regressions.

Throttle repeated updater validation failures and avoid refreshing cached icon metadata on every startup.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Add resumable updater installer downloads with partial metadata, persistent backoff, and validated promotion before replacing cached installers.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@GabrielDuf Gabriel Dufresne (GabrielDuf) merged commit 80f803f into main Jun 16, 2026
4 of 5 checks passed
@GabrielDuf Gabriel Dufresne (GabrielDuf) deleted the mamoreau-devolutions/audit-cdn-downloads branch June 16, 2026 18:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants