Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add topologies for testing #125

Closed
wants to merge 4 commits into from
Closed

Conversation

mauropasse
Copy link
Collaborator

Add topologies for testing:

  • Single proces pub/sub
  • Multi-process pub/sub
  • Full topologies
  • IPC ON / OFF / Loaned
  • Diff messages sizes

@mauropasse mauropasse requested a review from alsora as a code owner September 11, 2023 16:05
@@ -33,12 +33,89 @@ set(TOPOLOGY_FILES
topology/debug_sierra_nevada_best_effort.json
topology/debug_mont_blanc_reliable.json
topology/debug_mont_blanc_best_effort.json
topology/debug_white_mountain_best_effort.json
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Out of curiosity, what is the purpose/goal of the debug_*_best_effort.json topologies?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just to have the debug node of the white_mountain.json topology.
There's also the white_mountain_fixed_size_debug.json but that's the debug of the "fixed size" version

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's a topology with a single node that subscribes to all topics published by the white-mountain.
it simulates a "debug station" connecting to the robot for logging or visualization.

FWIW, these debug topologies could be automatically generated

)

install(FILES
${TOPOLOGY_FILES}
DESTINATION lib/${PROJECT_NAME}/topology)

set(SP topology/tests/single_process)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What do you think about removing the tests/ subdirectory? The new topologies are already "identified" via the subdirectories that contain them, like full_topologies, multi_process, and single_process.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

5530b70
Like this?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

Another question though, the white_mountain_fixed_size_debug.json specifies "qos_reliability":"best_effort". But the analogous sierra_nevada_fixed_size_debug.json does not. Intentional?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In 389c1d7 I've renamed the topologies specifying the reliability.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm seeing a duplicate debug_white_mountain_best_effort.json in the top-level topology directory. But it is really (correctly, in my view) beneath the full_topologies/ directory. See

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice, just removed it.

@mauropasse mauropasse closed this Oct 18, 2023
@mauropasse mauropasse deleted the mauro/test-ipc-loaned-3 branch October 18, 2023 11:53
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.

3 participants