rich-london-74860
09/30/2024, 3:48 PMpants
on v2.16 (yes, I know it's deprecated), but we're encountering a problem where running lint
for all targets writes >100GB to disk. That's crazy!
It's not only annoying to clean-up our local pants
cache so frequently, but this recently hit the limit of disk allocated for our CI tasks. What can I do to manage this?
Thank youbroad-processor-92400
09/30/2024, 6:50 PMdu -h -d2 ~/.cache/pants
might highlight whether it's process caches (lmdb_store
) or named/append-only caches for a specific tool (named_caches/...
)?
• Which linters are you using?rich-london-74860
10/01/2024, 3:49 PMpantsd
and only ran pants lint ::
and this was written to the cache
14G .cache/pants/named_caches/pex_root
14G .cache/pants/named_caches
4.4M .cache/pants/lmdb_store/cache
1.1G .cache/pants/lmdb_store/files
5.3M .cache/pants/lmdb_store/directories
1.2G .cache/pants/lmdb_store
15G .cache/pants
15G is obviously much less than 100G (that number came from that command running on a docker container in CI), but I'll see if I can figure out how to replicate what happened in CIbroad-processor-92400
10/01/2024, 5:02 PMrich-london-74860
10/01/2024, 5:02 PMcurved-manchester-66006
10/04/2024, 2:47 AM14G
or 30G
. And I don't have a great handle on the variabilityrich-london-74860
10/09/2024, 1:27 AM6.6G dist/cache/pants/lmdb_store/files
2.3M dist/cache/pants/lmdb_store/directories
2.3M dist/cache/pants/lmdb_store/cache
6.6G dist/cache/pants/lmdb_store
88G dist/cache/pants/named_caches/pex_root
88G dist/cache/pants/named_caches
94G dist/cache/pants
94G dist/cache
88G of pex_root
!
Is there a reason why more might be written to pex_root
on some machines (a linux docker image running in CI) vs others (developer's mac osx arm64)?broad-processor-92400
10/24/2024, 12:33 AMnumpy-2.1.2-cp312-cp312-macosx_14_0_x86_64.whl
6.6 MB
• numpy-2.1.2-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
16.0 MB
I think pex_root can end up with the .whl files and then various unzipped copies of them too, for all the different subsets of dependencies