tractor/tractor
Tyler Goodlet 61e9c7d4db Handle egs on failed `request_root_stdio_lock()`
Namely when the subactor fails to lock the root, in which case we
try to be very verbose about how/what failed in logging as well
as ensure we cancel the employed IPC ctx.

Implement the outer `BaseException` handler to handle both styles,
- match on an eg (or the prior std cancel excs) only raising a lone
  sub-exc from for former.
- always `as _req_err:` and assign to a new func-global `req_err`
  to enable the above matching.

Other,
- raise `DebugStateError` on `status.subactor_uid != actor_uid`.
- fix a `_repl_fail_report` ref error due to making silly assumptions
  about the `_repl_fail_msg` global; now copy from global as default.
- various log-fmt and logic expression styling tweaks.
- ignore `trio.Cancelled` by default in `open_crash_handler()`.
2025-02-26 18:21:19 -05:00
..
_testing Disable tb colors in `._testing.mk_cmd()` 2025-02-26 15:35:00 -05:00
devx Handle egs on failed `request_root_stdio_lock()` 2025-02-26 18:21:19 -05:00
experimental Drop now-deprecated deps on modern `trio`/Python 2024-03-13 18:41:24 -04:00
hilevel Use shorthand nursery var-names per convention in codebase 2024-12-11 20:26:13 -05:00
msg Draft a (pretty)`Struct.fields_diff()` 2024-12-10 14:12:37 -05:00
trionics A couple more loose-egs flag flips 2025-02-26 18:06:06 -05:00
__init__.py Finally implement peer-lookup optimization.. 2024-07-04 19:40:11 -04:00
_child.py Hide `._entry`/`._child` frames, tweak some more type annots 2024-04-14 17:49:18 -04:00
_clustering.py Clean up some imports in `._clustering` 2025-02-26 15:34:59 -05:00
_context.py Log format tweaks for sclang reprs 2025-02-26 15:35:00 -05:00
_discovery.py Finally implement peer-lookup optimization.. 2024-07-04 19:40:11 -04:00
_entry.py Log format tweaks for sclang reprs 2025-02-26 15:35:00 -05:00
_exceptions.py Drop `asyncio`-canc error from `._exceptions` 2025-02-26 15:34:59 -05:00
_forkserver_override.py Re-license code base for distribution under AGPL 2021-12-14 23:33:27 -05:00
_ipc.py More formal `TransportClosed` reporting/raising 2024-07-02 12:21:26 -04: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.. 2023-11-06 15:44:21 -05:00
_portal.py A couple more loose-egs flag flips 2025-02-26 18:06:06 -05:00
_root.py Expose `hide_tb: bool` from `.open_nursery()` 2025-02-26 15:35:00 -05:00
_rpc.py Log format tweaks for sclang reprs 2025-02-26 15:35:00 -05:00
_runtime.py Log format tweaks for sclang reprs 2025-02-26 15:35:00 -05:00
_shm.py Drop now-deprecated deps on modern `trio`/Python 2024-03-13 18:41:24 -04:00
_spawn.py Log format tweaks for sclang reprs 2025-02-26 15:35:00 -05:00
_state.py Pass `infect_asyncio` setting via runtime-vars 2024-07-11 13:22:53 -04:00
_streaming.py Reraise RAEs in `MsgStream.receive()`; truncate tbs 2024-07-02 16:31:15 -04:00
_supervise.py Expose `hide_tb: bool` from `.open_nursery()` 2025-02-26 15:35:00 -05:00
log.py Support passing pre-conf-ed `Logger` 2024-12-18 12:30:17 -05:00
to_asyncio.py Raise "independent" task errors in an eg 2025-02-26 15:33:55 -05:00