Skip to content

[ros2doctor] Environment Report#1045

Merged
fujitatomoya merged 33 commits intoros2:rollingfrom
InvincibleRMC:environment-report
Aug 9, 2025
Merged

[ros2doctor] Environment Report#1045
fujitatomoya merged 33 commits intoros2:rollingfrom
InvincibleRMC:environment-report

Conversation

@InvincibleRMC
Copy link
Copy Markdown
Contributor

@InvincibleRMC InvincibleRMC commented Jun 4, 2025

Description

Adds gathering environment information to ros2 doctor --report

Fixes #1046

Is this user-facing behavior change?

It will allow reports to contain more useful debugging information.

Did you use Generative AI?

No

Additional Information

Signed-off-by: Michael Carlstrom <rmc@carlstrom.com>
Signed-off-by: Michael Carlstrom <rmc@carlstrom.com>
Signed-off-by: Michael Carlstrom <rmc@carlstrom.com>
Signed-off-by: Michael Carlstrom <rmc@carlstrom.com>
@InvincibleRMC InvincibleRMC marked this pull request as ready for review August 2, 2025 02:37
@InvincibleRMC
Copy link
Copy Markdown
Contributor Author

InvincibleRMC commented Aug 2, 2025

Updated this PR: to use list as dicussed in #1046. CC: @fujitatomoya

Copy link
Copy Markdown
Collaborator

@fujitatomoya fujitatomoya left a comment

Choose a reason for hiding this comment

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

test would be ideal.

but before adding the test, i would like to bring this PR to ROS PMC meeting for the approval. IMO this is still helpful information.

Co-authored-by: Tomoya Fujita <Tomoya.Fujita@sony.com>
Signed-off-by: Michael Carlstrom <rmc@carlstrom.com>
@InvincibleRMC
Copy link
Copy Markdown
Contributor Author

test would be ideal.

but before adding the test, i would like to bring this PR to ROS PMC meeting for the approval. IMO this is still helpful information.

Sure let me know their thoughts and if they are fine with this approach will add tests. Just didn't want to spend time writing tests for an approach they disagree with.

Signed-off-by: Michael Carlstrom <rmc@carlstrom.com>
Signed-off-by: Michael Carlstrom <rmc@carlstrom.com>
Signed-off-by: Michael Carlstrom <rmc@carlstrom.com>
@InvincibleRMC
Copy link
Copy Markdown
Contributor Author

Consensus from the meeting seems to be that the variables living here for now is fine. Until a better place is found for them in the future.

Signed-off-by: Michael Carlstrom <rmc@carlstrom.com>
Signed-off-by: Michael Carlstrom <rmc@carlstrom.com>
@ros-discourse
Copy link
Copy Markdown

This pull request has been mentioned on Open Robotics Discourse. There might be relevant details there:

https://discourse.openrobotics.org/t/ros-pmc-minutes-for-august-5-2025/49439/1

Signed-off-by: Michael Carlstrom <rmc@carlstrom.com>
Signed-off-by: Michael Carlstrom <rmc@carlstrom.com>
Signed-off-by: Michael Carlstrom <rmc@carlstrom.com>
Signed-off-by: Michael Carlstrom <rmc@carlstrom.com>
Signed-off-by: Michael Carlstrom <rmc@carlstrom.com>
Copy link
Copy Markdown
Collaborator

@fujitatomoya fujitatomoya left a comment

Choose a reason for hiding this comment

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

lgtm with green CI.

@fujitatomoya
Copy link
Copy Markdown
Collaborator

Pulls: #1045
Gist: https://gist.githubusercontent.com/fujitatomoya/f9b219b77fc09a8d54637d3f574d05ea/raw/5b4372e91d9b9a819b32032b884c91a4d8cd3325/ros2.repos
BUILD args: --packages-above-and-dependencies ros2doctor
TEST args: --packages-above ros2doctor
ROS Distro: rolling
Job: ci_launcher
ci_launcher ran: https://ci.ros2.org/job/ci_launcher/16667

  • Linux Build Status
  • Linux-aarch64 Build Status
  • Linux-rhel Build Status
  • Windows Build Status

@InvincibleRMC
Copy link
Copy Markdown
Contributor Author

@fujitatomoya fyi the tests are not all working yet. Working on some kinks still. will ping when complete.

