Repository navigation
Conversation
|
Important Review skippedReview was skipped as selected files did not have any reviewable changes.
|
| Layer / File(s) | Summary |
|---|---|
Destructor resource release moveit_ros/planning/trajectory_execution_manager/src/trajectory_execution_manager.cpp |
The destructor clears the parameter callback, removes the controller-manager node from the private executor, and resets controller-manager and executor resources in shutdown order. |
Estimated code review effort: 2 (Simple) | ~10 minutes
Merge Risk: 
Minimal · previous review bf951
-
This change orders shutdown cleanup so controller-manager resources are released before their node, addressing the reported shutdown crash. No current merge-blocking risk is identified.
🚥 Pre-merge checks | ✅ 4 | ❌ 1
-
❌ Failed checks (1 warning)
Check name Status Explanation Resolution Docstring Coverage ⚠️ WarningDocstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 2 functions across 1 files. Write docstrings for the functions missing them to satisfy the coverage threshold. ✅ Passed checks (4 passed)
-
Check name Status Explanation Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled. Title check ✅ Passed The title clearly and concisely describes the main change: fixing a shutdown segmentation fault in the trajectory execution manager. Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request. Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
-
Finishing Touches
-
🧪 Generate unit tests (beta)
-
- Create PR with unit tests
-
- Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
ℹ️ Recent review info
-
⚙️ Run configuration
-
Configuration used: defaults
Review profile: CHILL
Plan: Team
Run ID: 29e82904-65f2-4331-977b-46c088589b1f
📒 Files selected for processing (1)
-
moveit_ros/planning/trajectory_execution_manager/src/trajectory_execution_manager.cpp
🚧 Files skipped from review as they are similar to previous changes (1)
-
- moveit_ros/planning/trajectory_execution_manager/src/trajectory_execution_manager.cpp
Included review availability: Your plan provides up to 4 included reviews per hour; 3 remain after this review.
ℹ️ Recent review info
-
⚙️ Run configuration
-
Configuration used: defaults
Review profile: CHILL
Plan: Team
Run ID:
29e82904-65f2-4331-977b-46c088589b1f
📒 Files selected for processing (1)
-
moveit_ros/planning/trajectory_execution_manager/src/trajectory_execution_manager.cpp
🚧 Files skipped from review as they are similar to previous changes (1)
-
- moveit_ros/planning/trajectory_execution_manager/src/trajectory_execution_manager.cpp
Included review availability: Your plan provides up to 4 included reviews per hour; 3 remain after this review.
-
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #3828 +/- ##
==========================================
- Coverage 48.92% 48.73% -0.18%
==========================================
Files 735 735
Lines 62699 62705 +6
Branches 7629 7631 +2
==========================================
- Hits 30669 30554 -115
- Misses 32030 32151 +121 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
|
Why do unit tests fail again? Are they flaky? Triggered a new build... |
|
Tick the box to add this pull request to the merge queue (same as
|
|
CI has been a bit flaky but particular for this PR...I (or someone) have to look into it. From the first look, failures do look unrelated to the code change in this PR though. |
TrajectoryExecutionManagersegfaults on destruction whenever a controller manager plugin is loaded.The controller manager creates action clients on the node it is given in
initialize()and therclcpp_action::Clientis aWaitable, so the node's default callback group holds a weak reference to each. Becausecontroller_manager_loader_is declared aftercontroller_mgr_node_, the plugin and its loader are destroyed before the node causing it to crash on shutdown.This PR destroys the objects in the correct order so that it can shutdown cleanly.
Summary by CodeRabbit