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

Fix unload of controllers when spawned with --unload-on-kill #1717

Conversation

saikishor
Copy link
Member

Fix the bug, when using --unload-on-kill option, the spawner only unloads the last controller instead of all the controllers. This PR proposes a solution to fix the above issue

Copy link

codecov bot commented Aug 26, 2024

Codecov Report

Attention: Patch coverage is 70.58824% with 5 lines in your changes missing coverage. Please review.

Project coverage is 86.75%. Comparing base (6164883) to head (373dd13).
Report is 41 commits behind head on master.

Files with missing lines Patch % Lines
controller_manager/controller_manager/spawner.py 50.00% 3 Missing and 2 partials ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1717      +/-   ##
==========================================
+ Coverage   86.73%   86.75%   +0.02%     
==========================================
  Files         116      116              
  Lines       10618    10628      +10     
  Branches      978      980       +2     
==========================================
+ Hits         9209     9220      +11     
+ Misses       1058     1057       -1     
  Partials      351      351              
Flag Coverage Δ
unittests 86.75% <70.58%> (+0.02%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Δ
controller_manager/test/test_spawner_unspawner.cpp 99.09% <100.00%> (+0.02%) ⬆️
controller_manager/controller_manager/spawner.py 70.96% <50.00%> (-0.70%) ⬇️

... and 1 file with indirect coverage changes

Copy link
Contributor

@christophfroehlich christophfroehlich left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Member

@bmagyar bmagyar left a comment

Choose a reason for hiding this comment

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

Thank you!

@bmagyar bmagyar merged commit 9e57adf into ros-controls:master Aug 26, 2024
20 checks passed
@bmagyar bmagyar deleted the fix/unload_controllers/activate_as_group branch August 26, 2024 12:10
@saikishor saikishor added backport-humble This label should be used by maintaines only! Label triggers PR backport to ROS2 humble. backport-iron This label should be used by maintaines only! Label triggers PR backport to ROS2 Iron. labels Nov 3, 2024
mergify bot pushed a commit that referenced this pull request Nov 3, 2024
(cherry picked from commit 9e57adf)

# Conflicts:
#	controller_manager/controller_manager/spawner.py
#	controller_manager/test/test_spawner_unspawner.cpp
mergify bot pushed a commit that referenced this pull request Nov 3, 2024
(cherry picked from commit 9e57adf)

# Conflicts:
#	controller_manager/test/test_spawner_unspawner.cpp
saikishor added a commit that referenced this pull request Nov 3, 2024
#1843)

Co-authored-by: Sai Kishor Kothakota <sai.kishor@pal-robotics.com>
saikishor added a commit that referenced this pull request Nov 3, 2024
#1842)

Co-authored-by: Sai Kishor Kothakota <sai.kishor@pal-robotics.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport-humble This label should be used by maintaines only! Label triggers PR backport to ROS2 humble. backport-iron This label should be used by maintaines only! Label triggers PR backport to ROS2 Iron.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants