cache
cache copied to clipboard
No space left on device during creating the tar file
Some error like this:
Post job cleanup.
/usr/bin/tar --posix -cf cache.tzst --exclude cache.tzst -P -C /home/runner/work/owner/repo --files-from manifest.txt --use-compress-program zstdmt
zstd: error 70 : Write error : cannot write block : No space left on device
/usr/bin/tar: cache.tzst: Wrote only 4096 of 10240 bytes
/usr/bin/tar: Child returned status 70
/usr/bin/tar: Error is not recoverable: exiting now
Warning: Failed to save: "/usr/bin/tar" failed with error: The process '/usr/bin/tar' failed with exit code 2
Currently the CI job fails then.
I'm not sure about the best solution.
- #1281 / #1282 suggests to add
--remove-files. But I'm not sure whether that's the best idea. - Use some temp filesystem to store the tar file which has enough space.
- Just ignore the error, make it a warning instead, and proceed. Or make this configurable. I'm totally fine if this is just a warning.
I am seeing the same in my build but not for all cache actions. It doesn't fail the build, though.
Is this something I need to address? Is the content to cache too much?