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
Parametrize all rosbag2_tests for both supported storage plugins #1221
Conversation
Signed-off-by: Emerson Knapp <emerson.b.knapp@gmail.com>
Signed-off-by: Emerson Knapp <emerson.b.knapp@gmail.com>
Signed-off-by: Emerson Knapp <emerson.b.knapp@gmail.com>
Signed-off-by: Emerson Knapp <emerson.b.knapp@gmail.com>
Signed-off-by: Emerson Knapp <emerson.b.knapp@gmail.com>
Signed-off-by: Emerson Knapp <emerson.b.knapp@gmail.com>
@@ -189,6 +189,7 @@ void Reindexer::aggregate_metadata( | |||
rosbag2_cpp::ConverterOptions blank_converter_options {}; | |||
bag_reader->open(temp_so, blank_converter_options); | |||
auto temp_metadata = bag_reader->get_metadata(); | |||
metadata_.storage_identifier = temp_metadata.storage_identifier; |
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.
Note: before this was leaving the storage ID blank in a reindex operation, if storage id not specified by user.
@@ -42,7 +42,8 @@ if(BUILD_TESTING) | |||
|
|||
ament_add_gmock(test_rosbag2_record_end_to_end | |||
test/rosbag2_tests/test_rosbag2_record_end_to_end.cpp | |||
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}) | |||
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR} | |||
TIMEOUT 120) |
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.
Note: new test suite just takes longer than the default minute, given the doubled number of tests
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.
It looks like this timeout needs to be increased further for this test to pass.
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.
I was wrong - there was a broken test which caused this suite to time out. I've pushed a commit to fix it.
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.
Great, thanks!
return test_name; | ||
} | ||
|
||
void create_test_bag(int messages_per_file, int num_files) |
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.
🎉
Signed-off-by: James Smith <james@foxglove.dev>
23e0b39
to
770ac09
Compare
Gist: https://gist.githubusercontent.com/james-rms/97f8ceec4535ad1bc1fa3f12784ad485/raw/f96b41102c6f6cbb1691ee95a871adcc247eed56/ros2.repos |
Related to #1160
This way when both plugins are shipped by default, the full integration test suite is run on both.