Skip to content

Handle truncated bundles gracefully during restore#12

Merged
joshfriend merged 1 commit intomainfrom
jfriend/handle-truncated-bundles
Apr 14, 2026
Merged

Handle truncated bundles gracefully during restore#12
joshfriend merged 1 commit intomainfrom
jfriend/handle-truncated-bundles

Conversation

@joshfriend
Copy link
Copy Markdown
Collaborator

When a bundle was uploaded partially (e.g. the uploader crashed mid-tar), restoring it would fail with an unexpected EOF error. This change catches that case and logs a warning instead, allowing the partially extracted cache to still be used.

@joshfriend joshfriend enabled auto-merge (squash) April 14, 2026 18:27
Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 18a0ceb01c

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread gradlecache/restore.go
@joshfriend joshfriend disabled auto-merge April 14, 2026 18:30
@joshfriend joshfriend force-pushed the jfriend/handle-truncated-bundles branch from 18a0ceb to fc90d48 Compare April 14, 2026 18:32
@joshfriend joshfriend enabled auto-merge (squash) April 14, 2026 18:33
@joshfriend joshfriend merged commit 08b2158 into main Apr 14, 2026
10 checks passed
@joshfriend joshfriend deleted the jfriend/handle-truncated-bundles branch April 14, 2026 18:40
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