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

Improve ros2 doctor on Windows #631

Merged
merged 7 commits into from
May 6, 2021

Conversation

ivanpauno
Copy link
Member

The output of ros2 doctor on Windows was confusing.

  • Print an useful error message when failing to import rosdistro.
  • Print a clearer error message when failing to find either a loopback or no loopback interface on Windows.
  • Print "latest version" instead of "required version".
  • Print the corrent name of the python executable according to the platform.

See the comment I wrote in the Galactic testing matric for more context.

rosdistro python package is not usually installed on Windows, so having a nicer message when not found is helpful.
I updated "latest version" to "required version" because the warning shows that for that ros distribution there's a newer version of the package available in rosdistro, it's not really a required version.

* Print an useful error message when failing to import rosdistro.
* Print a clearer error message when failing to find either a loopback or no loopback interface on Windows.
* Print "latest version" instead of "required version".
* Print the corrent name of the python executable according to the platform.

Signed-off-by: Ivan Santiago Paunovic <ivanpauno@ekumenlabs.com>
@ivanpauno ivanpauno added the enhancement New feature or request label Apr 21, 2021
@ivanpauno ivanpauno self-assigned this Apr 21, 2021
@ivanpauno ivanpauno added this to In progress in Galactic via automation Apr 21, 2021
Copy link
Contributor

@clalancette clalancette left a comment

Choose a reason for hiding this comment

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

A couple of comments in here.

ros2doctor/ros2doctor/api/network.py Outdated Show resolved Hide resolved
ros2doctor/ros2doctor/api/package.py Outdated Show resolved Hide resolved
Signed-off-by: Ivan Santiago Paunovic <ivanpauno@ekumenlabs.com>

Co-authored-by: Chris Lalancette <clalancette@openrobotics.org>
Signed-off-by: Ivan Santiago Paunovic <ivanpauno@ekumenlabs.com>

Co-authored-by: Christophe Bedard <bedard.christophe@gmail.com>
@ivanpauno ivanpauno closed this Apr 23, 2021
@ivanpauno ivanpauno reopened this Apr 23, 2021
Signed-off-by: Ivan Santiago Paunovic <ivanpauno@ekumenlabs.com>
Signed-off-by: Ivan Santiago Paunovic <ivanpauno@ekumenlabs.com>
Signed-off-by: Ivan Santiago Paunovic <ivanpauno@ekumenlabs.com>
Signed-off-by: Ivan Santiago Paunovic <ivanpauno@ekumenlabs.com>
Copy link
Contributor

@hidmic hidmic left a comment

Choose a reason for hiding this comment

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

This looks a lot simpler :) LGTM !

@ivanpauno
Copy link
Member Author

@ros-pull-request-builder retest this please

@ivanpauno
Copy link
Member Author

CI:

  • Linux Build Status
  • Linux-aarch64 Build Status
  • macOS Build Status
  • Windows Build Status

@ivanpauno ivanpauno merged commit 3803d77 into master May 6, 2021
@delete-merged-branch delete-merged-branch bot deleted the ivanpauno/improve-ros2-doctor-windows branch May 6, 2021 14:59
@ivanpauno
Copy link
Member Author

@Mergifyio backport galactic

mergify bot pushed a commit that referenced this pull request May 6, 2021
Improve ros2 doctor on Windows:

* Print a more useful error message when failing to load plugin
* Print a clearer error message when failing to find either a loopback or no loopback interface on Windows.
* Print "latest version" instead of "required version".
* Print the corrent name of the python executable according to the platform.

Signed-off-by: Ivan Santiago Paunovic <ivanpauno@ekumenlabs.com>
Co-authored-by: Chris Lalancette <clalancette@openrobotics.org>
Co-authored-by: Christophe Bedard <bedard.christophe@gmail.com>
(cherry picked from commit 3803d77)
@mergify
Copy link

mergify bot commented May 6, 2021

Command backport galactic: success

Backports have been created

hidmic pushed a commit that referenced this pull request May 7, 2021
Improve ros2 doctor on Windows:

* Print a more useful error message when failing to load plugin
* Print a clearer error message when failing to find either a loopback or no loopback interface on Windows.
* Print "latest version" instead of "required version".
* Print the corrent name of the python executable according to the platform.

Signed-off-by: Ivan Santiago Paunovic <ivanpauno@ekumenlabs.com>
Co-authored-by: Chris Lalancette <clalancette@openrobotics.org>
Co-authored-by: Christophe Bedard <bedard.christophe@gmail.com>
(cherry picked from commit 3803d77)

Co-authored-by: Ivan Santiago Paunovic <ivanpauno@ekumenlabs.com>
@ivanpauno ivanpauno moved this from In progress to Done in Galactic May 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
No open projects
Galactic
  
Done
Development

Successfully merging this pull request may close these issues.

None yet

4 participants