tractor/tractor/ipc
Gud Boi bf6de55865 Improve tpt-closed msg-fmt/content and CRE case matching
Refine tpt-error reporting to include closure attribution (`'locally'`
vs `'by peer'`), tighten match conditions and reduce needless newlines
in exc reprs.

Deats,
- factor out `trans_err_msg: str` and `by_whom: str` into a `dict`
  lookup before the `match:` block to pair specific err msgs to closure
  attribution strings.
- use `by_whom` directly as `CRE` case guard condition
  (truthy when msg matches known underlying CRE msg content).
- conveniently include `by_whom!r` in `TransportClosed` message.
- fix `'locally ?'` -> `'locally?'` in send-side `CRE`
  handler (drop errant space).
- add masked `maybe_pause_bp()` calls at both `CRE` sites (from when
  i was tracing a test harness issue where the UDS socket path wasn't
  being cleaned up on teardown).
- drop trailing `\n` from `body=` args to `TransportClosed`.
- reuse `trans_err_msg` for the `BRE`/broken-pipe guard.

Also adjust testing, namely `test_ctxep_pauses_n_maybe_ipc_breaks`'s
expected patts-set for new msg formats to be raised out of
`.ipc._transport`.

(this commit msg was generated in some part by [`claude-code`][claude-code-gh])
[claude-code-gh]: https://github.com/anthropics/claude-code
2026-02-19 13:55:02 -05:00
..
__init__.py Move concrete `Address`es to each tpt module 2025-07-08 18:05:05 -04:00
_chan.py Drop `name=__name__` from all `get_logger()` calls 2026-02-11 21:04:49 -05:00
_fd_share.py Move concrete `Address`es to each tpt module 2025-07-08 18:05:05 -04:00
_linux.py Handle cancelation on EventFD.read 2025-07-08 12:57:28 -04:00
_mp_bs.py Disable shm resource tracker via flag on 3.13+ 2025-08-18 22:04:40 -04:00
_ringbuf.py Add buf_size to RBToken and add sender cancel test, move disable_mantracker to its own _mp_bs module 2025-07-08 12:57:28 -04:00
_server.py Drop `name=__name__` from all `get_logger()` calls 2026-02-11 21:04:49 -05:00
_shm.py Drop `name=__name__` from all `get_logger()` calls 2026-02-11 21:04:49 -05:00
_tcp.py Drop `name=__name__` from all `get_logger()` calls 2026-02-11 21:04:49 -05:00
_transport.py Improve tpt-closed msg-fmt/content and CRE case matching 2026-02-19 13:55:02 -05:00
_types.py Factor actor-embedded IPC-tpt-server to `ipc` subsys 2025-07-08 18:05:05 -04:00
_uds.py Cleaups per copilot PR review 2026-02-11 21:51:40 -05:00