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

[Test Failure] rclcpp / test_publisher #317

Open
YuanYuYuan opened this issue Nov 18, 2024 · 1 comment
Open

[Test Failure] rclcpp / test_publisher #317

YuanYuYuan opened this issue Nov 18, 2024 · 1 comment
Assignees

Comments

@YuanYuYuan
Copy link
Contributor

62: Test command: /usr/bin/python3 "-u" "/opt/ros/rolling/share/ament_cmake_test/cmake/run_test.py" "/workspace/build/rclcpp/test_results/rclcpp/test_publisher.gtest.xml" "--package-name" "rclcpp" "--output-file" "/workspace/build/rclcpp/ament_cmake_gtest/test_publisher.txt" "--command" "/workspace/build/rclcpp/test/rclcpp/test_publisher" "--gtest_output=xml:/workspace/build/rclcpp/test_results/rclcpp/test_publisher.gtest.xml"
62: Working Directory: /workspace/build/rclcpp/test/rclcpp
62: Test timeout computed to be: 120
62: -- run_test.py: invoking following command in '/workspace/build/rclcpp/test/rclcpp':
62:  - /workspace/build/rclcpp/test/rclcpp/test_publisher --gtest_output=xml:/workspace/build/rclcpp/test_results/rclcpp/test_publisher.gtest.xml
62: Running main() from /opt/ros/rolling/src/gtest_vendor/src/gtest_main.cc
62: [==========] Running 26 tests from 4 test suites.
62: [----------] Global test environment set-up.
62: [----------] 21 tests from TestPublisher
62: 2024-11-18T16:43:52.130996Z  INFO ThreadId(02) zenoh::net::runtime: Using ZID: 34ff9d359f927068ddc0823afc0426c0
62: 2024-11-18T16:43:52.132729Z  INFO ThreadId(02) zenoh::net::runtime::orchestrator: Zenoh can be reached at: tcp/[::1]:40943
62: [INFO] [1731948232.637247260] [rmw_zenoh_cpp]: Successfully connected to a Zenoh router with id f967f9a48c36dfb458efdf9b681a56a.
62: [ RUN      ] TestPublisher.construction_and_destruction
62: [       OK ] TestPublisher.construction_and_destruction (12 ms)
62: [ RUN      ] TestPublisher.various_creation_signatures
62: [       OK ] TestPublisher.various_creation_signatures (10 ms)
62: [ RUN      ] TestPublisher.basic_getters
62: [       OK ] TestPublisher.basic_getters (7 ms)
62: [ RUN      ] TestPublisher.serialized_message_publish
62: [       OK ] TestPublisher.serialized_message_publish (7 ms)
62: [ RUN      ] TestPublisher.rcl_publisher_init_error
62: [       OK ] TestPublisher.rcl_publisher_init_error (6 ms)
62: [ RUN      ] TestPublisher.rcl_publisher_get_rmw_handle_error
62: [       OK ] TestPublisher.rcl_publisher_get_rmw_handle_error (7 ms)
62: [ RUN      ] TestPublisher.rcl_publisher_get_gid_for_publisher_error
62: [       OK ] TestPublisher.rcl_publisher_get_gid_for_publisher_error (7 ms)
62: [ RUN      ] TestPublisher.rcl_publisher_fini_error
62: [ERROR] [1731948232.804507961] [ns.my_node.rclcpp]: Error in destruction of rcl publisher handle: error not set
62: [       OK ] TestPublisher.rcl_publisher_fini_error (7 ms)
62: [ RUN      ] TestPublisher.rcl_publisher_get_options_error
62: [       OK ] TestPublisher.rcl_publisher_get_options_error (8 ms)
62: [ RUN      ] TestPublisher.rcl_publisher_get_subscription_count_publisher_invalid
62: [       OK ] TestPublisher.rcl_publisher_get_subscription_count_publisher_invalid (7 ms)
62: [ RUN      ] TestPublisher.rcl_publisher_get_actual_qos_error
62: [       OK ] TestPublisher.rcl_publisher_get_actual_qos_error (8 ms)
62: [ RUN      ] TestPublisher.publishers_equal_rmw_compare_gids_error
62: [       OK ] TestPublisher.publishers_equal_rmw_compare_gids_error (7 ms)
62: [ RUN      ] TestPublisher.intra_process_publish_failures
62: [INFO] [1731948232.844281630] [rclcpp]: Currently used middleware can't loan messages. Local allocator will be used.
62: [WARN] [1731948232.844318069] [rclcpp]: A zero depth with KEEP_LAST doesn't make sense; no data could be stored. This will be interpreted as SYSTEM_DEFAULT
62: [       OK ] TestPublisher.intra_process_publish_failures (8 ms)
62: [ RUN      ] TestPublisher.inter_process_publish_failures
62: [       OK ] TestPublisher.inter_process_publish_failures (8 ms)
62: [ RUN      ] TestPublisher.do_loaned_message_publish_error
62: [       OK ] TestPublisher.do_loaned_message_publish_error (8 ms)
62: [ RUN      ] TestPublisher.default_incompatible_qos_callback
62: [WARN] [1731948232.869206116] [ns.my_node]: New subscription discovered on topic '/ns/topic', requesting incompatible QoS. No messages will be sent to it. Last incompatible policy: INVALID_QOS_POLICY
62: [       OK ] TestPublisher.default_incompatible_qos_callback (8 ms)
62: [ RUN      ] TestPublisher.run_event_handlers
62: [ERROR] [1731948232.877515514] [rclcpp]: Couldn't take event info: rmw_take_event called when event queue for event type [9] is empty, at /workspace/ws-0.11.0/src/rmw_zenoh/rmw_zenoh_cpp/src/rmw_event.cpp:212, at ./src/rcl/event.c:174
62: unknown file: Failure
62: C++ exception with description "'data' is empty" thrown in the test body.
62:
62: [  FAILED  ] TestPublisher.run_event_handlers (8 ms)
62: [ RUN      ] TestPublisher.get_network_flow_endpoints_errors
62:
62: >>> [rcutils|error_handling.c:108] rcutils_set_error_state()
62: This error state is being overwritten:
62:
62:   'rmw_take_event called when event queue for event type [9] is empty, at /workspace/ws-0.11.0/src/rmw_zenoh/rmw_zenoh_cpp/src/rmw_event.cpp:212, at ./src/rcl/event.c:174'
62:
62: with this new error message:
62:
62:   'Handle's typesupport identifier (rosidl_typesupport_cpp) is not supported by this library, at ./src/type_support_dispatch.hpp:114'
62:
62: rcutils_reset_error() should be called after error handling to avoid this.
62: <<<
62: [       OK ] TestPublisher.get_network_flow_endpoints_errors (9 ms)
62: [ RUN      ] TestPublisher.check_wait_for_all_acked_return
62: [       OK ] TestPublisher.check_wait_for_all_acked_return (9 ms)
62: [ RUN      ] TestPublisher.lowest_available_ipm_capacity
62: [       OK ] TestPublisher.lowest_available_ipm_capacity (10 ms)
62: [ RUN      ] TestPublisher.intra_process_transient_local
62: [WARN] [1731948232.921281369] [rclcpp]: Calling set_on_new_intra_process_message_callback for subscription with IPC disabled
62: [WARN] [1731948232.923659426] [rclcpp]: Calling set_on_new_intra_process_message_callback for subscription with IPC disabled
62: [       OK ] TestPublisher.intra_process_transient_local (19 ms)
62: [----------] 21 tests from TestPublisher (190 ms total)
62:
62: [----------] 1 test from TestPublisherSub
62: 2024-11-18T16:43:52.948887Z  INFO ThreadId(02) zenoh::net::runtime: Using ZID: 718c098377130b1abcdf92e093aca418
62: 2024-11-18T16:43:52.949904Z  INFO ThreadId(02) zenoh::net::runtime::orchestrator: Zenoh can be reached at: tcp/[::1]:33185
62: 2024-11-18T16:43:53.241438Z  WARN net-0 ThreadId(03) zenoh::net::runtime::orchestrator: Unable to connect to any locator of scouted peer 34ff9d359f927068ddc0823afc0426c0: [tcp/[::1]:40943]
62: [INFO] [1731948233.453919829] [rmw_zenoh_cpp]: Successfully connected to a Zenoh router with id f967f9a48c36dfb458efdf9b681a56a.
62: [ RUN      ] TestPublisherSub.construction_and_destruction
62: [       OK ] TestPublisherSub.construction_and_destruction (10 ms)
62: [----------] 1 test from TestPublisherSub (10 ms total)
62:
62: [----------] 1 test from TestPublisherThrows/TestPublisherInvalidIntraprocessQos
62: 2024-11-18T16:43:53.584260Z  INFO ThreadId(02) zenoh::net::runtime: Using ZID: decc5d1e6c92111e06a09ce30c537e30
62: 2024-11-18T16:43:53.585124Z  INFO ThreadId(02) zenoh::net::runtime::orchestrator: Zenoh can be reached at: tcp/[::1]:34129
62: [INFO] [1731948234.089163402] [rmw_zenoh_cpp]: Successfully connected to a Zenoh router with id f967f9a48c36dfb458efdf9b681a56a.
62: [ RUN      ] TestPublisherThrows/TestPublisherInvalidIntraprocessQos.test_publisher_throws/keep_all_qos
62: [       OK ] TestPublisherThrows/TestPublisherInvalidIntraprocessQos.test_publisher_throws/keep_all_qos (9 ms)
62: [----------] 1 test from TestPublisherThrows/TestPublisherInvalidIntraprocessQos (9 ms total)
62:
62: [----------] 3 tests from TestWaitForAllAckedWithParm/TestPublisherWaitForAllAcked
62: 2024-11-18T16:43:54.222018Z  INFO ThreadId(02) zenoh::net::runtime: Using ZID: 2f0f1a2c982bd7306bb33cce6165844e
62: 2024-11-18T16:43:54.223067Z  INFO ThreadId(02) zenoh::net::runtime::orchestrator: Zenoh can be reached at: tcp/[::1]:42351
62: [INFO] [1731948234.726985499] [rmw_zenoh_cpp]: Successfully connected to a Zenoh router with id f967f9a48c36dfb458efdf9b681a56a.
62: [ RUN      ] TestWaitForAllAckedWithParm/TestPublisherWaitForAllAcked.check_wait_for_all_acked_with_QosPolicy/0
62: [       OK ] TestWaitForAllAckedWithParm/TestPublisherWaitForAllAcked.check_wait_for_all_acked_with_QosPolicy/0 (8 ms)
62: [ RUN      ] TestWaitForAllAckedWithParm/TestPublisherWaitForAllAcked.check_wait_for_all_acked_with_QosPolicy/1
62: [       OK ] TestWaitForAllAckedWithParm/TestPublisherWaitForAllAcked.check_wait_for_all_acked_with_QosPolicy/1 (7 ms)
62: [ RUN      ] TestWaitForAllAckedWithParm/TestPublisherWaitForAllAcked.check_wait_for_all_acked_with_QosPolicy/2
62: [       OK ] TestWaitForAllAckedWithParm/TestPublisherWaitForAllAcked.check_wait_for_all_acked_with_QosPolicy/2 (7 ms)
62: [----------] 3 tests from TestWaitForAllAckedWithParm/TestPublisherWaitForAllAcked (24 ms total)
62:
62: [----------] Global test environment tear-down
62: [==========] 26 tests from 4 test suites ran. (2771 ms total)
62: [  PASSED  ] 25 tests.
62: [  FAILED  ] 1 test, listed below:
62: [  FAILED  ] TestPublisher.run_event_handlers
62:
62:  1 FAILED TEST
62: -- run_test.py: return code 1
62: -- run_test.py: inject classname prefix into gtest result file '/workspace/build/rclcpp/test_results/rclcpp/test_publisher.gtest.xml'
62: -- run_test.py: verify result file '/workspace/build/rclcpp/test_results/rclcpp/test_publisher.gtest.xml'
1/3 Test #62: test_publisher ..........................***Failed    2.85 sec
@Yadunund
Copy link
Member

yes we are aware of this and working on a fix.

@Yadunund Yadunund self-assigned this Dec 24, 2024
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

No branches or pull requests

2 participants