I started getting some errors when running my `pan...
# general
w
I started getting some errors when running my
pants test
not sure what happened.. the tests run for only one target (which passes) and then it shuts down… I’m using 1.30.2rc1 (was using 1.30.0 before)
j
@wooden-thailand-8386 Clarification question: When you switch back to 1.30.0 or 1.30.1 it works?
w
No, it was already failing at 1.30.0, I can try 1.30.1…
yeah, same error 😞
j
Do all tests in your repo you've tested give this result or just the one you are showing an example of? The error says
posixpath.py
is being passed
None
which is coming from
pytest_run.py
. Seems like it isn't finding any
test_targets
.
(I have not seen this before, so please excuse the Socratic method.)
w
no worries /\
so it’s happening all the time, doesnt matter if it’s
test tests::
or something like
test tests/cool_lib::
I’ve even renamed the BUILD files and tried different test folder but it’s always happening. Not sure if I broke something unintentionally 😨
j
If you can identify the change that caused it to stop working, that's like the gold standard. But since you are asking here, that's probably not a trivial task. Someone more knowledgeable with the internals of
pants
will come along shortly and ask more smarter questions.
w
haha yeah you’re right… I’ve been troubleshooting this for a while and can’t really figure it out… kinda odd. Something with a merge that I did to my repo started this to happen so I’m not 100% sure if it’s something with
pants
and cache.. or the folders got messed up.
j
nuking the
pants
cache is always a good troubleshooting step.
w
yea, unfortunately that is not the worst advice when it comes to v1
it is almost never the right answer with v2 though (pheew!)