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

common_diagnostics cleaned hostname string #405

Merged
merged 5 commits into from
Dec 18, 2024

Conversation

sjusner
Copy link
Contributor

@sjusner sjusner commented Nov 7, 2024

fixes #404. hostname used for node name now only contains alphanumeric and underscore.
Did not introduced any new libraries, also avoided python 3.7 specific feature for compatibility.

@Timple
Copy link
Contributor

Timple commented Nov 8, 2024

Just curious, for compatibility with what?

There are no active ROS distributions on python versions older than 3.8

@sjusner
Copy link
Contributor Author

sjusner commented Nov 8, 2024

Oh, that's true. Somehow I was thinking about the 3.6 requirements of ROS 2.
In that case I'll adapt the change, as the readability will be improved.

@ct2034 ct2034 self-assigned this Dec 3, 2024
Copy link
Collaborator

@ct2034 ct2034 left a comment

Choose a reason for hiding this comment

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

Thanks for your contribution

@ct2034 ct2034 merged commit cca0f14 into ros:ros2 Dec 18, 2024
12 checks passed
ct2034 pushed a commit to ct2034/diagnostics that referenced this pull request Dec 18, 2024
* Hostnames are properly cleaned to only contain alphanumeric characters or underscore.

* changed string sanitation (symbols must be ascii and alphanumeric)

* Changes now conforming to linting rules

* flake8 fixes

Signed-off-by: Christian Henkel <[email protected]>

---------

Signed-off-by: Christian Henkel <[email protected]>
Co-authored-by: Christian Henkel <[email protected]>
(cherry picked from commit cca0f14)
ct2034 pushed a commit to ct2034/diagnostics that referenced this pull request Dec 18, 2024
* Hostnames are properly cleaned to only contain alphanumeric characters or underscore.

* changed string sanitation (symbols must be ascii and alphanumeric)

* Changes now conforming to linting rules

* flake8 fixes

Signed-off-by: Christian Henkel <[email protected]>

---------

Signed-off-by: Christian Henkel <[email protected]>
Co-authored-by: Christian Henkel <[email protected]>
(cherry picked from commit cca0f14)
ct2034 pushed a commit to ct2034/diagnostics that referenced this pull request Dec 18, 2024
* Hostnames are properly cleaned to only contain alphanumeric characters or underscore.

* changed string sanitation (symbols must be ascii and alphanumeric)

* Changes now conforming to linting rules

* flake8 fixes

Signed-off-by: Christian Henkel <[email protected]>

---------

Signed-off-by: Christian Henkel <[email protected]>
Co-authored-by: Christian Henkel <[email protected]>
(cherry picked from commit cca0f14)
@ct2034
Copy link
Collaborator

ct2034 commented Dec 18, 2024

💚 All backports created successfully

Status Branch Result
ros2-humble
ros2-iron
ros2-jazzy

Questions ?

Please refer to the Backport tool documentation

ct2034 added a commit that referenced this pull request Dec 18, 2024
* Hostnames are properly cleaned to only contain alphanumeric characters or underscore.

* changed string sanitation (symbols must be ascii and alphanumeric)

* Changes now conforming to linting rules

* flake8 fixes

Signed-off-by: Christian Henkel <[email protected]>

---------

Signed-off-by: Christian Henkel <[email protected]>
Co-authored-by: Christian Henkel <[email protected]>
(cherry picked from commit cca0f14)

Co-authored-by: sjusner <[email protected]>
ct2034 added a commit that referenced this pull request Dec 18, 2024
* Hostnames are properly cleaned to only contain alphanumeric characters or underscore.

* changed string sanitation (symbols must be ascii and alphanumeric)

* Changes now conforming to linting rules

* flake8 fixes

Signed-off-by: Christian Henkel <[email protected]>

---------

Signed-off-by: Christian Henkel <[email protected]>
Co-authored-by: Christian Henkel <[email protected]>
(cherry picked from commit cca0f14)

Co-authored-by: sjusner <[email protected]>
ct2034 added a commit that referenced this pull request Dec 18, 2024
* Hostnames are properly cleaned to only contain alphanumeric characters or underscore.

* changed string sanitation (symbols must be ascii and alphanumeric)

* Changes now conforming to linting rules

* flake8 fixes

Signed-off-by: Christian Henkel <[email protected]>

---------

Signed-off-by: Christian Henkel <[email protected]>
Co-authored-by: Christian Henkel <[email protected]>
(cherry picked from commit cca0f14)

Co-authored-by: sjusner <[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.

common_diagnostics CPU monitoring fails on hostname with added domain
3 participants