Skip to content

Add function for checking QoS profile compatibility - #180

Merged
jacobperron merged 2 commits into
masterfrom
jacob/compatible_qos_api
Mar 2, 2021
Merged

jacobperron merged 2 commits into
masterfrom
jacob/compatible_qos_api

Conversation

@jacobperron

Copy link
Copy Markdown
Member

Connected to ros2/rmw#299

ret = rmw_qos_profile_check_compatible(
rmw_qos_profile_system_default, rmw_qos_profile_unknown, &compatible, nullptr, 0u);
EXPECT_EQ(ret, RMW_RET_INVALID_ARGUMENT);
}

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

I assume the purpose of the tests here are to ensure that the function is vectored properly to its implementation and that the full test suite for QoS compatibility is over in rmw_dds_common.

@jacobperron jacobperron Feb 20, 2021 •

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Yes. These tests also are run for every RMW. This is the reason that the tests are not as comprehensive as the tests in rmw_dds_common. I don't think we can make many assumptions about QoS compatibility if we consider a non-DDS RMW.

Unknown values no longer cause errors, but possibly warnings instead.
We can't test this since it is dependent on the RMW.

We can test for compatibility with no default or unknown values as well as invalid input.

Signed-off-by: Jacob Perron <[email protected]>
@jacobperron

Copy link
Copy Markdown
Member Author

After a discussion in ros2/rmw_dds_common#45 (comment), I had to refactor the tests (e4cf875
). Unknown values no longer result in an error, and the default profiles now cause warnings so we can make any assumptions about them in these tests.

@jacobperron

Copy link
Copy Markdown
Member Author

CI: ros2/rmw#299 (comment)

@jacobperron

Copy link
Copy Markdown
Member Author

@ros-pull-request-builder retest this please

2 similar comments
@jacobperron

Copy link
Copy Markdown
Member Author

@ros-pull-request-builder retest this please

@jacobperron

Copy link
Copy Markdown
Member Author

@ros-pull-request-builder retest this please

@jacobperron
jacobperron merged commit 3dab7b0 into master Mar 2, 2021
@delete-merged-branch
delete-merged-branch Bot deleted the jacob/compatible_qos_api branch March 2, 2021 19:11
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.

4 participants