Skip to content

Make the trigger of the DDS Pipe callbacks configurable#406

Merged
juanlofer-eprosima merged 22 commits intomainfrom
feature/dynamic_entity_creation
Nov 22, 2023
Merged

Make the trigger of the DDS Pipe callbacks configurable#406
juanlofer-eprosima merged 22 commits intomainfrom
feature/dynamic_entity_creation

Conversation

@tempate
Copy link
Copy Markdown
Contributor

@tempate tempate commented Oct 16, 2023

In the previous version, the DDS Pipe's callbacks were only triggered by the discovery of readers. In this version, the entity type that triggers the callbacks is configurable. They can be triggered by readers (by default), writers, both readers and writers, and neither readers nor writers.

Merge after:

@tempate tempate force-pushed the feature/dynamic_entity_creation branch from 3b7adbc to 50c3699 Compare October 24, 2023 13:07
Base automatically changed from feature/manual_topics_conf to main November 8, 2023 11:17
tempate added 4 commits November 13, 2023 08:32
Signed-off-by: tempate <danieldiaz@eprosima.com>
Signed-off-by: tempate <danieldiaz@eprosima.com>
Signed-off-by: tempate <danieldiaz@eprosima.com>
Signed-off-by: tempate <danieldiaz@eprosima.com>
@tempate tempate force-pushed the feature/dynamic_entity_creation branch from 1348978 to 56ee506 Compare November 13, 2023 07:32
tempate added 2 commits November 13, 2023 16:15
Signed-off-by: tempate <danieldiaz@eprosima.com>
Signed-off-by: tempate <danieldiaz@eprosima.com>
@codecov
Copy link
Copy Markdown

codecov Bot commented Nov 14, 2023

Codecov Report

Attention: 6 lines in your changes are missing coverage. Please review.

Comparison is base (6140c85) 31.40% compared to head (89b7745) 31.56%.

Files Patch % Lines
...dsrouter_yaml/src/cpp/YamlReader_configuration.cpp 40.00% 2 Missing and 4 partials ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #406      +/-   ##
==========================================
+ Coverage   31.40%   31.56%   +0.16%     
==========================================
  Files          15       15              
  Lines         519      529      +10     
  Branches      267      272       +5     
==========================================
+ Hits          163      167       +4     
- Misses        189      191       +2     
- Partials      167      171       +4     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@tempate
Copy link
Copy Markdown
Contributor Author

tempate commented Nov 14, 2023

Copy link
Copy Markdown
Contributor

@jepemi jepemi left a comment

Choose a reason for hiding this comment

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

Include some docker tests for the different dynamic triggers.

Copy link
Copy Markdown
Contributor

@jepemi jepemi left a comment

Choose a reason for hiding this comment

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

Wrong approval.

Copy link
Copy Markdown
Contributor

@jepemi jepemi left a comment

Choose a reason for hiding this comment

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

Not approved

tempate added 5 commits November 16, 2023 09:58
Signed-off-by: tempate <danieldiaz@eprosima.com>
Signed-off-by: tempate <danieldiaz@eprosima.com>
Signed-off-by: tempate <danieldiaz@eprosima.com>
Signed-off-by: tempate <danieldiaz@eprosima.com>
Signed-off-by: tempate <danieldiaz@eprosima.com>
Comment thread ddsrouter_test/compose/scripts/execute_and_validate_subscriber.py Outdated
Comment thread ddsrouter_test/compose/scripts/execute_and_validate_publisher.py Outdated
Signed-off-by: tempate <danieldiaz@eprosima.com>
jepemi
jepemi previously approved these changes Nov 17, 2023
Copy link
Copy Markdown
Contributor

@jepemi jepemi 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

Comment thread ddsrouter_yaml/src/cpp/YamlReader_configuration.cpp Outdated
Comment thread docs/rst/user_manual/configuration.rst
Comment thread docs/rst/user_manual/configuration.rst Outdated
Comment thread docs/rst/user_manual/configuration.rst Outdated
Comment thread docs/rst/user_manual/configuration.rst
@tempate tempate changed the title Dynamically trigger the DDS Pipe's callbacks Make the trigger of the DDS Pipe callbacks configurable Nov 21, 2023
Signed-off-by: tempate <danieldiaz@eprosima.com>
Signed-off-by: tempate <danieldiaz@eprosima.com>
Signed-off-by: tempate <danieldiaz@eprosima.com>
@tempate
Copy link
Copy Markdown
Contributor Author

tempate commented Nov 21, 2023

Signed-off-by: tempate <danieldiaz@eprosima.com>
Comment on lines +71 to +72
std::string discovery_trigger_caps = discovery_trigger;
utils::to_uppercase(discovery_trigger_caps);
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Unnecessary.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I think it's necessary.

Comment thread docs/rst/user_manual/configuration.rst
Signed-off-by: tempate <danieldiaz@eprosima.com>
Signed-off-by: tempate <danieldiaz@eprosima.com>
Signed-off-by: tempate <danieldiaz@eprosima.com>
Comment thread ddsrouter_yaml/src/cpp/YamlReader_configuration.cpp Outdated
Comment thread docs/rst/user_manual/configuration.rst Outdated
Signed-off-by: tempate <danieldiaz@eprosima.com>
Copy link
Copy Markdown
Contributor

@juanlofer-eprosima juanlofer-eprosima left a comment

Choose a reason for hiding this comment

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

LGTM

@juanlofer-eprosima juanlofer-eprosima merged commit 5988fa4 into main Nov 22, 2023
@juanlofer-eprosima juanlofer-eprosima deleted the feature/dynamic_entity_creation branch November 22, 2023 12:36
juanlofer-eprosima pushed a commit that referenced this pull request Nov 23, 2023
* Dynamically trigger the creation of entities

Signed-off-by: tempate <danieldiaz@eprosima.com>

* Add none entity-creation-trigger

Signed-off-by: tempate <danieldiaz@eprosima.com>

* Rename entity_creation_trigger to discovery_trigger

Signed-off-by: tempate <danieldiaz@eprosima.com>

* Uncrustify

Signed-off-by: tempate <danieldiaz@eprosima.com>

* Documentation

Signed-off-by: tempate <danieldiaz@eprosima.com>

* Tests

Signed-off-by: tempate <danieldiaz@eprosima.com>

* Rename disconnects to n-unmatches

Signed-off-by: tempate <danieldiaz@eprosima.com>

* Add n-matches option

Signed-off-by: tempate <danieldiaz@eprosima.com>

* Docker tests

Signed-off-by: tempate <danieldiaz@eprosima.com>

* Only read n-matches args when samples == 0

Signed-off-by: tempate <danieldiaz@eprosima.com>

* Fix tests

Signed-off-by: tempate <danieldiaz@eprosima.com>

* Apply suggestions

Signed-off-by: tempate <danieldiaz@eprosima.com>

* Fix python linter

Signed-off-by: tempate <danieldiaz@eprosima.com>

* Apply suggestions

Signed-off-by: tempate <danieldiaz@eprosima.com>

* Apply suggestions

Signed-off-by: tempate <danieldiaz@eprosima.com>

* Fix timeout_as_error python argument

Signed-off-by: tempate <danieldiaz@eprosima.com>

* Remove outdated warning

Signed-off-by: tempate <danieldiaz@eprosima.com>

* Apply suggestions

Signed-off-by: tempate <danieldiaz@eprosima.com>

* Apply suggestions

Signed-off-by: tempate <danieldiaz@eprosima.com>

* Uncrustify

Signed-off-by: tempate <danieldiaz@eprosima.com>

* Fix misspell

Signed-off-by: tempate <danieldiaz@eprosima.com>

* Apply suggestions

Signed-off-by: tempate <danieldiaz@eprosima.com>

---------

Signed-off-by: tempate <danieldiaz@eprosima.com>
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