Skip to content

Make cache use zstd compression#555

Open
skipi wants to merge 4 commits into
masterfrom
bp/zstd-caching
Open

Make cache use zstd compression#555
skipi wants to merge 4 commits into
masterfrom
bp/zstd-caching

Conversation

@skipi

@skipi skipi commented Jun 29, 2026

Copy link
Copy Markdown
Member

Mirror of #530 by @bertptrs, pushed as an in-repo branch so CI can run — fork PRs cannot access the project secrets the pipeline needs, so the workflow never triggers on the original.

All commits are authored by @bertptrs; credit is theirs. Closes #530 once this is green and merged.

Co-authored-by: Bert Peters bert@bertptrs.nl

The cache command will now create zstd-compressed archives. When
decompressing, it attempts to compress as Zstd first, but if the magic
bytes do not match, it falls back to gzip compression.
skipi and others added 2 commits June 29, 2026 11:21
# Conflicts:
#	cache-cli/pkg/archive/shell_out_archiver.go
CI revive flagged the zstd work that never ran on the original fork PR:
- rename is_zstd -> isZstd (var-naming) in shell_out_archiver.go and
  native_archiver.go
- drop else-after-return in newCompressingWriter (indent-error-flow)

Co-authored-by: Bert Peters <bert@bertptrs.nl>
@bertptrs

Copy link
Copy Markdown

I see there are still some CI failures that I didn't catch locally, mainly with the minimal images not including Zstd by default. Is this an issue for you?

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.

2 participants