-
Notifications
You must be signed in to change notification settings - Fork 12
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
feat: skip small files (<5KB) #69
base: main
Are you sure you want to change the base?
Conversation
Thanks for the PR! I'll tag in @edolstra to see if this makes sense with the invariants of caches. One thing to note is this is really a proxy for how long the build takes, which is a bit more important. |
I'd be happy to test this |
I was able to build this on aarch64-darwin and x86_64-darwin using
I've added this as a comment. |
@hraban I've added the EDIT: actually no, that label only works that way for PRs opened in our org, so |
This seems like a solid solution, it would eliminate more than half the cache entries i get for my project and allow more use of actually useful cached items. Maybe one thing is you could have the size limit able to be customised through an env variable during launch, eg (NAR_SIZE_LIMIT=2000) if a user finds that their project has a weird outlier that takes a while to create but the result is still small. |
Totally arbitrary limit. Never programmed Rust so I have no idea if this work. Can't build it locally even using the nix from the flake.
Fixes DeterminateSystems/magic-nix-cache-action#31 ?