Skip to content

retry package fetch+expand on transient errors#2210

Merged
a-crate merged 1 commit intochainguard-dev:mainfrom
a-crate:retry-package-installs
May 4, 2026
Merged

retry package fetch+expand on transient errors#2210
a-crate merged 1 commit intochainguard-dev:mainfrom
a-crate:retry-package-installs

Conversation

@a-crate
Copy link
Copy Markdown
Member

@a-crate a-crate commented May 4, 2026

Adds retry logic around the fetch→expand→verify pipeline in
getPackageImpl(). Random "unexpected EOF" errors during gzip/tar
decompression are now retried up to 3 times with linear backoff.

Fixes #1903

🤖 Generated with Claude Code

@a-crate a-crate force-pushed the retry-package-installs branch from 9dcfe43 to 931ea38 Compare May 4, 2026 15:05
@a-crate

This comment was marked as outdated.

@a-crate a-crate marked this pull request as ready for review May 4, 2026 16:06
@a-crate a-crate requested a review from a team May 4, 2026 16:06
Comment thread pkg/apk/apk/package_getter.go
Comment thread pkg/apk/apk/package_getter_test.go Outdated
markusboehme
markusboehme previously approved these changes May 4, 2026
Copy link
Copy Markdown
Member

@markusboehme markusboehme left a comment

Choose a reason for hiding this comment

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

Comments are not blocking.

Adds retry logic around the fetch→expand→verify pipeline in
getPackageImpl(). Random "unexpected EOF" errors during gzip/tar
decompression are now retried up to 3 times with linear backoff.

Fixes chainguard-dev#1903

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@a-crate a-crate merged commit 5644a41 into chainguard-dev:main May 4, 2026
22 checks passed
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.

bug: apko should retry package installs

2 participants