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

call shutdown in LifecycleNode dtor to avoid leaving the device in unknown state (2nd) #2528

Merged
merged 3 commits into from
May 29, 2024

Conversation

fujitatomoya
Copy link
Collaborator

address #2520

depends on #2527

@fujitatomoya
Copy link
Collaborator Author

we can backport this PR to jazzy, but we need to cherry-pick 2f451b6 to humble and iron.

Copy link
Member

@mjcarroll mjcarroll 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 CI

@fujitatomoya
Copy link
Collaborator Author

this needs to be rebased to rolling since #2527 is merged.

…the device in un… (#2450)" (#2522)"

This reverts commit 42b0b57.

Signed-off-by: Tomoya Fujita <Tomoya.Fujita@sony.com>
Signed-off-by: Tomoya Fujita <Tomoya.Fujita@sony.com>
Signed-off-by: Tomoya Fujita <Tomoya.Fujita@sony.com>
@fujitatomoya fujitatomoya force-pushed the fujitatomoya/lifecycle-node-shutdown-dtor branch from 0c57c5f to 3bd6bef Compare May 24, 2024 01:32
@fujitatomoya
Copy link
Collaborator Author

CI:

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

@fujitatomoya
Copy link
Collaborator Author

fujitatomoya commented May 24, 2024

  • Linux-aarch64 Build Status

@fujitatomoya
Copy link
Collaborator Author

fujitatomoya commented May 25, 2024

@clalancette aarch64 detects many unrelated test failures, is this know issue?

[ RUN      ] TestNodeParameters.construct_destruct_rcl_errors
mimick: Initialization error: could not find definitions for vital function(s): 'abort' 'vfprintf'
-- run_test.py: return code -6

@fujitatomoya
Copy link
Collaborator Author

https://ci.ros2.org/job/ci_linux-aarch64/15479/ is known issue that can be addressed by ros2/Mimick#36, so retrying CI again.

@fujitatomoya
Copy link
Collaborator Author

  • Linux-aarch64 Build Status

@fujitatomoya
Copy link
Collaborator Author

okay now it is green light, merging.

@fujitatomoya fujitatomoya merged commit 3bc364a into rolling May 29, 2024
2 of 3 checks passed
@delete-merged-branch delete-merged-branch bot deleted the fujitatomoya/lifecycle-node-shutdown-dtor branch May 29, 2024 16:40
@fujitatomoya
Copy link
Collaborator Author

I am gonna do the backport,

  • Backport this PR to Jazzy as it is.
  • cherry-pick 2f451b6 to humble and iron.

@fujitatomoya
Copy link
Collaborator Author

@Mergifyio backport jazzy

Copy link

mergify bot commented May 29, 2024

backport jazzy

✅ Backports have been created

mergify bot pushed a commit that referenced this pull request May 29, 2024
…known state (2nd) (#2528)

* Revert "Revert "call shutdown in LifecycleNode dtor to avoid leaving the device in un… (#2450)" (#2522)"

This reverts commit 42b0b57.

Signed-off-by: Tomoya Fujita <Tomoya.Fujita@sony.com>

* lifecycle node dtor shutdown should be called only in primary state.

Signed-off-by: Tomoya Fujita <Tomoya.Fujita@sony.com>

* adjust warning message if the node is still in transition state in dtor.

Signed-off-by: Tomoya Fujita <Tomoya.Fujita@sony.com>

---------

Signed-off-by: Tomoya Fujita <Tomoya.Fujita@sony.com>
(cherry picked from commit 3bc364a)
fujitatomoya added a commit that referenced this pull request Jun 7, 2024
…known state (2nd) (backport #2528) (#2542)

* call shutdown in LifecycleNode dtor to avoid leaving the device in unknown state (2nd) (#2528)

* Revert "Revert "call shutdown in LifecycleNode dtor to avoid leaving the device in un… (#2450)" (#2522)"

This reverts commit 42b0b57.

Signed-off-by: Tomoya Fujita <Tomoya.Fujita@sony.com>

* lifecycle node dtor shutdown should be called only in primary state.

Signed-off-by: Tomoya Fujita <Tomoya.Fujita@sony.com>

* adjust warning message if the node is still in transition state in dtor.

Signed-off-by: Tomoya Fujita <Tomoya.Fujita@sony.com>

---------

Signed-off-by: Tomoya Fujita <Tomoya.Fujita@sony.com>
(cherry picked from commit 3bc364a)

* LifecycleNode shutdown on dtor only with valid context. (#2545)

Signed-off-by: Tomoya Fujita <Tomoya.Fujita@sony.com>

---------

Signed-off-by: Tomoya Fujita <Tomoya.Fujita@sony.com>
Co-authored-by: Tomoya Fujita <Tomoya.Fujita@sony.com>
fujitatomoya added a commit that referenced this pull request Jun 10, 2024
…ce in unknown state (2nd) (#2528)"

This reverts commit 3bc364a.

Signed-off-by: Tomoya Fujita <Tomoya.Fujita@sony.com>
fujitatomoya added a commit that referenced this pull request Jun 10, 2024
…ce in unknown state (2nd) (backport #2528) (#2542)"

This reverts commit 8ab10aa.

Signed-off-by: Tomoya Fujita <Tomoya.Fujita@sony.com>
fujitatomoya added a commit that referenced this pull request Jun 11, 2024
* Revert "LifecycleNode shutdown on dtor only with valid context. (#2545)"

This reverts commit d8d83a0.

Signed-off-by: Tomoya Fujita <Tomoya.Fujita@sony.com>

* Revert "call shutdown in LifecycleNode dtor to avoid leaving the device in unknown state (2nd) (#2528)"

This reverts commit 3bc364a.

Signed-off-by: Tomoya Fujita <Tomoya.Fujita@sony.com>

---------

Signed-off-by: Tomoya Fujita <Tomoya.Fujita@sony.com>
fujitatomoya added a commit that referenced this pull request Jun 11, 2024
…ce in unknown state (2nd) (backport #2528) (#2542)" (#2558)

This reverts commit 8ab10aa.

Signed-off-by: Tomoya Fujita <Tomoya.Fujita@sony.com>
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.

None yet

2 participants