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

[21793] Easy Mode Implementation #5548

Merged
merged 49 commits into from
Jan 23, 2025
Merged

[21793] Easy Mode Implementation #5548

merged 49 commits into from
Jan 23, 2025

Conversation

cferreiragonz
Copy link
Contributor

@cferreiragonz cferreiragonz commented Jan 8, 2025

Description

This PR updates the CLI to make it compatible with the new Fast DDS Auto Discovery Server Mode using a XML-RPC server to host a daemon.

Must be merged after:

Contributor Checklist

  • Commit messages follow the project guidelines.
  • The code follows the style guidelines of this project.
  • Tests that thoroughly check the new feature have been added/Regression tests checking the bug and its fix have been added; the added tests pass locally. DS Tests: [21793] Easy Mode Implementation - Tests Discovery-Server#112
  • Any new/modified methods have been properly documented using Doxygen.
  • Any new configuration API has an equivalent XML API (with the corresponding XSD extension)
  • N/A Changes are backport compatible: they do NOT break ABI nor change library core behavior.
  • N/A Changes are API compatible.
  • New feature has been added to the versions.md file (if applicable).
  • New feature has been documented/Current behavior is correctly described in the documentation.
  • Related documentation PR: [22427] Fast DDS EASY_MODE - Feature - XMLRPC Server Fast-DDS-docs#1020
  • N/A Applicable backports have been included in the description.

Reviewer Checklist

  • The PR has a milestone assigned.
  • The title and description correctly express the PR's purpose.
  • Check contributor checklist is correct.
  • If this is a critical bug fix, backports to the critical-only supported branches have been requested.
  • Check CI results: changes do not issue any warning.
  • Check CI results: failing tests are unrelated with the changes.

@cferreiragonz cferreiragonz force-pushed the feature/auto_ds_daemonized branch 2 times, most recently from 5d6e50e to eaf2387 Compare January 8, 2025 13:23
@cferreiragonz cferreiragonz requested review from richiprosima and removed request for richiprosima January 8, 2025 13:47
@github-actions github-actions bot added the ci-pending PR which CI is running label Jan 8, 2025
@cferreiragonz cferreiragonz force-pushed the feature/auto_ds_daemonized branch from eaf2387 to 4871cf4 Compare January 8, 2025 13:56
@cferreiragonz cferreiragonz requested review from richiprosima and removed request for richiprosima January 8, 2025 13:58
@cferreiragonz cferreiragonz force-pushed the feature/auto_ds_daemonized branch from 4871cf4 to 910729f Compare January 9, 2025 11:14
Copy link
Member

@Mario-DL Mario-DL left a comment

Choose a reason for hiding this comment

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

Nice job daemonizing, leaving the review.
I am about to test the complete feature under a ROS 2 environment

include/fastdds/rtps/common/PortParameters.hpp Outdated Show resolved Hide resolved
tools/fastdds/discovery/parser.py Show resolved Hide resolved
tools/fastdds/discovery/parser.py Show resolved Hide resolved
tools/fastdds/discovery/parser.py Outdated Show resolved Hide resolved
test/system/tools/fds/CMakeLists.txt Show resolved Hide resolved
tools/fastdds/discovery/fast_daemon/daemon/__init__.py Outdated Show resolved Hide resolved
tools/fds/CliDiscoveryManager.hpp Outdated Show resolved Hide resolved
test/system/tools/fastdds/test_discovery_parser.py Outdated Show resolved Hide resolved
test/system/tools/fds/CliDiscoveryManagerTests.cpp Outdated Show resolved Hide resolved
tools/fds/CliDiscoveryEntrypoint.cpp Outdated Show resolved Hide resolved
@Mario-DL
Copy link
Member

Mario-DL commented Jan 9, 2025

One NIT, I think we should rename the fast_daemon folder name to fastdds_daemon, xmlrpc_daemon, daemon or smth similar

@cferreiragonz cferreiragonz force-pushed the feature/auto_ds_daemonized branch from 910729f to e7c0a85 Compare January 9, 2025 13:40
@cferreiragonz cferreiragonz force-pushed the feature/auto_ds_daemonized branch from e7c0a85 to 6465cd4 Compare January 10, 2025 09:38
Mario-DL
Mario-DL previously approved these changes Jan 10, 2025
Copy link
Member

@Mario-DL Mario-DL left a comment

Choose a reason for hiding this comment

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

LGTM with green CI on #5551

@cferreiragonz cferreiragonz requested review from richiprosima and removed request for richiprosima January 10, 2025 11:01
@cferreiragonz cferreiragonz force-pushed the feature/auto_ds_daemonized branch 9 times, most recently from 091c26f to 143ce0d Compare January 16, 2025 16:29
cferreiragonz and others added 13 commits January 22, 2025 10:36
Signed-off-by: cferreiragonz <carlosferreira@eprosima.com>
Signed-off-by: cferreiragonz <carlosferreira@eprosima.com>
Signed-off-by: cferreiragonz <carlosferreira@eprosima.com>
Signed-off-by: cferreiragonz <carlosferreira@eprosima.com>
Signed-off-by: cferreiragonz <carlosferreira@eprosima.com>
Signed-off-by: cferreiragonz <carlosferreira@eprosima.com>
Signed-off-by: cferreiragonz <carlosferreira@eprosima.com>
Signed-off-by: cferreiragonz <carlosferreira@eprosima.com>
Signed-off-by: cferreiragonz <carlosferreira@eprosima.com>
Signed-off-by: cferreiragonz <carlosferreira@eprosima.com>
Signed-off-by: cferreiragonz <carlosferreira@eprosima.com>
* Refs #22352: Add preferred_domain_id to PubSubAPI

