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: add published_time publisher debug to packages #6490

Merged
merged 4 commits into from
Mar 15, 2024

Conversation

brkay54
Copy link
Member

@brkay54 brkay54 commented Feb 26, 2024

Description

Part of:

Depends on:

Related links

Tests performed

Tested on PSim and e2e_simulator, worked well.

Notes for reviewers

Interface changes

Effects on system behavior

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.

  • The PR follows the pull request guidelines.
  • The PR has been properly tested.
  • The PR has been reviewed by the code owners.

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.
  • The PR is ready for merge.

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

@github-actions github-actions bot added component:perception Advanced sensor data processing and environment understanding. (auto-assigned) component:sensing Data acquisition from sensors, drivers, preprocessing. (auto-assigned) component:planning Route planning, decision-making, and navigation. (auto-assigned) component:control Vehicle control algorithms and mechanisms. (auto-assigned) component:common Common packages from the autoware-common repository. (auto-assigned) labels Feb 26, 2024
@brkay54 brkay54 marked this pull request as ready for review February 26, 2024 06:52
@xmfcx
Copy link
Contributor

xmfcx commented Mar 13, 2024

Copy link
Contributor

@xmfcx xmfcx 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 all the work. I've made my review, most of them are for specific parts.

But following comments should be removed from everywhere:

// Publish published time only if there are subscribers more than 1

// PublishedTime Publisher

https://stackoverflow.blog/2021/12/23/best-practices-for-writing-code-comments/

Rule 1: Comments should not duplicate the code.

Otherwise you are violating the Rule #1 of writing code comments.

Copy link

codecov bot commented Mar 13, 2024

Codecov Report

Attention: Patch coverage is 0% with 62 lines in your changes are missing coverage. Please review.

Project coverage is 14.78%. Comparing base (ca46a8f) to head (b1724f5).
Report is 1 commits behind head on main.

Files Patch % Lines
...ning/planning_validator/src/planning_validator.cpp 0.00% 2 Missing and 3 partials ⚠️
...ng_object_merger/src/decorative_tracker_merger.cpp 0.00% 4 Missing ⚠️
...ction_by_tracker/src/detection_by_tracker_core.cpp 0.00% 3 Missing ⚠️
planning/obstacle_avoidance_planner/src/node.cpp 0.00% 1 Missing and 2 partials ⚠️
planning/obstacle_stop_planner/src/node.cpp 0.00% 1 Missing and 2 partials ⚠️
...anning/path_smoother/src/elastic_band_smoother.cpp 0.00% 1 Missing and 2 partials ⚠️
sensing/pointcloud_preprocessor/src/filter.cpp 0.00% 2 Missing and 1 partial ⚠️
...l/trajectory_follower_node/src/controller_node.cpp 0.00% 0 Missing and 2 partials ⚠️
control/vehicle_cmd_gate/src/vehicle_cmd_gate.cpp 0.00% 0 Missing and 2 partials ⚠️
...re_remover/src/detected_object_feature_remover.cpp 0.00% 2 Missing ⚠️
... and 16 more
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #6490      +/-   ##
==========================================
- Coverage   14.79%   14.78%   -0.01%     
==========================================
  Files        1920     1920              
  Lines      132385   132447      +62     
  Branches    39345    39378      +33     
==========================================
  Hits        19585    19585              
- Misses      90956    90991      +35     
- Partials    21844    21871      +27     
Flag Coverage Δ *Carryforward flag
differential 16.76% <0.00%> (?)
total 14.79% <ø> (+<0.01%) ⬆️ Carriedforward from ca46a8f

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

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

@github-actions github-actions bot added component:common Common packages from the autoware-common repository. (auto-assigned) and removed type:documentation Creating or refining documentation. (auto-assigned) labels Mar 14, 2024
@brkay54 brkay54 requested a review from xmfcx March 14, 2024 10:36
@xmfcx
Copy link
Contributor

xmfcx commented Mar 14, 2024

@brkay54 Could you go through all the changed packages to make sure they have <depend>tier4_autoware_utils</depend> in their package.xml? (just to make sure)

@brkay54
Copy link
Member Author

brkay54 commented Mar 14, 2024

@xmfcx Thank you for the detailed review. 🙏🏼

@brkay54 Could you go through all the changed packages to make sure they have <depend>tier4_autoware_utils</depend> in their package.xml? (just to make sure)

Just checked the missed ones, I added them with the last commit.

@xmfcx
Copy link
Contributor

xmfcx commented Mar 14, 2024

@brkay54 thanks,

Right now only way for this PR to break existing behavior or even crash the modified nodes is:

If published_time_publisher_ is not initialized in a constructor and if it is called from somewhere, it will cause segfault.

Could you make sure every modified node initializes this published_time_publisher_ object?

I don't know if there is a way to check this in a more automated way.

@xmfcx
Copy link
Contributor

xmfcx commented Mar 14, 2024

I've checked all modified .cpp files manually to make sure they are all initialized in the constructors, it should be ok to merge this now.

Waiting for the re-run test that had failed from an unrelated flaky test.

@xmfcx xmfcx merged commit 7f36c52 into autowarefoundation:main Mar 15, 2024
22 of 25 checks passed
satoshi-ota added a commit to tier4/autoware.universe that referenced this pull request Mar 15, 2024
kaigohirao pushed a commit to kaigohirao/autoware.universe that referenced this pull request Mar 22, 2024
karishma1911 pushed a commit to Interplai/autoware.universe that referenced this pull request Jun 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component:common Common packages from the autoware-common repository. (auto-assigned) component:control Vehicle control algorithms and mechanisms. (auto-assigned) component:perception Advanced sensor data processing and environment understanding. (auto-assigned) component:planning Route planning, decision-making, and navigation. (auto-assigned) component:sensing Data acquisition from sensors, drivers, preprocessing. (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.

Make it possible to detect publishing times of the messages in the pipelines
4 participants