New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support multiple compression algorithms when restoring cache #543
Comments
Hi @Vampire , while we do support multiple compression algorithms and have implemented optimizations since you posted this, the idea of having the customer choose their own algorithm does have merit and can be looked into. For now, closing this issue as this feature is not planned currently. Feel free to provide feedback on #984 for the current proposal on changes to tar compression. |
@pdotl I nowhere suggested to let the customer choose the algorithm. |
@Vampire apologies for the misunderstanding. We have now proposed defaulting to the same tar and compression algorithm wherever possible to ensure cross-os compatibility. Also we have ensured to default to the tools available across all hosted runners so this should not be a problem anymore. Feel free to drop by #984 to provide feedback. Many thanks! |
Yeah, sure, if all use the same (also in the future) this is of course obsolete :-) |
@Vampire We have released a new beta release which should fix this issue. Try tag: |
Currently if you create a cache entry on a system where
gzip
is used and then restore the cache on a system wherezstd
is used, you get a cache miss.It would be nice if instead mutliple compression algorithms were supported.
Something like this:
on cache creation:
zstd
with--long
presentzstd
with--long
zstd
presentzstd
gzip
on cache restoring:
zstd
with--long
presentzstd
presentgzip
This way, for example a cache entry created on a
gzip
system can be used even on azstd
system.And to be even fancier, when restoring a "lower" level (
gzip
orzstd
onzstd
with--long
, orgzip
onzstd
), the file could be recompressed with the "higher" level and a new cache entry for that higher level created, so that next time it can be used more efficiently.The text was updated successfully, but these errors were encountered: