Skip to content

Wait for daemon publisher discovery in topic CLI tests - #1277

Open
sylvesterkaczmarek wants to merge 1 commit into
ros2:rollingfrom
sylvesterkaczmarek:fix-1093-wait-daemon-publisher
Open

Wait for daemon publisher discovery in topic CLI tests#1277
sylvesterkaczmarek wants to merge 1 commit into
ros2:rollingfrom
sylvesterkaczmarek:fix-1093-wait-daemon-publisher

Conversation

@sylvesterkaczmarek

@sylvesterkaczmarek sylvesterkaczmarek commented Aug 20, 2026

Copy link
Copy Markdown

Description

Fix the race tracked in #1093 by waiting until the CLI daemon has discovered the test publishers before launching ros2 topic bw, delay, or hz.

The existing waits use self.node.count_publishers(), which immediately sees the publisher created by that same node. That does not guarantee the daemon used by the CLI has discovered the endpoint yet, which is the failure mode seen with Zenoh.

Use NodeStrategy to query count_publishers() through the running CLI daemon instead. Apply the same synchronization to the basic, multi-topic, and --all bw/hz paths.

Fixes #1093.

Is this user-facing behavior change?

No. This only makes the CLI integration tests wait for the same discovery state that the commands rely on.

Additional Information

The retry remains bounded and the tests still fail if the daemon does not discover the publishers.

Did you use Generative AI?

Yes. AI was used to assist with tests.

Signed-off-by: Sylvester Kaczmarek <16242628+sylvesterkaczmarek@users.noreply.github.com>
@mergify

mergify Bot commented Aug 20, 2026

Copy link
Copy Markdown

Tick the box to add this pull request to the merge queue (same as @mergifyio queue).

  • Queue this pull request

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

🧑‍🌾 ros2topic.ros2topic.test.test_bw_delay_hz.test_bw_delay_hz failing in Kilted Zenoh

1 participant