Signed-off-by: Mario Dominguez <mariodominguez@eprosima.com>

* Refs #22352: Refactor set_on_discovery_function in PubSubAPI

Signed-off-by: Mario Dominguez <mariodominguez@eprosima.com>

* Refs #22352: Add get_participants_matched() in PubSubAPI

Signed-off-by: Mario Dominguez <mariodominguez@eprosima.com>

* Refs #22352: Update BB tests with new APIs

Signed-off-by: Mario Dominguez <mariodominguez@eprosima.com>

* Refs #22352: Add Auto Discovery Mode BB tests

Signed-off-by: Mario Dominguez <mariodominguez@eprosima.com>

* Refs #22427: New DS_AUTO BuiltinTransport option

Signed-off-by: Mario Dominguez <mariodominguez@eprosima.com>

* Refs #22427: SystemCommandBuilder class

Signed-off-by: Mario Dominguez <mariodominguez@eprosima.com>

* Refs #22427: Feature Impl

Signed-off-by: Mario Dominguez <mariodominguez@eprosima.com>

* Refs #22427: Fix tests compilation in all platforms

Signed-off-by: Mario Dominguez <mariodominguez@eprosima.com>

* Refs #22427: Apply Carlo's review

Signed-off-by: Mario Dominguez <mariodominguez@eprosima.com>

* Refs #22427: stop background servers with stop instead of shutdown in BB tests

Signed-off-by: Mario Dominguez <mariodominguez@eprosima.com>

* Refs #22427: Update banner

Signed-off-by: cferreiragonz <carlosferreira@eprosima.com>

* Refs #22627: Rename DS_AUTO transport to P2P

Signed-off-by: Mario Dominguez <mariodominguez@eprosima.com>

* Refs #22627: Refactor BB tests with EASY_MODE

Signed-off-by: Mario Dominguez <mariodominguez@eprosima.com>

* Refs #22627: Refactor feature impl with EASY_MODE

Signed-off-by: Mario Dominguez <mariodominguez@eprosima.com>

* Refs #22627: Distinguish Log error if the EASY_MODE IP conflicts with a previous one

Signed-off-by: Mario Dominguez <mariodominguez@eprosima.com>

* Refs #22627: Review NIT

Signed-off-by: Mario Dominguez <mariodominguez@eprosima.com>

* Refs #22627: Feature use UDP for metatraffic

Signed-off-by: Mario Dominguez <mariodominguez@eprosima.com>

* Refs #22627: UDP metatraffic Cli

Signed-off-by: Mario Dominguez <mariodominguez@eprosima.com>

* Refs #22627: Feature with UDP BB tests

Signed-off-by: Mario Dominguez <mariodominguez@eprosima.com>

* Refs #22627: Remove unsued line

Signed-off-by: Mario Dominguez <mariodominguez@eprosima.com>

* Refs #22627: Feature with UDP CLI tests

Signed-off-by: cferreiragonz <carlosferreira@eprosima.com>

* Refs #22627: Avoid macro collision in MacOS

Signed-off-by: Mario Domínguez López <mariodominguez@eprosima.com>

---------

Signed-off-by: Mario Dominguez <mariodominguez@eprosima.com>
Signed-off-by: cferreiragonz <carlosferreira@eprosima.com>
Signed-off-by: Mario Domínguez López <mariodominguez@eprosima.com>
Co-authored-by: Mario Dominguez <mariodominguez@eprosima.com>
Signed-off-by: cferreiragonz <carlosferreira@eprosima.com>
@cferreiragonz cferreiragonz force-pushed the feature/auto_ds_daemonized branch from 2ef8051 to 757a1f9 Compare January 22, 2025 10:12
Mario-DL
Mario-DL previously approved these changes Jan 22, 2025
Copy link
Member

@Mario-DL Mario-DL left a comment

Choose a reason for hiding this comment

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

LGTM with green CI

@Mario-DL Mario-DL requested review from Mario-DL and removed request for Mario-DL January 22, 2025 10:15
Signed-off-by: cferreiragonz <carlosferreira@eprosima.com>
Signed-off-by: cferreiragonz <carlosferreira@eprosima.com>
@cferreiragonz cferreiragonz added ready-to-merge Ready to be merged. CI and changes have been reviewed and approved. and removed ci-pending PR which CI is running labels Jan 23, 2025
@Mario-DL Mario-DL merged commit 2923161 into master Jan 23, 2025
17 checks passed
@Mario-DL Mario-DL deleted the feature/auto_ds_daemonized branch January 23, 2025 07:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready-to-merge Ready to be merged. CI and changes have been reviewed and approved.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants