Skip to content

test: isolate network sessions and executable examples - #801

Merged
milyin merged 7 commits into
mainfrom
test/backport-network-isolation
Nov 24, 2026
Merged

milyin merged 7 commits into
mainfrom
test/backport-network-isolation

Conversation

@milyin

@milyin milyin commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor

Parallel tests can discover unrelated sessions on the same host, and independent test runs can collide on fixed ports.

  • Give network tests private loopback listeners with bounded retries on occupied ports, explicit connections, and fixture-owned cleanup.
  • Run command-line data-exchange examples through a private router per test and isolate documentation examples. Keep multicast coverage on a dedicated loopback discovery network.
  • Preserve the pull-example readiness checks introduced in test: synchronize example subprocesses #779 when switching to the new fixture.

Related to #800, which addresses storage example synchronization.

Local validation on macOS arm64 and Python 3.13 used the eclipse-zenoh 1.10.2 binding with shared memory disabled for the sandbox.

  • Python suite with four pytest workers — 43 passed.
  • Executable example suite with four pytest workers — 10 passed, including the grouped documentation examples.
  • Black, isort, Markdown lint, and git diff --check passed.

* test: isolate network sessions and executable examples

* test: address isolation review findings

(cherry picked from commit 0d49dc1b3181bec32b28d9e56130a6d6d281645d)
Signed-off-by: Michael Ilyin <milyin@gmail.com>
Signed-off-by: Michael Ilyin <milyin@gmail.com>
Signed-off-by: Michael Ilyin <milyin@gmail.com>
Signed-off-by: Michael Ilyin <milyin@gmail.com>
Signed-off-by: Michael Ilyin <milyin@gmail.com>
Signed-off-by: Michael Ilyin <milyin@gmail.com>
Signed-off-by: Michael Ilyin <milyin@gmail.com>
@milyin milyin added the internal Changes not included in the changelog label Nov 24, 2026
@milyin
milyin merged commit f2854b4 into main Nov 24, 2026
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

internal Changes not included in the changelog

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants