actions / actions/toolkit

[Feature request] Allow configuration of zstd compression level

Open
#2,050 0 comments 4 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
TypeScript
Stars
5.9k
Forks
1.8k
PR merge metrics
No merged PRs in 30d

Description

I'd like to configure zstd compression for my cache, and was surprised to find this is not configurable. Can this be supported by an env var?

For example, sccache supports SCCACHE_CACHE_ZSTD_LEVEL (default: 3) which significantly modifies cache size.

My understanding is that this repo is the source of the zstd functionality in the actions/cache Action (and in turn, the likes of prefix-dev/setup-pixi which delegate caching to the cache action and hence to this toolkit action).

As such, the ability to configure the zstd compression level in this toolkit action would be immediately useful to me if it allowed configuration via environment variable (as is done in sccache).

  • Update PR submitted in #2051

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the toolkit's zstd functionality and review the proposed implementation in PR #2051. Verify that an environment-variable setting changes the cache compression level while preserving the documented default, and confirm the behavior with the relevant tests or cache workflow.

Written by the indexing model from the issue text.

Assessment

Tech stack
github-actions, typescript
Domain
devops
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.