-
Notifications
You must be signed in to change notification settings - Fork 48
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
Cache is installed on first run, not available when restored #110
Comments
Similar issue on Ubuntu:
It claims the cache size is zero kb, which is silly, since the american dictionary size is not 0 kb. Ref: https://github.com/pboling/json_schemer-fuzz/actions/runs/6657019792/job/18090858293 |
Enable |
Hi! We are having a similar issue The cache seems to have broken from run to run. For some context, we are installing valgrind and one of its dependencies (libc6-dbg) on the same step: This is the run: On the run that uses the cache we see this:
Hint?On another note, after removing the installation of libc6-dbg, the cache works as expected The reasoning behind installing the dependency was that this action was not being able to install valgrind, saying that the package was not available |
While using this action to try and cache an install of
Possible solutions are:
I'd go with option 3 myself, but option 2 should also work well enough. Option 1 would allow for correct operation with many large packages, but would still leave an upper limit that would cause problems with very large packages, so doesn't seem like the way to go. Complete change to the "Pipe all package files" bash script block for option 3: # Pipe all package files (no folders) and installation control data to Tar.
tar -cf "${cache_filepath}" -C / --verbatim-files-from --files-from <( { dpkg -L "${package_name}" &&
get_install_script_filepath "" "${package_name}" "preinst" &&
get_install_script_filepath "" "${package_name}" "postinst" ;} |
while IFS= read -r f; do test -f "${f}" -o -L "${f}" && get_tar_relpath "${f}"; done ) |
Hi. In https://github.com/yandex/ch-tools we use your action. The issue follows:
Tried using "latest" without "version" and "execute_", same situation.
4. In logs I see
So target package is restored but isn't available.
Issue can be reproduced on a test repository: https://github.com/myrrc/apt-cache-restore-test (see last 2 commits).
(while restoring from cache)
The text was updated successfully, but these errors were encountered: