Skip to content
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

Drop Windows event loop hack in Python 3.8+ #573

Merged
merged 1 commit into from
Aug 17, 2023

Conversation

cottsay
Copy link
Member

@cottsay cottsay commented Aug 10, 2023

In Python versions prior to 3.8, it appears that attempting to close the event loop after a Ctrl-C would reliably hang the process, which would need to be killed.

I've been unable to reproduce the behavior in any newer Python versions, so I think it's time to set the timeline for removing the hack entirely.

This should take care of the common ResourceWarning messages when using newer Python versions.

In Python versions prior to 3.8, it appears that attempting to close the
event loop after a Ctrl-C would reliably hang the process, which would
need to be killed.

I've been unable to reproduce the behavior in any newer Python versions,
so I think it's time to set the timeline for removing the hack entirely.

This should take care of the common ResourceWarning messages when using
newer Python versions.
@cottsay cottsay self-assigned this Aug 10, 2023
@codecov
Copy link

codecov bot commented Aug 10, 2023

Codecov Report

Patch coverage: 100.00% and no project coverage change.

Comparison is base (7b70e61) 81.88% compared to head (2008cea) 81.88%.

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #573   +/-   ##
=======================================
  Coverage   81.88%   81.88%           
=======================================
  Files          62       62           
  Lines        3648     3649    +1     
  Branches      705      706    +1     
=======================================
+ Hits         2987     2988    +1     
  Misses        609      609           
  Partials       52       52           
Files Changed Coverage Δ
colcon_core/executor/sequential.py 95.71% <100.00%> (+0.06%) ⬆️

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@cottsay cottsay merged commit 74a6705 into master Aug 17, 2023
35 checks passed
@delete-merged-branch delete-merged-branch bot deleted the cottsay/windows-loop-closure branch August 17, 2023 22:38
@cottsay cottsay added the bug Something isn't working label Sep 22, 2023
@cottsay cottsay added this to the 0.13.0 milestone Sep 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Development

Successfully merging this pull request may close these issues.

2 participants