Skip to content
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

Fix macos caching issue #19

Merged
merged 4 commits into from
Sep 19, 2023
Merged

Fix macos caching issue #19

merged 4 commits into from
Sep 19, 2023

Conversation

LucilleH
Copy link
Contributor

@LucilleH LucilleH commented Sep 18, 2023

Description

macOS caching is broken. This PR fixes it. This is related to gtar not having sudo permission, but /nix/store requires sudo. There are many many related issues out there. eg. actions/cache#749

I also switched to using DeterminateSystems nix installer. However, I noticed that even though cache is successfully restored in the latest round of CICD, we are still fetching the binaries from remote? (at least based on the log lines) Why is that?

I suspect that I'm missing some sqlite data in the cached files. cc @savil @gcurtis if any of you have insights into this.

EDIT: SOLVED. Added xdg paths in the cache and it reduces the time by half. 🎉 🎉 🎉

closes #13

@LucilleH LucilleH force-pushed the lucille--macos-cache branch 6 times, most recently from c45d652 to 38a9442 Compare September 18, 2023 21:43
@LucilleH LucilleH force-pushed the lucille--macos-cache branch 6 times, most recently from ddea841 to 01f4e1c Compare September 19, 2023 00:25
@LucilleH LucilleH force-pushed the lucille--macos-cache branch 12 times, most recently from f852f26 to a7d0997 Compare September 19, 2023 04:19
@LucilleH LucilleH force-pushed the lucille--macos-cache branch from a7d0997 to efe9b42 Compare September 19, 2023 04:23
@LucilleH LucilleH marked this pull request as ready for review September 19, 2023 04:32
@LucilleH LucilleH changed the title Test macos caching issue Fix macos caching issue Sep 19, 2023
@LucilleH
Copy link
Contributor Author

cc: @alex35mil

@LucilleH LucilleH force-pushed the lucille--macos-cache branch from 1bf1ffa to ea9269c Compare September 19, 2023 17:02
@alex35mil
Copy link

Thanks! Though I reverted the addition of the Devbox to CI for now as apparently I can't use it for Windows builds yet.

@LucilleH LucilleH added this pull request to the merge queue Sep 19, 2023
Merged via the queue into main with commit 572189b Sep 19, 2023
uses: actions/cache@v3
with:
path: |
~/.cache
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should we scope this to ~/.cache/nix and/or ~/.cache/devbox ?

@LucilleH LucilleH deleted the lucille--macos-cache branch September 19, 2023 17:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

Permissions denied to delete files
4 participants