Skip to content
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

Fast-forward foxy branch #515

Merged
merged 11 commits into from
Aug 18, 2020
Merged

Fast-forward foxy branch #515

merged 11 commits into from
Aug 18, 2020

Conversation

jacobperron
Copy link
Member

I think all code changes, except #493, are marked for backport. I don't see why we shouldn't backport #493 either.

brawner and others added 9 commits June 5, 2020 15:12
* Update QD to reflect QL 2 statuses.

Updates rosidl_runtime_cpp and rosidl_typesupport_interface.

Signed-off-by: Stephen Brawner <[email protected]>

* Update coverage link

Signed-off-by: Stephen Brawner <[email protected]>

* Adding link to on-boarding guide

Signed-off-by: Stephen Brawner <[email protected]>

* Remove quotes

Signed-off-by: Stephen Brawner <[email protected]>

* fix link

Signed-off-by: Stephen Brawner <[email protected]>
* Fix misuses of input iterators in BoundedVector

Input iterators are single pass, so calling std::distance(first, last)
will consume the input and leave [first,last) as an empty range.

This change makes assign(InputIterator, InputIterator) and
insert(const_iterator, InputIterator, InputIterator) dispatch to
overloaded functions that choose the right overload based on the
iterator category. For forward iterators the original implementation is
used. For input iterators assign will construct a new vector and if that
doesn't throw, use swap to replace the contents of *this. For insert
each value is inserted at the end and if the bound is not exceeded
std::rotate is used to shift them to the desired position, otherwise the
inserted elements are removed from the end before the function exits.

This retains the strong exception safety guarantee for both operations,
so that exceeding the bound does not alter the existing contents of the
vector.

Fixes #486

Signed-off-by: Jonathan Wakely <[email protected]>

* Add test filling BoundedVector from forward iterators

Also replace the existing use of a definition using decltype, which was
frowned on in the comments of #493.

Signed-off-by: Jonathan Wakely <[email protected]>

* Fix UB in BoundedVector test.

Signed-off-by: Michel Hidalgo <[email protected]>

Co-authored-by: Michel Hidalgo <[email protected]>
* Add pytest.ini so tests succeed locally.

Signed-off-by: Chris Lalancette <[email protected]>
* allow zero length string constants

Signed-off-by: Dirk Thomas <[email protected]>

* update test with empty string constant

Signed-off-by: Dirk Thomas <[email protected]>
Resolves issues with older GCC versions, as described in https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56480

Resolves #479

Signed-off-by: Sebastian Höffner <[email protected]>
@jacobperron
Copy link
Member Author

Note, there are no test failures. The Fpr job is failing due to an unrelated infrastructure issue.

@dirk-thomas
Copy link
Member

@ros-pull-request-builder retest this please (using custom job config from ros-infrastructure/ros_buildfarm#828)

@dirk-thomas
Copy link
Member

dirk-thomas commented Aug 14, 2020

@ros-pull-request-builder retest this please (using custom job config from ros-infrastructure/ros_buildfarm#828) - checking for the API/API report...

As opposed the type name 'foo::msg::Bar', the new function let's us get the ROS namespaced name 'foo/msg/Bar'.

Signed-off-by: Jacob Perron <[email protected]>
@jacobperron
Copy link
Member Author

I've also add #514 to backport, though not strictly necessary I thought it would be nice to release once from master for both rolling and foxy.

@jacobperron jacobperron merged commit e9857ad into foxy Aug 18, 2020
@jacobperron jacobperron deleted the jacob/ff-foxy branch August 18, 2020 16:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants