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 the missing bcolors.ENDC in hardware_spawner log prints #1870

Conversation

saikishor
Copy link
Member

While running some tests, I realized that the bcolors.ENDC is missing in couple of logging statements in hardware spawner and this is causing the logs to continue to stay in that color.

Previously:
image

With the fix proposed in this PR:
image

@saikishor saikishor force-pushed the fix/hardware_spawner/log_coloring branch from 44e294b to db8b47b Compare November 8, 2024 23:29
@saikishor saikishor requested a review from fmauch November 8, 2024 23:29
Copy link

codecov bot commented Nov 8, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 87.98%. Comparing base (0031ada) to head (db8b47b).
Report is 1 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #1870   +/-   ##
=======================================
  Coverage   87.98%   87.98%           
=======================================
  Files         121      121           
  Lines       12413    12413           
  Branches     1109     1109           
=======================================
+ Hits        10921    10922    +1     
  Misses       1085     1085           
+ Partials      407      406    -1     
Flag Coverage Δ
unittests 87.98% <100.00%> (+<0.01%) ⬆️

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

Files with missing lines Coverage Δ
...ler_manager/controller_manager/hardware_spawner.py 70.23% <100.00%> (ø)

... 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.

Thx!

@christophfroehlich christophfroehlich merged commit ec70ae1 into ros-controls:master Nov 9, 2024
17 of 19 checks passed
@christophfroehlich
Copy link
Contributor

Included in #1827 and #1828

@saikishor saikishor deleted the fix/hardware_spawner/log_coloring branch November 9, 2024 09:12
christophfroehlich pushed a commit that referenced this pull request Nov 10, 2024
* Fix Hardware spawner and add tests for it (#1759)

* Tests for hardware spawner.

* Fully support spawning a list of hardware components

* Use python3 coverage instead of ros2 run in tests

* Actually check component's state after changing it

* Update hardware_spawner's user documentation

---------

Co-authored-by: Dr. Denis Štogl <[email protected]>
Co-authored-by: Bence Magyar <[email protected]>
Co-authored-by: Christoph Fröhlich <[email protected]>
(cherry picked from commit 5dbd6d5)

# Conflicts:
#	controller_manager/CMakeLists.txt

* Fix conflict

* Fix the missing bcolors.ENDC in hardware_spawner log prints (#1870)

* Choose pass_urdf_as_parameter as false

---------

Co-authored-by: Felix Exner (fexner) <[email protected]>
Co-authored-by: Bence Magyar <[email protected]>
Co-authored-by: Sai Kishor Kothakota <[email protected]>
christophfroehlich added a commit that referenced this pull request Nov 10, 2024
* Fix Hardware spawner and add tests for it (#1759)

* Tests for hardware spawner.

* Fully support spawning a list of hardware components

* Use python3 coverage instead of ros2 run in tests

* Actually check component's state after changing it

* Update hardware_spawner's user documentation

---------

Co-authored-by: Dr. Denis Štogl <[email protected]>
Co-authored-by: Bence Magyar <[email protected]>
Co-authored-by: Christoph Fröhlich <[email protected]>
(cherry picked from commit 5dbd6d5)

# Conflicts:
#	controller_manager/CMakeLists.txt

* Fix conflicts

* FIx missing lines

* Fix the missing bcolors.ENDC in hardware_spawner log prints (#1870)

* Fix pre-commit

* Fix the API of the tests and the CMakeLists.txt

* Apply target properties as other tests

---------

Co-authored-by: Felix Exner (fexner) <[email protected]>
Co-authored-by: Sai Kishor Kothakota <[email protected]>
Co-authored-by: Christoph Froehlich <[email protected]>
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.

3 participants