-
Notifications
You must be signed in to change notification settings - Fork 159
fix: suppress event loop errors during subprocess transport cleanup #731
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
Conversation
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
🚀 Build artifacts are ready for testing!Download the wheel file and binaries with gh CLI or from the workflow artifacts. 📦 Install & RunPre-requisites# Install uv if needed
curl -LsSf https://astral.sh/uv/install.sh | sh
# Create and enter artifacts directory
mkdir artifacts && cd artifacts Quick Test with Python Package# Download and run with uv
gh run download 14844755850 -n dist -R pyupio/safety
uv run --with safety-3.4.1b0+fix.subprocess.exceptions-py3-none-any.whl safety --version Binary Installation# Linux
gh run download 14844755850 -n safety-linux -D linux -R pyupio/safety
cd linux && mv safety safety-pr && chmod +x safety-pr
# macOS
gh run download 14844755850 -n safety-macos -D macos -R pyupio/safety
cd macos && mv safety safety-pr && chmod +x safety-pr
# Windows
gh run download 14844755850 -n safety-windows -D windows -R pyupio/safety
cd windows && mv safety.exe safety-pr.exe
./safety-pr --version
|
Fix RuntimeError when garbage collector tries to clean up subprocess transports after event loop closure. Affects multiple Python versions (3.8+) on both Windows and Unix platforms. Added patches to safely handle 'Event loop is closed' errors in BaseSubprocessTransport.__del__, _ProactorBasePipeTransport.__del__ and others.
e0b9e46
to
10aebd5
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Fix RuntimeError when garbage collector tries to clean up subprocess transports after event loop closure. Affects multiple Python versions (3.8+) on both Windows and Unix platforms. Added patches to safely handle 'Event loop is closed' errors in BaseSubprocessTransport.del, _ProactorBasePipeTransport.del and others.