https://pantsbuild.org/ logo
h

hundreds-breakfast-49010

11/18/2019, 7:26 PM
can anyone point me in the right place in the engine code to look for where the actual decision to memoize or not memoize a rust
Task
happens?
a

aloof-angle-91616

11/18/2019, 8:11 PM
i would love to know the answer to this and might try to investigate for 5 minutes
but https://github.com/pantsbuild/pants/issues/6598 is relevant. just marking a Node !cacheable isn't quite sufficient currently, because any dependents of that Node will still be cached, so that would look like a an uncacheable "hole" in the middle of the graph
dirtying to the root would be a strategy to basically say "this node is not cacheable, so everything above it needs to be considered to be dirty continuously"
h

hundreds-breakfast-49010

11/18/2019, 8:35 PM
right, I just wanted to get a rough idea of where in the code was the right place to look