-
Notifications
You must be signed in to change notification settings - Fork 255
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
Fix for regression in open_succeeds_twice
and minimal_writer_example
tests
#1667
Fix for regression in open_succeeds_twice
and minimal_writer_example
tests
#1667
Conversation
Signed-off-by: Michael Orlov <[email protected]>
- The `serialized_msg2` is not owning the serialized data after the first call writer.write(serialized_msg2,..). i.e. need to use another message or another API in test for second call to writer.write(msg). Signed-off-by: Michael Orlov <[email protected]>
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.
Looks good to me with green CI.
Pulls: #1667 |
https://github.com/Mergifyio backport iron |
✅ Backports have been created
|
…le` tests (#1667) * Use test-specific temp subfolder to avoid leftovers from previous run Signed-off-by: Michael Orlov <[email protected]> * Address flakiness in TestRosbag2CPPAPI::minimal_writer_example - The `serialized_msg2` is not owning the serialized data after the first call writer.write(serialized_msg2,..). i.e. need to use another message or another API in test for second call to writer.write(msg). Signed-off-by: Michael Orlov <[email protected]> --------- Signed-off-by: Michael Orlov <[email protected]> (cherry picked from commit 8523995) # Conflicts: # rosbag2_compression/test/rosbag2_compression/test_sequential_compression_writer.cpp
Pulls: #1667 |
…r_example` tests (backport #1667) (#1669) * Fix for "open_succeeds_twice" test failure on second run - Use std::filesystem for temp files and folders operation. For some reason rcpputils::fs::delete_all(folder_name) wasn't able to delete temp folder with subfolders. Signed-off-by: Michael Orlov <[email protected]> * Address flakiness in TestRosbag2CPPAPI::minimal_writer_example - The `serialized_msg2` is not owning the serialized data after the first call writer.write(serialized_msg2,..). i.e. need to use another message or another API in test for second call to writer.write(msg). Signed-off-by: Michael Orlov <[email protected]> --------- Signed-off-by: Michael Orlov <[email protected]> Co-authored-by: Michael Orlov <[email protected]>
https://github.com/Mergifyio backport jazzy |
✅ Backports have been created
|
…le` tests (#1667) * Use test-specific temp subfolder to avoid leftovers from previous run Signed-off-by: Michael Orlov <[email protected]> * Address flakiness in TestRosbag2CPPAPI::minimal_writer_example - The `serialized_msg2` is not owning the serialized data after the first call writer.write(serialized_msg2,..). i.e. need to use another message or another API in test for second call to writer.write(msg). Signed-off-by: Michael Orlov <[email protected]> --------- Signed-off-by: Michael Orlov <[email protected]> (cherry picked from commit 8523995)
…le` tests (#1667) (#1675) * Use test-specific temp subfolder to avoid leftovers from previous run Signed-off-by: Michael Orlov <[email protected]> * Address flakiness in TestRosbag2CPPAPI::minimal_writer_example - The `serialized_msg2` is not owning the serialized data after the first call writer.write(serialized_msg2,..). i.e. need to use another message or another API in test for second call to writer.write(msg). Signed-off-by: Michael Orlov <[email protected]> --------- Signed-off-by: Michael Orlov <[email protected]> (cherry picked from commit 8523995) Co-authored-by: Michael Orlov <[email protected]>
The error message from CI reference build:
rosbag2_compression.SequentialCompressionWriterTest.open_succeeds_twice
on a second run due to the leftovers in the temp folder.It also addresses the flakiness in
TestRosbag2CPPAPI::minimal_writer_example
due to using shared ptr to the serialized message twice in thewriter.write(msg)
call.Note. The "serialized_msg2" in the
TestRosbag2CPPAPI::minimal_writer_example
does not own the serialized data after the first call writer.write(serialized_msg2,..). i.e. need to use another message or another API in the test for the second call to the writer.write(msg).