helpful-jackal-12093
11/11/2021, 3:40 PMpants
. I admit I have a rather large project, and I’m currently using pants
for running python tests. After really not much runs - it seems that the pants
cache becomes rather large, and I’m not sure it’s size wise but more quantity wise.
I tried to rm -rf
the directory, that took so much time that I gave up eventually, and used rsync
which took lots of time (tens of minutes).
I decided to run a simple find
on the directory and time it - is this expected?
[devenv2] ~ ❯❯❯ time find ~/.cache/pants -type f | wc -l
7333743
noglob find ~/.cache/pants -type f 18.45s user 609.89s system 18% cpu 56:23.34 total
wc -l 1.26s user 1.18s system 0% cpu 56:23.34 total
[devenv2] ~ ❯❯❯
It took a little bit more than 56 minutes to complete
I’m using a MacBook Pro - Intel i5 Quad Core with 16GB Ram on an APPLE SSD running macOS Montereycurved-television-6568
11/11/2021, 3:44 PMhelpful-jackal-12093
11/11/2021, 3:47 PMwitty-crayon-22786
11/11/2021, 7:28 PM$HOME/.cache/pants/named_caches
contains the largest number of files, although it may not be the largest total filesizewitty-crayon-22786
11/11/2021, 7:29 PMwitty-crayon-22786
11/11/2021, 7:29 PM$HOME/.cache/pants/lmdb_store
will also be large, but should always contain a bounded number of files, since it’s a database. it is garbage collected by pantsd
witty-crayon-22786
11/11/2021, 7:30 PMhappy-kitchen-89482
11/12/2021, 1:54 AMhappy-kitchen-89482
11/12/2021, 1:56 AMnondeployables
mode of [python].resolve_all_constraints
, so you can run tests in a single global consistent venv (if you have one)happy-kitchen-89482
11/12/2021, 1:56 AMwitty-crayon-22786
11/12/2021, 2:49 AMhappy-kitchen-89482
11/12/2021, 5:34 AMwitty-crayon-22786
11/12/2021, 5:58 PM