Skip to content

Fix tests after rolling sync 0225#5987

Merged
SteveMacenski merged 7 commits intoros-navigation:mainfrom
mini-1235:fix/0226
Feb 28, 2026
Merged

Fix tests after rolling sync 0225#5987
SteveMacenski merged 7 commits intoros-navigation:mainfrom
mini-1235:fix/0226

Conversation

@mini-1235
Copy link
Collaborator


Basic Info

Info Please fill out this column
Ticket(s) this addresses N/A
Primary OS tested on (Ubuntu, MacOS, Windows)
Robotic platform tested on (Steve's Robot, gazebo simulation of Tally, hardware turtlebot)
Does this PR contain AI generated software? (No; Yes and it is marked inline in the code)
Was this PR description generated by AI software? Out of respect for maintainers, AI for human-to-human communications are banned

Description of contribution in a few bullet points

Description of documentation updates required from your changes

Description of how this change was tested


Future work that may be required in bullet points

For Maintainers:

  • Check that any new parameters added are updated in docs.nav2.org
  • Check that any significant change is added to the migration guide
  • Check that any new features OR changes to existing behaviors are reflected in the tuning guide
  • Check that any new functions have Doxygen added
  • Check that any new features have test coverage
  • Check that any new plugins is added to the plugins page
  • If BT Node, Additionally: add to BT's XML index of nodes for groot, BT package's readme table, and BT library lists
  • Should this be backported to current distributions? If so, tag with backport-*.

Signed-off-by: mini-1235 <mauricepurnawan@gmail.com>
Signed-off-by: mini-1235 <mauricepurnawan@gmail.com>
self,
goal_handle: ServerGoalHandle[NavigateToPose.Goal,
NavigateToPose.Result, NavigateToPose.Feedback]
NavigateToPose.Result, NavigateToPose.Feedback,
Copy link
Collaborator Author

@mini-1235 mini-1235 Feb 26, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Previously: TypeError: Too few arguments for <class 'rclpy.action.server.ServerGoalHandle'>; actual 3, expected at least 4

Signed-off-by: mini-1235 <mauricepurnawan@gmail.com>
TEST_F(NonblockingSequenceTestFixture, test_failure_on_idle_child)
{
first_child_->changeStatus(BT::NodeStatus::IDLE);
// NodeExecutionError is introduced in BT.CPP 4.9.0
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is not available in Kilted/Jazzy for now

Signed-off-by: mini-1235 <mauricepurnawan@gmail.com>
@codecov
Copy link

codecov bot commented Feb 26, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.

Files with missing lines Coverage Δ
nav2_behavior_tree/src/behavior_tree_engine.cpp 90.90% <100.00%> (-1.95%) ⬇️

... and 12 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copy link
Member

@SteveMacenski SteveMacenski left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Within BT Navigator, should we actually use this now to catch that and print some information about the failedNode / originalMessage https://github.com/BehaviorTree/BehaviorTree.CPP/blob/3ff6a32ba0497a08519c77a1436e3b81eff1bcd6/include/behaviortree_cpp/exceptions.h#L81 This seems like really nice information to give to a user.

Signed-off-by: mini-1235 <mauricepurnawan@gmail.com>
@mini-1235
Copy link
Collaborator Author

Within BT Navigator, should we actually use this now to catch that and print some information about the failedNode / originalMessage https://github.com/BehaviorTree/BehaviorTree.CPP/blob/3ff6a32ba0497a08519c77a1436e3b81eff1bcd6/include/behaviortree_cpp/exceptions.h#L81 This seems like really nice information to give to a user.

Good point, I think you are referring to this part

right?

Remove back-compatibility code for BT.CPP 3.8.x.

Signed-off-by: Maurice Alexander Purnawan <mauricepurnawan@gmail.com>
@mini-1235
Copy link
Collaborator Author

I think it's also time to remove

// FIXME: the next two line are needed for back-compatibility with BT.CPP 3.8.x
// Note that the can be removed, once we migrate from BT.CPP 4.5.x to 4.6+
BT::ReactiveSequence::EnableException(false);
BT::ReactiveFallback::EnableException(false);

They are false by default in newer versions

Co-authored-by: Steve Macenski <stevenmacenski@gmail.com>
Signed-off-by: Maurice Alexander Purnawan <mauricepurnawan@gmail.com>
@SteveMacenski SteveMacenski merged commit cf36cc8 into ros-navigation:main Feb 28, 2026
15 of 16 checks passed
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.

2 participants