tractor/tests/devx
Gud Boi e2b790a70d Fix `SIGUSR1` tree-dump ordering in `_stackscope`
Factor the sub-actor relay loop out of
`dump_tree_on_sig()` into `_relay_sig_to_subactors()`
and chain both dump + relay in a single
`run_sync_soon` callback (`_dump_then_relay`) so the
parent's task-tree flushes BEFORE any sub receives
the signal — fixes a hierarchical-ordering race
where subs could dump ahead of the parent in the
muxed pty stream.

Also,
- gate file/tty sink writes behind `write_file` +
  `write_tty` params on `dump_task_tree()`.
- use `actor.aid.uid` instead of deprecated `.uid`.
- update `test_shield_pause` expects to match the
  new sequential parent -> relay-log -> sub ordering.

(this commit msg was generated in some part by [`claude-code`][claude-code-gh])
[claude-code-gh]: https://github.com/anthropics/claude-code
2026-04-30 19:35:55 -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-04-30 14:17:41 -04:00
test_debugger.py Drop test-local timeouts, +`sync_pause` to dev 2026-04-29 18:10:40 -04:00
test_pause_from_non_trio.py Import-or-skip `.devx.` tests requiring `greenback` 2026-04-24 17:39:13 -04:00
test_tooling.py Fix `SIGUSR1` tree-dump ordering in `_stackscope` 2026-04-30 19:35:55 -04:00