Skip to content

Conversation

@cferreiragonz
Copy link
Contributor

@cferreiragonz cferreiragonz commented May 27, 2025

This PR modifies the order in the destructor of TestSubscriber, which avoids a case in which running several test_WAN_communication in a row resulted in no communication.

It also adds whitelist for Discovery Server routers tests. This is needed because locators transformation is never accomplished with Discovery Servers in Fast DDS 2.x due to fixed GUIDs. This forces extra channels creations for TCP, but most important it does not rely on localhost for communication, which results in errors for TCPv6. By adding a whitelist this problem is avoided.
The fix to this issue was solved in Fast DDS 3.x by adding the machine_id field and non-fixed GUIDs for Discovery Servers.

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

codecov bot commented May 27, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
⚠️ Please upload report for BASE (2.x@9b94f38). Learn more about missing BASE report.

Additional details and impacted files
@@          Coverage Diff           @@
##             2.x     #508   +/-   ##
======================================
  Coverage       ?   30.41%           
======================================
  Files          ?       16           
  Lines          ?      559           
  Branches       ?      297           
======================================
  Hits           ?      170           
  Misses         ?      202           
  Partials       ?      187           

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Signed-off-by: cferreiragonz <carlosferreira@eprosima.com>
@cferreiragonz
Copy link
Contributor Author

This PR only modifies tests of ddsrouter_core, which are not used in the docker tests. Any failure related to that test suite is non-related and will be fixed in other complementary PRs.

@cferreiragonz cferreiragonz changed the title [21670] Improve destructor for tests [21670] Fix failing tests in Router 2.x Jun 18, 2025
Copy link

@EugenioCollado EugenioCollado 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 cefb948 into 2.x Jun 18, 2025
31 of 32 checks passed
@juanlofer-eprosima juanlofer-eprosima deleted the fix_destructor_tests branch June 18, 2025 08:57
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