Skip to content

test_subscription_with_type_adapter fails with Connext #1775

@jacobperron

Description

@jacobperron

Bug report

Required Info:

  • Operating System:
    • Ubuntu 20.04
  • Installation type:
    • binaries or source
  • Version or commit hash:
  • DDS implementation:
    • RTI Connext (rmw_connextdds)
  • Client library (if applicable):
    • rclcpp

Steps to reproduce issue

  1. Build rclcpp
  2. Run test_subscription_with_type_adapter with rmw_connextdds:
RMW_IMPLEMENTATION=rmw_connextdds colcon test --packages-select rclcpp --ctest-args -R test_subscription_with_type_adapter --event-handlers console_direct+

Expected behavior

Test passes

Actual behavior

Test fails:

Starting >>> rclcpp  
UpdateCTestConfiguration  from :/home/jacob/ws/ros/rclcpp/build/rclcpp/CTestConfiguration.ini
Parse Config file:/home/jacob/ws/ros/rclcpp/build/rclcpp/CTestConfiguration.ini
   Site: euclid
   Build name: (empty)
 Add coverage exclude regular expressions.
SetCTestConfiguration:CMakeCommand:/usr/bin/cmake
Create new tag: 20210915-2244 - Experimental
UpdateCTestConfiguration  from :/home/jacob/ws/ros/rclcpp/build/rclcpp/CTestConfiguration.ini
Parse Config file:/home/jacob/ws/ros/rclcpp/build/rclcpp/CTestConfiguration.ini
Test project /home/jacob/ws/ros/rclcpp/build/rclcpp
Constructing a list of tests
Done constructing a list of tests
Updating test list for fixtures
Added 0 tests to meet fixture requirements
Checking test dependency graph...
Checking test dependency graph end
test 57
    Start 57: test_subscription_with_type_adapter

57: Test command: /usr/bin/python3 "-u" "/opt/ros/rolling/share/ament_cmake_test/cmake/run_test.py" "/home/jacob/ws/ros/rclcpp/build/rclcpp/test_results/rclcpp/test_subscription_with_type_adapter.gtest.xml" "--package-name" "rclcpp" "--output-file" "/home/jacob/ws/ros/rclcpp/build/rclcpp/ament_cmake_gtest/test_subscription_with_type_adapter.txt" "--append-env" "LD_LIBRARY_PATH=/home/jacob/ws/ros/rclcpp/build/rclcpp/test/rclcpp" "--command" "/home/jacob/ws/ros/rclcpp/build/rclcpp/test/rclcpp/test_subscription_with_type_adapter" "--gtest_output=xml:/home/jacob/ws/ros/rclcpp/build/rclcpp/test_results/rclcpp/test_subscription_with_type_adapter.gtest.xml"
57: Test timeout computed to be: 60
57: -- run_test.py: extra environment variables to append:
57:  - LD_LIBRARY_PATH+=/home/jacob/ws/ros/rclcpp/build/rclcpp/test/rclcpp
57: -- run_test.py: invoking following command in '/home/jacob/ws/ros/rclcpp/build/rclcpp/test/rclcpp':
57:  - /home/jacob/ws/ros/rclcpp/build/rclcpp/test/rclcpp/test_subscription_with_type_adapter --gtest_output=xml:/home/jacob/ws/ros/rclcpp/build/rclcpp/test_results/rclcpp/test_subscription_with_type_adapter.gtest.xml
57: Running main() from /opt/ros/rolling/src/gtest_vendor/src/gtest_main.cc
57: [==========] Running 3 tests from 2 test suites.
57: [----------] Global test environment set-up.
57: [----------] 1 test from TestSubscription
57: [ RUN      ] TestSubscription.various_creation_signatures
57: RTI Data Distribution Service Non-commercial license is for academic, research, evaluation and personal use only. USE FOR COMMERCIAL PURPOSES IS PROHIBITED. See RTI_LICENSE.TXT for terms. Download free tools at rti.com/ncl. License issued to Non-Commercial User license@rti.com For non-production use only.
57: Expires on 00-jan-00 See www.rti.com for more information.
57: [       OK ] TestSubscription.various_creation_signatures (313 ms)
57: [----------] 1 test from TestSubscription (313 ms total)
57: 
57: [----------] 2 tests from test_intra_process_within_one_node
57: unknown file: Failure
57: C++ exception with description "context is already initialized" thrown in SetUpTestSuite().
57: [ RUN      ] test_intra_process_within_one_node.check_type_adapted_messages_are_received_by_intra_process_subscription
57: RTI Data Distribution Service Non-commercial license is for academic, research, evaluation and personal use only. USE FOR COMMERCIAL PURPOSES IS PROHIBITED. See RTI_LICENSE.TXT for terms. Download free tools at rti.com/ncl. License issued to Non-Commercial User license@rti.com For non-production use only.
57: Expires on 00-jan-00 See www.rti.com for more information.
57: spin_node_once() - callback (1) expected - try 1/200
57: spin_node_once() - callback (1) expected - try 1/200
57: spin_node_once() - callback (1) expected - try 1/200
57: spin_node_once() - callback (1) expected - try 1/200
57: [       OK ] test_intra_process_within_one_node.check_type_adapted_messages_are_received_by_intra_process_subscription (306 ms)
57: [ RUN      ] test_intra_process_within_one_node.check_type_adapted_messages_are_received_by_inter_process_subscription
57: RTI Data Distribution Service Non-commercial license is for academic, research, evaluation and personal use only. USE FOR COMMERCIAL PURPOSES IS PROHIBITED. See RTI_LICENSE.TXT for terms. Download free tools at rti.com/ncl. License issued to Non-Commercial User license@rti.com For non-production use only.
57: Expires on 00-jan-00 See www.rti.com for more information.
57: spin_node_once() - callback (1) expected - try 1/200
57: spin_node_once() - callback (1) expected - try 2/200
57: spin_node_once() - callback (1) expected - try 1/200
57: spin_node_once() - callback (1) expected - try 2/200
57: spin_node_once() - callback (1) expected - try 3/200
... 
57: spin_node_once() - callback (1) expected - try 198/200
57: spin_node_once() - callback (1) expected - try 199/200
57: spin_node_once() - callback (1) expected - try 200/200
57: /home/jacob/ws/ros/rclcpp/src/rclcpp/rclcpp/test/rclcpp/test_subscription_with_type_adapter.cpp:404: Failure
57: Value of: is_received
57:   Actual: false
57: Expected: true
57: [  FAILED  ] test_intra_process_within_one_node.check_type_adapted_messages_are_received_by_inter_process_subscription (2317 ms)
57: [----------] 2 tests from test_intra_process_within_one_node (2623 ms total)
57: 
57: [----------] Global test environment tear-down
57: [==========] 3 tests from 2 test suites ran. (2959 ms total)
57: [  PASSED  ] 2 tests.
57: [  FAILED  ] 1 test, listed below:
57: [  FAILED  ] test_intra_process_within_one_node.check_type_adapted_messages_are_received_by_inter_process_subscription
57: 
57:  1 FAILED TEST
57: -- run_test.py: return code 1
57: -- run_test.py: inject classname prefix into gtest result file '/home/jacob/ws/ros/rclcpp/build/rclcpp/test_results/rclcpp/test_subscription_with_type_adapter.gtest.xml'
57: -- run_test.py: verify result file '/home/jacob/ws/ros/rclcpp/build/rclcpp/test_results/rclcpp/test_subscription_with_type_adapter.gtest.xml'
1/1 Test #57: test_subscription_with_type_adapter ...***Failed    3.08 sec

0% tests passed, 1 tests failed out of 1

Label Time Summary:
gtest    =   3.08 sec*proc (1 test)

Total Test time (real) =   3.09 sec

The following tests FAILED:
	 57 - test_subscription_with_type_adapter (Failed)
Errors while running CTest
--- stderr: rclcpp
Errors while running CTest
---
Finished <<< rclcpp [3.16s]	[ with test failures ]

Summary: 1 package finished [3.59s]
  1 package had stderr output: rclcpp
  1 package had test failures: rclcpp

Additional information

This has been failing on the buildfarm for 100+ builds: https://build.ros2.org/job/Rci__nightly-connext_ubuntu_focal_amd64/449/testReport/projectroot.test/rclcpp/test_subscription_with_type_adapter/

Metadata

Metadata

Assignees

Labels

ConnextConnext supportbugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions