-
Notifications
You must be signed in to change notification settings - Fork 268
Upstream quality changes from Apex.AI part-2 #1924
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
Upstream quality changes from Apex.AI part-2 #1924
Conversation
Signed-off-by: Michael Orlov <morlovmr@gmail.com>
- Increase timeout for `expect_messages(..)` - Also add `player_->wait_for_playback_to_start();` in `setup_player()` Signed-off-by: Michael Orlov <morlovmr@gmail.com>
0022efc
to
14405d4
Compare
Signed-off-by: Michael Orlov <morlovmr@gmail.com>
Signed-off-by: Michael Orlov <morlovmr@gmail.com>
- Reduce size of each std_string_msg to fit in 256 byte boundary Signed-off-by: Michael Orlov <morlovmr@gmail.com>
Signed-off-by: Michael Orlov <morlovmr@gmail.com>
Signed-off-by: Michael Orlov <morlovmr@gmail.com>
Signed-off-by: Michael Orlov <morlovmr@gmail.com>
Signed-off-by: Michael Orlov <morlovmr@gmail.com>
Signed-off-by: Michael Orlov <morlovmr@gmail.com>
Signed-off-by: Michael Orlov <morlovmr@gmail.com>
- Fix to avoid failure with remote test execution and to be consistent with oter similar tests. Signed-off-by: Michael Orlov <morlovmr@gmail.com>
Increase timeout when waiting to stop discovery at least to the 0.5 sec. The record_all_include_unpublished_false_includes_later_published is tend to be flaky due to the insufficient timeout for waiting to stop discovery thread in the recorder. Signed-off-by: Michael Orlov <morlovmr@gmail.com>
Signed-off-by: Michael Orlov <morlovmr@gmail.com>
Signed-off-by: Michael Orlov <morlovmr@gmail.com>
- Address clang16 warning: "destructor called on non-final 'msg_utils::MessageProducer<T>' that has virtual functions but non-virtual destructor". Signed-off-by: Michael Orlov <morlovmr@gmail.com>
Signed-off-by: Michael Orlov <morlovmr@gmail.com>
Increase timeouts for service calls in rosbag2_transport `test_play_services` tests Signed-off-by: Michael Orlov <morlovmr@gmail.com>
- Flush output from Python print when printing warnings. Some tests rely on the warning output to be in the std::cout. Without flushing the warnings may not be captured by tests. Signed-off-by: Michael Orlov <morlovmr@gmail.com>
14405d4
to
a652fa3
Compare
Signed-off-by: Michael Orlov <morlovmr@gmail.com>
rosbag2_tests/test/rosbag2_tests/test_rosbag2_cpp_get_service_info.cpp
Outdated
Show resolved
Hide resolved
Sort includes alphabetically in test_service_utils.cpp Co-authored-by: Christophe Bedard <bedard.christophe@gmail.com> Signed-off-by: Michael Orlov <morlovmr@gmail.com>
Co-authored-by: Christophe Bedard <bedard.christophe@gmail.com> Signed-off-by: Michael Orlov <morlovmr@gmail.com>
Co-authored-by: Christophe Bedard <bedard.christophe@gmail.com> Signed-off-by: Michael Orlov <morlovmr@gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The Rpr job doesn't seem happy
@ros-pull-request-builder retest this please |
Pulls: #1924 |
https://github.com/Mergifyio backport kilted jazzy |
✅ Backports have been created
|
* Fix for incorrectly handling exit code in wait_until_completion(..) Signed-off-by: Michael Orlov <morlovmr@gmail.com> * Address flakiness in test_play_services - Increase timeout for `expect_messages(..)` - Also add `player_->wait_for_playback_to_start();` in `setup_player()` Signed-off-by: Michael Orlov <morlovmr@gmail.com> * Fix CPP_LINT warnings about missing include headers Signed-off-by: Michael Orlov <morlovmr@gmail.com> * Address CPPLint warnings in the rosbag2_storage_sqlite3 Signed-off-by: Michael Orlov <morlovmr@gmail.com> * Adjust test_rosbag2_storage_api.cpp for bounded strings - Reduce size of each std_string_msg to fit in 256 byte boundary Signed-off-by: Michael Orlov <morlovmr@gmail.com> * Print warnings instead of errors for not found type definitions Signed-off-by: Michael Orlov <morlovmr@gmail.com> * Add debug info to flaky `test_play_cancel` in rosbag2_py Signed-off-by: Michael Orlov <morlovmr@gmail.com> * Fix for flaky play_respect_messages_timing_after_play_next Signed-off-by: Michael Orlov <morlovmr@gmail.com> * Reduce runtime for the `PlayerTestFixture.playing_respects_delay` test Signed-off-by: Michael Orlov <morlovmr@gmail.com> * Address review comment by using `delay_margin(0.5s)` Signed-off-by: Michael Orlov <morlovmr@gmail.com> * Address linter warnings in the test_transport.py Signed-off-by: Michael Orlov <morlovmr@gmail.com> * Use RESOURCES_PATH from envar in test_transport.py - Fix to avoid failure with remote test execution and to be consistent with oter similar tests. Signed-off-by: Michael Orlov <morlovmr@gmail.com> * Mitigate flakiness in record_all_include_unpublished_false Increase timeout when waiting to stop discovery at least to the 0.5 sec. The record_all_include_unpublished_false_includes_later_published is tend to be flaky due to the insufficient timeout for waiting to stop discovery thread in the recorder. Signed-off-by: Michael Orlov <morlovmr@gmail.com> * Fix linter errors in the `message_definition_encoding.md` Signed-off-by: Michael Orlov <morlovmr@gmail.com> * Minor changes in rosbag2_examples_py Signed-off-by: Michael Orlov <morlovmr@gmail.com> * Mark MessageProducer<T> as final to address clang16 warnings - Address clang16 warning: "destructor called on non-final 'msg_utils::MessageProducer<T>' that has virtual functions but non-virtual destructor". Signed-off-by: Michael Orlov <morlovmr@gmail.com> * Address unused variable warning on the clang16 build Signed-off-by: Michael Orlov <morlovmr@gmail.com> * Fix for flaky `test_play_services` Increase timeouts for service calls in rosbag2_transport `test_play_services` tests Signed-off-by: Michael Orlov <morlovmr@gmail.com> * Fix for record_if_topic_list_service_list_and_all_are_specified - Flush output from Python print when printing warnings. Some tests rely on the warning output to be in the std::cout. Without flushing the warnings may not be captured by tests. Signed-off-by: Michael Orlov <morlovmr@gmail.com> * Sort includes alphabetically in the `info.cpp` file Signed-off-by: Michael Orlov <morlovmr@gmail.com> * Update rosbag2_cpp/test/rosbag2_cpp/test_service_utils.cpp Sort includes alphabetically in test_service_utils.cpp Co-authored-by: Christophe Bedard <bedard.christophe@gmail.com> Signed-off-by: Michael Orlov <morlovmr@gmail.com> * Sort includes in test_rosbag2_cpp_get_service_info.cpp Co-authored-by: Christophe Bedard <bedard.christophe@gmail.com> Signed-off-by: Michael Orlov <morlovmr@gmail.com> * Sort includes in rosbag2_py/_info.cpp Co-authored-by: Christophe Bedard <bedard.christophe@gmail.com> Signed-off-by: Michael Orlov <morlovmr@gmail.com> --------- Signed-off-by: Michael Orlov <morlovmr@gmail.com> Co-authored-by: Christophe Bedard <bedard.christophe@gmail.com> (cherry picked from commit 6f44ee0)
* Fix for incorrectly handling exit code in wait_until_completion(..) Signed-off-by: Michael Orlov <morlovmr@gmail.com> * Address flakiness in test_play_services - Increase timeout for `expect_messages(..)` - Also add `player_->wait_for_playback_to_start();` in `setup_player()` Signed-off-by: Michael Orlov <morlovmr@gmail.com> * Fix CPP_LINT warnings about missing include headers Signed-off-by: Michael Orlov <morlovmr@gmail.com> * Address CPPLint warnings in the rosbag2_storage_sqlite3 Signed-off-by: Michael Orlov <morlovmr@gmail.com> * Adjust test_rosbag2_storage_api.cpp for bounded strings - Reduce size of each std_string_msg to fit in 256 byte boundary Signed-off-by: Michael Orlov <morlovmr@gmail.com> * Print warnings instead of errors for not found type definitions Signed-off-by: Michael Orlov <morlovmr@gmail.com> * Add debug info to flaky `test_play_cancel` in rosbag2_py Signed-off-by: Michael Orlov <morlovmr@gmail.com> * Fix for flaky play_respect_messages_timing_after_play_next Signed-off-by: Michael Orlov <morlovmr@gmail.com> * Reduce runtime for the `PlayerTestFixture.playing_respects_delay` test Signed-off-by: Michael Orlov <morlovmr@gmail.com> * Address review comment by using `delay_margin(0.5s)` Signed-off-by: Michael Orlov <morlovmr@gmail.com> * Address linter warnings in the test_transport.py Signed-off-by: Michael Orlov <morlovmr@gmail.com> * Use RESOURCES_PATH from envar in test_transport.py - Fix to avoid failure with remote test execution and to be consistent with oter similar tests. Signed-off-by: Michael Orlov <morlovmr@gmail.com> * Mitigate flakiness in record_all_include_unpublished_false Increase timeout when waiting to stop discovery at least to the 0.5 sec. The record_all_include_unpublished_false_includes_later_published is tend to be flaky due to the insufficient timeout for waiting to stop discovery thread in the recorder. Signed-off-by: Michael Orlov <morlovmr@gmail.com> * Fix linter errors in the `message_definition_encoding.md` Signed-off-by: Michael Orlov <morlovmr@gmail.com> * Minor changes in rosbag2_examples_py Signed-off-by: Michael Orlov <morlovmr@gmail.com> * Mark MessageProducer<T> as final to address clang16 warnings - Address clang16 warning: "destructor called on non-final 'msg_utils::MessageProducer<T>' that has virtual functions but non-virtual destructor". Signed-off-by: Michael Orlov <morlovmr@gmail.com> * Address unused variable warning on the clang16 build Signed-off-by: Michael Orlov <morlovmr@gmail.com> * Fix for flaky `test_play_services` Increase timeouts for service calls in rosbag2_transport `test_play_services` tests Signed-off-by: Michael Orlov <morlovmr@gmail.com> * Fix for record_if_topic_list_service_list_and_all_are_specified - Flush output from Python print when printing warnings. Some tests rely on the warning output to be in the std::cout. Without flushing the warnings may not be captured by tests. Signed-off-by: Michael Orlov <morlovmr@gmail.com> * Sort includes alphabetically in the `info.cpp` file Signed-off-by: Michael Orlov <morlovmr@gmail.com> * Update rosbag2_cpp/test/rosbag2_cpp/test_service_utils.cpp Sort includes alphabetically in test_service_utils.cpp Co-authored-by: Christophe Bedard <bedard.christophe@gmail.com> Signed-off-by: Michael Orlov <morlovmr@gmail.com> * Sort includes in test_rosbag2_cpp_get_service_info.cpp Co-authored-by: Christophe Bedard <bedard.christophe@gmail.com> Signed-off-by: Michael Orlov <morlovmr@gmail.com> * Sort includes in rosbag2_py/_info.cpp Co-authored-by: Christophe Bedard <bedard.christophe@gmail.com> Signed-off-by: Michael Orlov <morlovmr@gmail.com> --------- Signed-off-by: Michael Orlov <morlovmr@gmail.com> Co-authored-by: Christophe Bedard <bedard.christophe@gmail.com> (cherry picked from commit 6f44ee0) # Conflicts: # ros2bag/ros2bag/verb/record.py # rosbag2_cpp/src/rosbag2_cpp/info.cpp
This PR consolidates fixes related to the code quality and stability after backporting Rosbag2 PRs to Apex.AI. PART 2
List of changes:
record_if_topic_list_service_list_and_all_are_specified
Details: Flush output from Python print when printing warnings. Some tests rely on the warning output to be in the std::cout. Without flushing, the warnings may not be captured by tests.
test_play_services
Details: Increase timeouts for service calls in rosbag2_transport
test_play_services
testsMessageProducer<T>
as final to address clang16 warnings "destructor called on non-final 'msg_utils::MessageProducer' that has virtual functions but non-virtual destructor"message_definition_encoding.md
record_all_include_unpublished_false
Details: Increase timeout when waiting to stop discovery at least to 0.5 sec. The
record_all_include_unpublished_false_includes_later_published
tends to be flaky due to the insufficient timeout for waiting to stop the discovery thread in the recorder.RESOURCES_PATH
from envar in thetest_transport.py
Rationale: Fix to avoid failure with remote test execution and to be consistent with other similar tests.
PlayerTestFixture.playing_respects_delay
play_respect_messages_timing_after_play_next
.Details: Take the start timestamp before calling resume for the player.
test_play_cancel
test_rosbag2_storage_api.cpp
for bounded strings.Details: Reduce the size of each
std_string_msg
to fit in a 256-byte boundary.rosbag2_storage_sqlite3
test_play_services
.Details: Increase timeout for
expect_messages(..)
. Also addplayer_->wait_for_playback_to_start();
insetup_player()
wait_until_completion(..)