-
Notifications
You must be signed in to change notification settings - Fork 304
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
debugging py_test targets with pytest main "hangs" #6824
Comments
Hey @rajukrishnamurthy, could you verify if #6847 fixes the issue for you? |
@agluszak I pulled down |
Oh, just found we've already received this report in #5146 |
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:
In both cases, 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
The text was updated successfully, but these errors were encountered: