Repository navigation
Conversation
rosterloh
added a commit
to rosterloh/talos
that referenced
this pull request
Sep 23, 2026
Point the Lyrical DynamicMessage known issue in AGENTS.md and CHANGELOG at ros2-rust/ros2_rust#714. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
rosterloh
marked this pull request as ready for review
September 23, 2026 19:13
Author
|
I ran the CI many more times on my fork and couldn't reproduce that CI failure. I think it might be a flake |
This was referenced Sep 24, 2026
rosterloh
added a commit
to rosterloh/ros2_rust
that referenced
this pull request
Nov 23, 2026
…fields correctly
MessageFieldInfo::size() reported every sequence field as size_of::<TypeErasedSequence>() (data, size, capacity = 24 bytes). From Lyrical on, rosidl_runtime_c appends the rosidl_buffer flags to primitive and string sequences, which rosidl_runtime_rs 0.7 mirrors with SequenceLayout::LayoutTail, making them 32 bytes. Message sequences are not extended and stay 24. The field slice handed to SequenceValue::new() was therefore 8 bytes short, and reinterpret::<Sequence<T>>() tripped the check() assertion on any primitive or string sequence read through DynamicMessage, e.g. sensor_msgs/PointCloud2.data. Size non-message sequences as Sequence<u8>, which carries the same tail as every primitive and string element type (and no tail on earlier distros, so nothing changes there). Add a test reading the int32 and string defaults of test_msgs/UnboundedSequences; the existing test only covered a message sequence, which is why CI on Lyrical did not catch it. Refs ros2-rust#659 Assisted-by: Claude:claude-opus-5-5 [Claude Code]
rosterloh
force-pushed
the
fix/lyrical-sequence-field-size
branch
from
November 30, 2026 09:47
7d87703 to
1c77c5b
Compare
Author
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
On Lyrical, reading a primitive or string sequence field through
DynamicMessagepanics:MessageFieldInfo::size()reports every sequence as 24 bytes. Since ros2/rosidl#942, primitive and string sequences carry therosidl_buffertail and are 32 bytes (mirrored in ros2-rust/rosidl_runtime_rs#22). Message sequences are unchanged.This PR sizes non-message sequences as
Sequence<u8>, which has the right tail on every distro, so Humble/Jazzy/Kilted are unaffected. Adds a test that reads primitive and string sequences fromtest_msgs/UnboundedSequences; it fails onmainunder Lyrical.Refs #659.
This pull request was assisted by: Claude:claude-opus-5-5