From 7d0a53d205c0ec5003c27afbcd2bc741798ae1d6 Mon Sep 17 00:00:00 2001 From: goodboy Date: Wed, 13 May 2026 12:28:17 -0400 Subject: [PATCH] Enrich `pytestmark` in `test_inter_peer_cancellation` - `skipon_spawn_backend('subint')`: expand reason with specific analysis doc refs + GH issue #379 umbrella link. - add `track_orphaned_uds_per_test` fixture via `usefixtures` to blame-attribute UDS sock-file orphans left by SIGKILL cancel cascades. (this patch was generated in some part by [`claude-code`][claude-code-gh]) [claude-code-gh]: https://github.com/anthropics/claude-code --- tests/test_inter_peer_cancellation.py | 32 ++++++++++++++++++++------- 1 file changed, 24 insertions(+), 8 deletions(-) diff --git a/tests/test_inter_peer_cancellation.py b/tests/test_inter_peer_cancellation.py index fc5d741d..6bf74880 100644 --- a/tests/test_inter_peer_cancellation.py +++ b/tests/test_inter_peer_cancellation.py @@ -26,14 +26,30 @@ from tractor._testing import ( from .conftest import cpu_scaling_factor -pytestmark = pytest.mark.skipon_spawn_backend( - 'subint', - reason=( - 'XXX SUBINT GIL-CONTENTION HANGING TEST XXX\n' - 'See oustanding issue(s)\n' - # TODO, put issue link! - ) -) +pytestmark = [ + pytest.mark.skipon_spawn_backend( + 'subint', + reason=( + 'XXX SUBINT GIL-CONTENTION HANGING TEST XXX\n' + 'Inter-peer cancel cascades under ' + '`--spawn-backend=subint` trip the abandoned-subint ' + 'GIL-hostage class — see\n' + ' - `ai/conc-anal/subint_sigint_starvation_issue.md` ' + '(GIL-hostage, SIGINT-unresponsive)\n' + ' - `ai/conc-anal/subint_cancel_delivery_hang_issue.md` ' + '(sibling: parent parks on dead chan)\n' + ' - https://github.com/goodboy/tractor/issues/379 ' + '(subint umbrella)\n' + ) + ), + # NOTE, inter-peer cancellation tests stress the + # multi-actor cancel cascade which under SIGKILL + # leaves UDS sock-files orphaned. Track per-test + # for blame attribution. + pytest.mark.usefixtures( + 'track_orphaned_uds_per_test', + ), +] # XXX TODO cases: # - [x] WE cancelled the peer and thus should not see any raised