tractor/tests/devx
Gud Boi b0bf546b54 Hoist proc-title prefix to `_def_prefix` const
Make the sub-actor proc-title prefix a single
authoritative constant (`_proctitle._def_prefix`) so
the reap-recognition markers and `xontrib` banner pick
it up automatically — one place to flip the prefix
shape going fwd.

Deats,
- `_proctitle._def_prefix: str = '_subactor'`. New
  module-level const consumed by everything that needs
  to know the prefix.
- `set_actor_proctitle(actor, prefix=_def_prefix)`:
  takes an explicit `prefix` arg (default = the const)
  so callers can override per-spawn if they want.
- Default proc-title format:
  `'tractor[<reprol>]'` → `f'{prefix}[<reprol>]'`
  i.e. `_subactor[<reprol>]` by default.
- `_testing/_reap.py`: cmdline + comm markers source
  the prefix from `_proctitle._def_prefix` instead of
  the hardcoded `'tractor['`. So
  `_is_tractor_subactor()` tracks the const
  automatically.
- `xontrib/tractor_diag.xsh`: `acli.reap` orphan-mode
  banner now interpolates the
  `_TRACTOR_PROC_CMDLINE_MARKERS` tuple directly so
  the human-readable mode line stays in sync if the
  prefix shape changes again.

(this commit msg was generated in some part by [`claude-code`][claude-code-gh])
[claude-code-gh]: https://github.com/anthropics/claude-code

(cherry picked from commit 3a45dbd503)
2026-06-09 23:53:14 -04:00
..
__init__.py Officially test proto-ed `stackscope` integration 2025-03-27 13:24:25 -04:00
conftest.py Allow per-call `start_method`/`loglevel` overrides 2026-06-09 23:07:06 -04:00
test_debugger.py Strip ANSI + accept `_create(...)` in devx tests 2026-06-09 22:54:57 -04:00
test_pause_from_non_trio.py Import-or-skip `.devx.` tests requiring `greenback` 2026-06-09 23:05:19 -04:00
test_proctitle.py Hoist proc-title prefix to `_def_prefix` const 2026-06-09 23:53:14 -04:00
test_tooling.py Fix `SIGUSR1` tree-dump ordering in `_stackscope` 2026-06-09 23:24:18 -04:00