Open rajukrishnamurthy opened 1 week ago
Hey @rajukrishnamurthy, could you verify if #6847 fixes the issue for you?
@agluszak I pulled down master
built and installed the plugin and am getting the same behavior with the repo I referenced above.
Oh, just found we've already received this report in #5146
@agluszak I pulled down
master
built and installed the plugin and am getting the same behavior with the repo I referenced above.
It's not merged yet, so you need to build branch agluszak/fix-6824
@rajukrishnamurthy I have merged that, you can try master branch now
Apologies, I didn't look at that closely enough. Okay, with the fix in place it is no longer scanning the entire filesystem, however it doesn't seem to actually run the test. I've noticed a couple of things:
NO_TESTS_COLLECTED
. Perhaps my main is incorrect?In both cases, bazel test
runs the tests correctly.
I'm happy to continue to be a tester and I will try to be more timely in my response.
Thanks!
Description of the bug:
pytest targets executed with
pytest.main()
seems to hang, but appears to be runningstat()
every file in the filesystem. The debugging session doesn't ever start because there are inevitably unreadable files with throws errors.Which category does this issue belong to?
Intellij, PyCharm
What's the simplest, easiest way to reproduce this bug? Please provide a minimal example if possible.
a minimal repo can be found here
If you debug the unit_test target, I am able to set successfully debug. However, if you try to debug the pytest_test target, it "hangs" on with the folllowing:
if you pause/restart the debugging session a few times, there are repeated calls to
Path.stat()
inlib/python3.9/pathlib.py
Which Intellij IDE are you using? Please provide the specific version.
IDEA ultimate 2024.2.3
What programming languages and tools are you using? Please provide specific versions.
python 3.9 toolchain
What Bazel plugin version are you using?
2024.09.10.0.1-api-version-242
Have you found anything relevant by searching the web?
There is an ongoing slack thread, however, the ability to debug
py_test
targets is new, so I suspect people haven't run into this yet.Any other information, logs, or outputs that you want to share?
No response