Signed-off-by: Michael Carlstrom <rmc@carlstrom.com>
Signed-off-by: Michael Carlstrom <rmc@carlstrom.com>
Signed-off-by: Michael Carlstrom <rmc@carlstrom.com>
Signed-off-by: Michael Carlstrom <rmc@carlstrom.com>
Signed-off-by: Michael Carlstrom <rmc@carlstrom.com>
Signed-off-by: Michael Carlstrom <rmc@carlstrom.com>
Signed-off-by: Michael Carlstrom <rmc@carlstrom.com>
Signed-off-by: Michael Carlstrom <rmc@carlstrom.com>
@InvincibleRMC
Copy link
Copy Markdown
Contributor Author

Got it down to only zenoh problems. Probably some problem in how I have EnableRmwIsolation set up. I have spent literally over 12 hours writing these trying to find the right voodoo spells to make it all work. Will give it another shot tomorrow.

Signed-off-by: Michael Carlstrom <rmc@carlstrom.com>
Signed-off-by: Michael Carlstrom <rmc@carlstrom.com>
Signed-off-by: Michael Carlstrom <rmc@carlstrom.com>
@InvincibleRMC
Copy link
Copy Markdown
Contributor Author

@fujitatomoya Ok there seems to be some flakeyness on the ros2cli tests still but, the test_environment_report seems to be passing now.

@fujitatomoya
Copy link
Copy Markdown
Collaborator

  • Linux Build Status
  • Linux-aarch64 Build Status
  • Linux-rhel Build Status
  • Windows Build Status

InvincibleRMC and others added 2 commits August 7, 2025 16:25
Co-authored-by: Christophe Bedard <bedard.christophe@gmail.com>
Signed-off-by: Michael Carlstrom <rmc@carlstrom.com>
Signed-off-by: Michael Carlstrom <rmc@carlstrom.com>
@fujitatomoya
Copy link
Copy Markdown
Collaborator

@InvincibleRMC @christophebedard thanks! and 🤞🤞🤞

  • Linux Build Status
  • Linux-aarch64 Build Status
  • Linux-rhel Build Status
  • Windows Build Status

Copy link
Copy Markdown
Member

@christophebedard christophebedard left a comment

Choose a reason for hiding this comment

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

LGTM with green CI!

Co-authored-by: Christophe Bedard <bedard.christophe@gmail.com>
Signed-off-by: Michael Carlstrom <rmc@carlstrom.com>
@christophebedard
Copy link
Copy Markdown
Member

Pulls: #1045
Gist: https://gist.githubusercontent.com/christophebedard/d907f6afd2b86d15cf805265d93591a3/raw/5b4372e91d9b9a819b32032b884c91a4d8cd3325/ros2.repos
BUILD args: --packages-above-and-dependencies ros2doctor
TEST args: --packages-above ros2doctor
ROS Distro: rolling
Job: ci_launcher
ci_launcher ran: https://ci.ros2.org/job/ci_launcher/16686

  • Linux Build Status
  • Linux-aarch64 Build Status
  • Linux-rhel Build Status
  • Windows Build Status

@christophebedard
Copy link
Copy Markdown
Member

@ros-pull-request-builder retest this please

@christophebedard
Copy link
Copy Markdown
Member

@fujitatomoya what do you think?

@fujitatomoya
Copy link
Copy Markdown
Collaborator

@christophebedard thanks for the information, i do agree with you. those failures are not related to this PR. i think we can take this PR and address #1088 with another PR.

@fujitatomoya fujitatomoya merged commit 26dccbf into ros2:rolling Aug 9, 2025
2 of 3 checks passed
@fujitatomoya
Copy link
Copy Markdown
Collaborator

@InvincibleRMC as we talked bi-weekly meeting, can you update the ros2_documentation about the support for service/action endpoint list and environmental variables a bit?


RMW_FASTRTPS_ENVIRONMENT_VARIABLES: Final = [
'FASTDDS_BUILTIN_TRANSPORTS',
'FASTRTPS_DEFAULT_PROFILES_FILE',
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

@InvincibleRMC weird follow-up, but I think this was renamed to FASTDDS_DEFAULT_PROFILES_FILE now, see ros2/rmw_fastrtps#806

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Do you think it would be better to flat out update it or have both with a note that one of them is deprecated?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I think it should be updated to the new name here.

Separately, maybe there should be a list of deprecated env vars for which we list values (if set) and warn that they are deprecated?

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.

Adding Environment Information to ros2doctor

4 participants