Pause tests hanging on ctlc=True #9

Open
opened 2025-03-05 16:53:51 +00:00 by goodboy · 1 comment

2 cases thus far.. which you can see in the now decorated tests @ 81349f7c09


  • one with trio core actually that seems to be with bg-threads as per the tests.devx.test_pause_from_non_trio.test_pause_from_sync which when the ctlc=True parametrization is set hangs on the final EOF termination which is definitely reproducable manually from the example script examples/debugging/sync_bp.py where you cx4 and then do a ctl-c mash on the last repl prompt and then a final c which seems to get trio into a SIGINT igoring hang state !?
    • prolly should mk a MRE and report to upstream..
  • the pause-from-asyncio test-script which will actually KBI out early on a ctlc mashing; obvi this is preferred over the hanging we get above..
    • need to either adjust the test to expect to exit early and/or our shield_sigint() handler to work better with aio..
2 cases thus far.. which you can see in the now decorated tests @ 81349f7c09acf9098b560f44e32cb27d91e41242 --- - one with `trio` core actually that seems to be with bg-threads as per the `tests.devx.test_pause_from_non_trio.test_pause_from_sync` which when the `ctlc=True` parametrization is set hangs on the final `EOF` termination which **is definitely** reproducable manually from the example script `examples/debugging/sync_bp.py` where you `c`x4 and then do a ctl-c mash on the last repl prompt and then a final `c` which seems to get `trio` into a `SIGINT` igoring hang state !? - [ ] prolly should mk a MRE and report to upstream.. - the pause-from-`asyncio` test-script which will actually KBI out early on a ctlc mashing; obvi this is preferred over the hanging we get above.. - [ ] need to either adjust the test to expect to exit early and/or our `shield_sigint()` handler to work better with aio..
Poster
Owner

Likely relations with,

Likely relations with, - outstanding GH issue: https://github.com/goodboy/tractor/issues/354 - bullets from closed GH PR: https://github.com/goodboy/tractor/pull/362 - the likely worth scanning GH `debugger` tagged issue list: https://github.com/goodboy/tractor/issues?q=is%3Aissue+is%3Aopen+label%3Adebugger
Sign in to join this conversation.
No Label
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: goodboy/tractor#9
There is no content yet.