-
Notifications
You must be signed in to change notification settings - Fork 386
Add cleanup_controller lifecycle transition
#2414
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
base: master
Are you sure you want to change the base?
Conversation
This reverts commit 9b8d702.
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #2414 +/- ##
==========================================
+ Coverage 89.59% 89.64% +0.04%
==========================================
Files 152 153 +1
Lines 17710 17788 +78
Branches 1454 1458 +4
==========================================
+ Hits 15868 15946 +78
+ Misses 1256 1255 -1
- Partials 586 587 +1
Flags with carried forward coverage won't be shown. Click here to find out more.
🚀 New features to boost your workflow:
|
cleanup_controller lifecycle transition
christophfroehlich
left a comment
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.
+1
saikishor
left a comment
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.
Just some minor nitpicks
Co-authored-by: Sai Kishor Kothakota <[email protected]>
Co-authored-by: Sai Kishor Kothakota <[email protected]>
|
@saikishor have addressed your comments let me know what you think |
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.
LGTM, but could we add release notes for this please? And we should create a follow-up issue to path rqt_controller_manager with the new transition.
Also this has to be udpated (in a future PR maybe)
| # choices=['unconfigured', 'inactive', 'active'], TODO(destogl): when cleanup is impl |
| # TODO(destogl): This has to be implemented in CLI and controller manager | |
| # if args.state == 'unconfigured': | |
| # if matched_controller.state != 'inactive': | |
| # return f'cannot cleanup {matched_controller.name} ' \ | |
| # f'from its current state {matched_controller.state}' | |
| # response = cleanup_controller( | |
| # node, args.controller_manager, args.controller_name | |
| # ) | |
| # if not response.ok: | |
| # return 'Error cleaning up controller, check controller_manager logs' | |
| # # print(f'successfully cleaned up {args.controller_name}') | |
| # return 0 |
| return controller_interface::return_type::ERROR; | ||
| } | ||
|
|
||
| // find and clean controller if it is inactive |
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.
| // find and clean controller if it is inactive | |
| // call cleanup transition, if it is inactive |
Brief
This PR completes #1236 by @bailaC which was started to fix #759.
TODOs
Port over suggestions from original PRrefer 3b5f695unconfigure_controlleras discussed with @saikishor and @bmagyar refer 0e86448