You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Firstly, thanks so much for an awesome gem! Saves us so much time in development. We're currently thinking about ways to translate those same savings to CI specifically when running tests. Was wondering if you had a working example of how to properly restore and save the bootsnap cache in CI, we use CircleCI.
I've seen a few issues related to mtime and compile cache. What works and what doesn't in CI and are there any workarounds? I've tried enabling the instrumentation logging, but I see many misses still, so I think there's something I'm not quite understanding about how things work in CI vs. development. I also tried using a tool like git restore mtime but am still seeing misses. So I'm wondering if it's still the mtime or some other part of the cache key that's being invalidated between runs?
Any advice or insights on how to get this working would be greatly appreciated! Also, let me know if there's a better place for these types of questions. Thanks again!
The text was updated successfully, but these errors were encountered:
I'm not familiar with CircleCI but presumably it has some cache mecanism that allow to persist a directory across builds, you can just cache the directory in which bootsnap stores its cache (likely tmp/cache assuming defaults).
Just note that bootsnap cache isn't self cleaning, so the cache may grow over time and will need to be periodically cleaned up.
Hello,
Firstly, thanks so much for an awesome gem! Saves us so much time in development. We're currently thinking about ways to translate those same savings to CI specifically when running tests. Was wondering if you had a working example of how to properly restore and save the bootsnap cache in CI, we use CircleCI.
I've seen a few issues related to
mtime
and compile cache. What works and what doesn't in CI and are there any workarounds? I've tried enabling the instrumentation logging, but I see many misses still, so I think there's something I'm not quite understanding about how things work in CI vs. development. I also tried using a tool like git restore mtime but am still seeing misses. So I'm wondering if it's still themtime
or some other part of the cache key that's being invalidated between runs?Any advice or insights on how to get this working would be greatly appreciated! Also, let me know if there's a better place for these types of questions. Thanks again!
The text was updated successfully, but these errors were encountered: