You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-- run_test.py: extra environment variables to append:
- LD_LIBRARY_PATH+=/home/jenkins-agent/workspace/nightly_linux_debug/ws/build/rclcpp/test/rclcpp
-- run_test.py: invoking following command in '/home/jenkins-agent/workspace/nightly_linux_debug/ws/build/rclcpp/test/rclcpp':
- /home/jenkins-agent/workspace/nightly_linux_debug/ws/build/rclcpp/test/rclcpp/test_time_source --gtest_output=xml:/home/jenkins-agent/workspace/nightly_linux_debug/ws/build/rclcpp/test_results/rclcpp/test_time_source.gtest.xml
Running main() from /home/jenkins-agent/workspace/nightly_linux_debug/ws/install/gtest_vendor/src/gtest_vendor/src/gtest_main.cc
[==========] Running 17 tests from 2 test suites.
[----------] Global test environment set-up.
[----------] 14 tests from TestTimeSource
[ RUN ] TestTimeSource.detachUnattached
[ OK ] TestTimeSource.detachUnattached (47 ms)
[ RUN ] TestTimeSource.reattach
[ OK ] TestTimeSource.reattach (25 ms)
[ RUN ] TestTimeSource.ROS_time_valid_attach_detach
[ERROR] [1673851682.820279192] [rclcpp]: failed to remove clock
[ OK ] TestTimeSource.ROS_time_valid_attach_detach (25 ms)
[ RUN ] TestTimeSource.ROS_time_valid_wall_time
[ OK ] TestTimeSource.ROS_time_valid_wall_time (23 ms)
[ RUN ] TestTimeSource.ROS_time_valid_sim_time
[ OK ] TestTimeSource.ROS_time_valid_sim_time (2055 ms)
[ RUN ] TestTimeSource.ROS_invalid_sim_time
[ OK ] TestTimeSource.ROS_invalid_sim_time (23 ms)
[ RUN ] TestTimeSource.clock
[ OK ] TestTimeSource.clock (51 ms)
[ RUN ] TestTimeSource.callbacks
[ OK ] TestTimeSource.callbacks (58 ms)
[ RUN ] TestTimeSource.callback_handler_erasure
[ OK ] TestTimeSource.callback_handler_erasure (49 ms)
[ RUN ] TestTimeSource.parameter_activation
unknown file: Failure
C++ exception with description "cannot store a negative time point in rclcpp::Time" thrown in the test body.
[ FAILED ] TestTimeSource.parameter_activation (90 ms)
[ RUN ] TestTimeSource.no_pre_jump_callback
[ OK ] TestTimeSource.no_pre_jump_callback (42 ms)
[ RUN ] TestTimeSource.check_use_clock_thread_value
[ OK ] TestTimeSource.check_use_clock_thread_value (89 ms)
[ RUN ] TestTimeSource.check_clock_thread_status
[ OK ] TestTimeSource.check_clock_thread_status (72 ms)
[ RUN ] TestTimeSource.clock_sleep_until_with_ros_time_basic
[ OK ] TestTimeSource.clock_sleep_until_with_ros_time_basic (48 ms)
[----------] 14 tests from TestTimeSource (2698 ms total)
[----------] 3 tests from TimeSource
[ RUN ] TimeSource.invalid_sim_time_parameter_override
[ERROR] [1673851685.442106687] [my_node]: Invalid type 'string' for parameter 'use_sim_time', should be 'bool'
[ OK ] TimeSource.invalid_sim_time_parameter_override (21 ms)
[ RUN ] TimeSource.valid_clock_type_for_sim_time
[ OK ] TimeSource.valid_clock_type_for_sim_time (22 ms)
[ RUN ] TimeSource.invalid_clock_type_for_sim_time
[ERROR] [1673851685.486597161] [my_node]: use_sim_time parameter can't be true while clocks are not all of RCL_ROS_TIME type
[ OK ] TimeSource.invalid_clock_type_for_sim_time (23 ms)
[----------] 3 tests from TimeSource (66 ms total)
[----------] Global test environment tear-down
[==========] 17 tests from 2 test suites ran. (2777 ms total)
[ PASSED ] 16 tests.
[ FAILED ] 1 test, listed below:
[ FAILED ] TestTimeSource.parameter_activation
1 FAILED TEST
-- run_test.py: return code 1
-- run_test.py: inject classname prefix into gtest result file '/home/jenkins-agent/workspace/nightly_linux_debug/ws/build/rclcpp/test_results/rclcpp/test_time_source.gtest.xml'
-- run_test.py: verify result file '/home/jenkins-agent/workspace/nightly_linux_debug/ws/build/rclcpp/test_results/rclcpp/test_time_source.gtest.xml'
I think clocks_state_.enable_ros_time() is called from on_parameter_event that leads to this exception. but i do not really understand why last_msg_set_ goes negative, could be racy condition with clock thread?
Bug report
Required Info:
Steps to reproduce issue
This test regression happens on all supported distros in nightly CI:
Can also be reproduced locally building up to rclcpp and testing
test_time_source
:Expected behavior
Test should pass
Actual behavior
Log output:
Additional information
Test flakiness:
Job: nightly_linux_repeated
Job: nightly_win_deb
Job: nightly_win_rep
Job: Rci__nightly-debug_ubuntu_jammy_amd64
Job: nightly_linux_release
Job: nightly_linux_debug
Job: nightly_linux_coverage
Job: nightly_linux-aarch64_repeated
The text was updated successfully, but these errors were encountered: