-
-
Notifications
You must be signed in to change notification settings - Fork 610
Register for signals only when running in the main thread #1086
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
Comments
The issue here seems to be on proxy shutdown. What I don't understand is what is introducing threading. We use the generic pytest runner so I don't see how it could be threaded. Does proxy.py use threading in how I'm running it? |
Per the docs, I expected it to be using threadless because it's python3.8+ and linux, but maybe it's not? I'm not specifying |
Hi @bmbouter , as you discovered, it will run in Per this thread https://bugs.python.org/issue38904,
|
You can try it from #1087 branch. I hope this fix works out for you :) |
If you are interested, read about local vs remote modes here. |
Merged. Lemme know if it works. You can try out the pre-releases for quick verification. Happy to release |
I'm going to test it now and it'll run in our CI for a while. I'll watch for the issue for a week and let you know. Feel free to cut a 2.4.1 sooner if you want or you can wait to hear back. You are incredibly responsive, and I really really appreciate it and this proxy. proxy.py is great! |
@abhinavsingh after a week of observation while our CI uses the commit with the fix, I can confirm we've seen 0 instances of the issue anymore. If you're able to release 2.4.1 that would be much appreciated. Thank you! ❤️ |
@bmbouter Thank you, I'll make a release over the weekend. I ran it last night and it failed due to spell check errors :(. Will try over the weekend :) |
@abhinavsingh is releasing the 2.4.1 possible? Thanks! |
@bmbouter I'll give it a try this week. Apologies for the delay. Something has gone wrong with Give me time till Wednesday. Thank you!!! |
It's no problem at all. If you have time that would be great. Thank you! |
This is wonderful, thank you! |
Describe the bug
We have a simple pytest fixture that sets up a proxy.py. Here's a copy/paste of it:
When running it locally it works perfectly. When running it in the Github Actions CI environment it fails ocassionally, but enough that it's a problem. Here's the traceback we have gotten several times:
To Reproduce
I don't have a great reproducer. It's just pytest on github actions.
Version information
proxy.py==2.4.0
The text was updated successfully, but these errors were encountered: