-
Notifications
You must be signed in to change notification settings - Fork 388
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.41% 89.44% +0.02%
==========================================
Files 155 156 +1
Lines 18144 18223 +79
Branches 1478 1482 +4
==========================================
+ Hits 16223 16299 +76
- Misses 1329 1330 +1
- Partials 592 594 +2
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
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 patch 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 |
|
Friendly ping @soham2560 :) |
|
Yes! we should do that sorry for the delay, been busy with work, this week will be hectic as well, I would be happy to address it after that, hope that is fine |
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