-
Notifications
You must be signed in to change notification settings - Fork 7
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
After update to 5.0 cached dependencies are built/downloaded again #27
Comments
Upgrading c-n-action seems to break restoring Nix store rendering the cache useless (nix-community/cache-nix-action#27). This rolls the change back.
Upgrading c-n-action seems to break restoring Nix store rendering the cache useless (nix-community/cache-nix-action#27). This rolls the change back.
@develop7, sorry for a late response.
I asked tar to
As I've written in the README, please, try to run https://github.com/mxschmitt/action-tmate right after the |
@develop7, I'll appreciate if you provide the steps to reproduce this behavior in a fork of postgrest. I mean, what actions should run and in what order. Preferrably, a minimal subset of actions. |
Okay, I see this problem in workflows here. Apparently, saving a cache works incorrectly. #879 builds two derivations and saves a cache.
#880 restores the cache and builds the same derivations
|
I re-ran one of the workflows. https://github.com/nix-community/cache-nix-action/actions/runs/8222779566 In the I checked the current nix store. ls /nix/store/ | grep '\-install$'
I saved the list of nix store paths to a file and sorted it. ls /nix/store > a.cur
sort a.cur -o a.cur Next, I ran the nix run .#install Nix downloaded I saved the new list of nix store paths to a file and sorted it. ls /nix/store > a.new
sort a.new -o a.new I took a diff of two files and got no changes diff a.cur a.new I checked the results of running the So, all necessary paths were in the store at the time of running the packages. |
I suspect nix keeps info about the store in certain files, and these files are in the cache. I don't know how to "repair" the store, though. So, for now, I'll remove |
In fact, I decided to ignore the existing |
@develop7, does your problem persist? |
Hey @deemp thank you for looking into the issue; we've phased c-n-a out for our CI setup because caching nix store was actually slower than downloading artifacts from cache.nix.org. |
Okay, I'm closing this issue then. |
I mean, they could be better on real hardware or with more generous CPU and I/O quota for GA workers but oh well |
Before the upgrade to 5.0
nix-env -iA tests
was a no-op because of the cache previously created in https://github.com/PostgREST/postgrest/actions/runs/7612462322/job/20730136624, after the upgrade it isn't anymore — https://github.com/PostgREST/postgrest/actions/runs/7614272320/job/20736483790#step:3:112.Note that tar error messages are gone too. Does it mean the cache is unpacked somewhere else?
The text was updated successfully, but these errors were encountered: