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 timeouts of request services #6532

Merged

Conversation

TetsuKawa
Copy link
Contributor

Description

This PR adds timeout processing when requesting service to mrm operator.

Related links

Tests performed

Confirmed that the timeout process works.
Confirmed that the emergency_stop request is called after a mrm request failed (timed out).
Confirmed that the emergency_stop request also failed and mrm state transition to MRM_FAILED.

Notes for reviewers

Please come up with a better default value for timeout.

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.

@TetsuKawa TetsuKawa self-assigned this Mar 1, 2024
@github-actions github-actions bot added type:documentation Creating or refining documentation. (auto-assigned) component:system System design and integration. (auto-assigned) labels Mar 1, 2024
@TetsuKawa TetsuKawa marked this pull request as ready for review March 1, 2024 16:59
@TetsuKawa TetsuKawa added the run:build-and-test-differential Mark to enable build-and-test-differential workflow. (used-by-ci) label Mar 1, 2024
Copy link

codecov bot commented Mar 1, 2024

Codecov Report

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

Project coverage is 14.81%. Comparing base (1f6ed4a) to head (2bf969b).
Report is 3 commits behind head on main.

Files Patch % Lines
...m/mrm_handler/src/mrm_handler/mrm_handler_core.cpp 0.00% 53 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #6532      +/-   ##
==========================================
+ Coverage   14.77%   14.81%   +0.03%     
==========================================
  Files        1917     1917              
  Lines      132319   132001     -318     
  Branches    39298    39236      -62     
==========================================
- Hits        19552    19551       -1     
+ Misses      90941    90637     -304     
+ Partials    21826    21813      -13     
Flag Coverage Δ *Carryforward flag
differential 0.00% <0.00%> (?)
total 14.81% <ø> (+0.04%) ⬆️ Carriedforward from 55e6d5d

*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.

@isamu-takagi
Copy link
Contributor

@TetsuKawa Build is failing. It seems that the function name is different.

Copy link
Contributor

@isamu-takagi isamu-takagi left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor

@veqcc veqcc left a comment

Choose a reason for hiding this comment

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

LGTM

@TetsuKawa TetsuKawa merged commit 8e8ef48 into autowarefoundation:main Mar 11, 2024
23 of 25 checks passed
@TetsuKawa TetsuKawa deleted the feat/update-functions-of-calling-mrm branch March 11, 2024 05:14
HansRobo pushed a commit that referenced this pull request Mar 12, 2024
* feat: add timeouts of request services

Signed-off-by: TetsuKawa <[email protected]>

* style(pre-commit): autofix

* feat: replace define with enum

Signed-off-by: TetsuKawa <[email protected]>

* style(pre-commit): autofix

* modify: renam a function

Signed-off-by: TetsuKawa <[email protected]>

* modify: rename a function

Signed-off-by: TetsuKawa <[email protected]>

* modify: fix functions name at the caller side

Signed-off-by: TetsuKawa <[email protected]>

---------

Signed-off-by: TetsuKawa <[email protected]>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Takagi, Isamu <[email protected]>
Co-authored-by: Ryuta Kambe <[email protected]>
Signed-off-by: Kotaro Yoshimoto <[email protected]>
kaigohirao pushed a commit to kaigohirao/autoware.universe that referenced this pull request Mar 22, 2024
* feat: add timeouts of request services

Signed-off-by: TetsuKawa <[email protected]>

* style(pre-commit): autofix

* feat: replace define with enum

Signed-off-by: TetsuKawa <[email protected]>

* style(pre-commit): autofix

* modify: renam a function

Signed-off-by: TetsuKawa <[email protected]>

* modify: rename a function

Signed-off-by: TetsuKawa <[email protected]>

* modify: fix functions name at the caller side

Signed-off-by: TetsuKawa <[email protected]>

---------

Signed-off-by: TetsuKawa <[email protected]>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Takagi, Isamu <[email protected]>
Co-authored-by: Ryuta Kambe <[email protected]>
Signed-off-by: kaigohirao <[email protected]>
mkuri pushed a commit to tier4/autoware.universe that referenced this pull request Mar 28, 2024
* feat: add timeouts of request services

Signed-off-by: TetsuKawa <[email protected]>

* style(pre-commit): autofix

* feat: replace define with enum

Signed-off-by: TetsuKawa <[email protected]>

* style(pre-commit): autofix

* modify: renam a function

Signed-off-by: TetsuKawa <[email protected]>

* modify: rename a function

Signed-off-by: TetsuKawa <[email protected]>

* modify: fix functions name at the caller side

Signed-off-by: TetsuKawa <[email protected]>

---------

Signed-off-by: TetsuKawa <[email protected]>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Takagi, Isamu <[email protected]>
Co-authored-by: Ryuta Kambe <[email protected]>
karishma1911 pushed a commit to Interplai/autoware.universe that referenced this pull request Jun 3, 2024
* feat: add timeouts of request services

Signed-off-by: TetsuKawa <[email protected]>

* style(pre-commit): autofix

* feat: replace define with enum

Signed-off-by: TetsuKawa <[email protected]>

* style(pre-commit): autofix

* modify: renam a function

Signed-off-by: TetsuKawa <[email protected]>

* modify: rename a function

Signed-off-by: TetsuKawa <[email protected]>

* modify: fix functions name at the caller side

Signed-off-by: TetsuKawa <[email protected]>

---------

Signed-off-by: TetsuKawa <[email protected]>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Takagi, Isamu <[email protected]>
Co-authored-by: Ryuta Kambe <[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) run:build-and-test-differential Mark to enable build-and-test-differential workflow. (used-by-ci) type:documentation Creating or refining documentation. (auto-assigned)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants