the docs on “pants in CI” recommend caching `~/.ca...
# general
the docs on “pants in CI” recommend caching
, but in our repo I find that the size of that dir can grow pretty quickly & dramatically. is there a “safe” subset of that dir we could cache to keep our cache sizes small while still reaping some benefits? I feel like when I’ve poked around in that dir before I’ve seen symlinks between different subdirectories, which makes me worry about the feasibility of only caching a subset
but: if you are successfully using a remote cache, or saving
, then you don’t need to keep the named caches
🤔 hmmm ok, we do have remote caching set up but don’t see it used as much as we’d like (probably because our code is so tangled it’s very easy to bust the cache). so trying to keep a size-limited local cache around as well to minimize the amount of re-done work in cases like that
the “local cache” is in `~/.cache/pants/lmdb_store`… the named caches only come in to play when you miss the local cache
one case where that can happen is when you’ve changed your thirdparty requirements (so you’re expecting to miss the local cache), and need to actually-re-run a thirdparty resolve. if you need to re-run a resolve, the named caches can accelerate that, because they contain a pip cache
yes that is the exact use-case we’re trying to solve for
… without blowing through GHA’s 10gb-of-cache-per-repo quota
bumping that ticket might be helpful then, yea. John has the most knowledge about the contents of the pex_root
👍 1