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

feat(duplicated_node_checker): add duplicated node names to msg #5382

Conversation

kyoichi-sugahara
Copy link
Contributor

@kyoichi-sugahara kyoichi-sugahara commented Oct 23, 2023

Description

🤖 Generated by Copilot at 232b433

This pull request enhances the duplicated_node_checker node to optionally report the names of duplicated nodes in the diagnostic message. It also updates the configuration files and comments for the node and its usage in the system_error_monitor node.


add flag to show duplicated node names to msg (default false)
the motivation for this is it's necessary to check duplicated node name in the log file sometimes (e.g. running scenario simulator in CI/CD environment)

launcher PR should be merged first

Tests performed

Run scenario_simulator_v2 in local environment.
I confirmed node name is added to msg when duplicated node is launched shown below.

[system_error_monitor-16] [ERROR 1698054734.955753195] [system_error_monitor /autoware/system/duplicated_node_checker/duplicated_node_checker: duplicated_node_checker]: [Single Point Fault]: Error: Duplicated nodes detected /simulation/openscenario_interpreter (logThrottledNamed():54)

Effects on system behavior

Not applicable.

Pre-review checklist for the PR author

The PR author must check the checkboxes below when creating the PR.

In-review checklist for the PR reviewers

The PR reviewers must check the checkboxes below before approval.

Post-review checklist for the PR author

The PR author must check the checkboxes below before merging.

  • There are no open discussions or they are tracked via tickets.

After all checkboxes are checked, anyone who has write access can merge the PR.

@github-actions github-actions bot added the component:system System design and integration. (auto-assigned) label Oct 23, 2023
@kyoichi-sugahara
Copy link
Contributor Author

@Owen-Liuyuxuan @shmpwk
Could you review this PR when you have time?

@@ -40,6 +40,7 @@
/autoware/system/service_log_checker: { sf_at: "warn", lf_at: "none", spf_at: "none" }
/autoware/system/duplicated_node_checker: default
# /autoware/system/resource_monitoring: { sf_at: "warn", lf_at: "error", spf_at: "none" }
# /autoware/system/duplicated_node_checker: default
Copy link
Contributor

@Owen-Liuyuxuan Owen-Liuyuxuan Oct 23, 2023

Choose a reason for hiding this comment

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

Could I know what is the motivation for adding this commented line in this file?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Copy link
Contributor

@shmpwk shmpwk left a comment

Choose a reason for hiding this comment

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

LGTM

@kyoichi-sugahara kyoichi-sugahara added the tag:run-build-and-test-differential Mark to enable build-and-test-differential workflow. (used-by-ci) label Oct 23, 2023
@codecov
Copy link

codecov bot commented Oct 23, 2023

Codecov Report

Attention: 5 lines in your changes are missing coverage. Please review.

Comparison is base (6832af0) 14.76% compared to head (232b433) 14.76%.
Report is 3 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #5382      +/-   ##
==========================================
- Coverage   14.76%   14.76%   -0.01%     
==========================================
  Files        1662     1662              
  Lines      115453   115455       +2     
  Branches    35640    35638       -2     
==========================================
  Hits        17045    17045              
- Misses      79178    79180       +2     
  Partials    19230    19230              
Flag Coverage Δ *Carryforward flag
differential 0.00% <0.00%> (?)
total 14.76% <ø> (+<0.01%) ⬆️ Carriedforward from 6832af0

*This pull request uses carry forward flags. Click here to find out more.

Files Coverage Δ
...ning/behavior_path_planner/src/planner_manager.cpp 17.37% <ø> (+0.04%) ⬆️
...cene_module/start_planner/start_planner_module.cpp 7.08% <ø> (+0.02%) ⬆️
...ated_node_checker/duplicated_node_checker_core.hpp 0.00% <ø> (ø)
..._node_checker/src/duplicated_node_checker_core.cpp 0.00% <0.00%> (ø)

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@kyoichi-sugahara kyoichi-sugahara merged commit 69813cb into autowarefoundation:main Oct 23, 2023
41 of 44 checks passed
@kyoichi-sugahara kyoichi-sugahara deleted the feat/add_duplicated_nodes_to_msg branch October 23, 2023 11:28
shmpwk pushed a commit to tier4/autoware.universe that referenced this pull request Nov 16, 2023
…warefoundation#5382)

* add duplicated node names to msg

Signed-off-by: kyoichi-sugahara <[email protected]>

* align with launcher repository

Signed-off-by: kyoichi-sugahara <[email protected]>

---------

Signed-off-by: kyoichi-sugahara <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component:system System design and integration. (auto-assigned) tag:run-build-and-test-differential Mark to enable build-and-test-differential workflow. (used-by-ci)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants