https://pantsbuild.org/ logo
#general
Title
# general
b

bitter-ability-32190

10/27/2021, 8:45 PM
Does
pants
have a
clean
equivalent? Specifically looking to clean: • The cache • Previously leaked tempdirs used for debugging
w

witty-crayon-22786

10/27/2021, 8:54 PM
it does not. the cache is garbage collected to a target size by
pantsd
(although it won’t shrink below a high water mark)
but https://github.com/pantsbuild/pants/issues/11167 covers adding an explicit goal for managing caches
are you looking to clear the cache due to a bug, or for space savings?
b

bitter-ability-32190

10/27/2021, 8:56 PM
I want to do cold-cache/warm-cache comparisons
Any thoughts on the leaked tempdirs?
h

happy-kitchen-89482

10/27/2021, 10:25 PM
I usually nuke those manually, but we should probably give them their own namespace under your tmpdir so it's easier to find them
w

witty-crayon-22786

10/27/2021, 10:51 PM
yea. they’re namespaced with a prefix, but not under a directory
b

bitter-ability-32190

10/28/2021, 1:17 PM
Are y'all open to a feature request / PR that puts them in a named subdirectory?
w

witty-crayon-22786

10/28/2021, 4:46 PM
fire away
🙌 1
b

bitter-ability-32190

11/01/2021, 2:18 PM
I've started this effort. I'll need some hand-holding for some of the pieces. The
pants
code is still very mystical to me 🙂
h

happy-kitchen-89482

11/01/2021, 3:57 PM
The rules model is very powerful but takes a little getting used to
Although in this case I think you won't need to know much about that
5 Views