tractor/tractor
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
..
_testing Mk `.devx._debug` a sub-pkg `.devx.debug` 2025-07-14 00:00:12 -04:00
devx Add a `._trace.maybe_pause_bp()` for tpt-broken cases 2026-02-19 13:55:02 -05:00
experimental Add API-modernize-todo on `experimental._pubsub.fan_out_to_ctxs` 2025-07-08 18:05:05 -04:00
ipc Improve tpt-closed msg-fmt/content and CRE case matching 2026-02-19 13:55:02 -05:00
msg Drop `name=__name__` from all `get_logger()` calls 2026-02-11 21:04:49 -05:00
trionics Drop `name=__name__` from all `get_logger()` calls 2026-02-11 21:04:49 -05:00
__init__.py move tractor._ipc.py into tractor.ipc._chan.py 2025-07-08 12:57:28 -04:00
_addr.py Drop `name=__name__` from all `get_logger()` calls 2026-02-11 21:04:49 -05:00
_child.py Adjust `._child` instantiation of `Actor` to use newly named `uuid` arg 2025-07-08 12:57:28 -04:00
_clustering.py Fix cluster suite, chng to new `gather_contexts()` 2025-08-18 10:46:37 -04:00
_code_load.py Mv `load_module_from_path()` to a new `._code_load` submod 2026-02-11 21:03:29 -05:00
_context.py Drop `name=__name__` from all `get_logger()` calls 2026-02-11 21:04:49 -05:00
_discovery.py Drop `name=__name__` from all `get_logger()` calls 2026-02-11 21:04:49 -05:00
_entry.py Drop `name=__name__` from all `get_logger()` calls 2026-02-11 21:04:49 -05:00
_exceptions.py Move `.is_multi_cancelled()` to `.trioniics._beg` 2025-07-16 15:49:18 -04:00
_forkserver_override.py Re-license code base for distribution under AGPL 2021-12-14 23:33:27 -05:00
_mp_fixup_main.py Avoid importing mp for as long as possible 2022-02-17 11:55:26 -05:00
_multiaddr.py Fix doc string "its" typo.. 2025-03-20 19:50:31 -04:00
_portal.py Drop `name=__name__` from all `get_logger()` calls 2026-02-11 21:04:49 -05:00
_root.py Clear rtvs state on root shutdown.. 2026-02-11 22:17:26 -05:00
_rpc.py Mask tpt-closed handling of `chan.send(return_msg)` 2026-02-12 00:51:50 -05:00
_runtime.py Fix when root-actor addrs is set as rtvs 2026-02-11 22:17:26 -05:00
_spawn.py Add attempt at non-root-parent REPL guarding 2025-08-19 14:15:14 -04:00
_state.py Add initial `repl_fixture` support B) 2025-07-14 00:00:12 -04:00
_streaming.py Drop `name=__name__` from all `get_logger()` calls 2026-02-11 21:04:49 -05:00
_supervise.py Drop `name=__name__` from all `get_logger()` calls 2026-02-11 21:04:49 -05:00
log.py Cleaups per copilot PR review 2026-02-11 21:51:40 -05:00
to_asyncio.py Use bare `get_logger()` in `.to_asyncio` 2026-02-11 22:02:41 -05:00