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

astonishing-london-2419

09/18/2021, 7:39 PM
Hi all! I wanted to understand how caching and dependencies work, for example when running in a CI. I find myself a lot of times modifying a config file in the repo (declared as a
resources
) and I’d like to avoid rerunning unnecessary tests when this happens (but also I want to run a few relevant ones). I was thinking of setting up a special set of “config tests” but I am not sure what happens if the only changed files are for example yaml included in resources. Can somebody shed light on this?
h

happy-kitchen-89482

09/19/2021, 6:45 PM
The right thing should happen. The sources in a
resources
target participate in fingerprinting just like any other sources.
So as long as your test depends on the
resources
target (presumably via explicit dep, since we don't infer deps on resource files) then invalidating the resource should invalidate the tests that depend on it, and only those tests.
🙏 1
3 Views