tractor/tests/discovery
Gud Boi d5c9945a52 Attach existing network namespaces
Add `attach_netns()` to pin a current or named Linux netns in a
borrowed `BindspaceHandle` without creating or entering it.

Deats,
- name the current-namespace default `CURRENT_NETNS`
- derive stable identity from the opened FD with `fstat()`
- open descriptors with `O_CLOEXEC` and close them on context exit
- constrain named lookup beneath the standard iproute2 run directory
- report field-specific validation and missing-resource errors

Prompt-IO: ai/prompt-io/opencode/20260825T045557Z_fdccfd7e_prompt_io.md

(this patch was generated in some part by `opencode` using `gpt-5.6-sol` (`openai`))
2026-08-29 22:00:29 -04:00
..
__init__.py Add `test_multiaddr.py` suite for `mk_maddr()` 2026-04-14 19:54:14 -04:00
conftest.py Document stable macOS UDS operation 2026-08-14 10:37:19 -04:00
test_address_serialization.py Emit canonical tagged addresses 2026-08-29 22:00:16 -04:00
test_bindspace.py Attach existing network namespaces 2026-08-29 22:00:29 -04:00
test_daemon_fixture.py Move registrar probes to `discovery._api` 2026-08-14 18:43:36 -04:00
test_multi_program.py Clarify owned-child hard-reap docs 2026-08-25 15:56:38 -04:00
test_multiaddr.py Emit canonical tagged addresses 2026-08-29 22:00:16 -04:00
test_registrar.py Name every `ActorNursery` binding `an` in tests/examples 2026-08-25 19:19:28 -04:00
test_tpt_bind_addrs.py Emit canonical tagged addresses 2026-08-29 22:00:16 -04:00
test_tunnelled_addr.py Expose tunnel namespaces on IPC endpoints 2026-08-29 22:00:29 -04:00
test_wg_inspection.py Add explicit `verify_wg_peer()` inspection 2026-08-29 22:00:29 -04:00