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

fresh-cat-90827

04/29/2022, 3:41 PM
when running
./pants test ::
for all tests, is there an option to mark which tests should run with cache available and which should always be run as if there was no local cache (essentially with
--no-local-cache
)? I am thinking about creating a separate
python_tests
target with
tags
e.g.
./pants --tag="integration" test :: --no-local-cache
. Is there a better option?
b

bitter-ability-32190

04/29/2022, 3:57 PM
Maybe a field added to select targets? 🤔
f

fresh-cat-90827

04/29/2022, 8:37 PM
sorry, what do you mean? 😕
b

bitter-ability-32190

04/29/2022, 8:40 PM
Perhaps this could be implemented as a PR where you add a field to python_test target along the lines of "no cache"
f

fresh-cat-90827

04/29/2022, 8:41 PM
ah I see, makes sense. I am not convinced adding a new field is justified -- using a tag will suffice for these needs, imho, but just wanted to check with others just in case 🙂
5 Views