-
Notifications
You must be signed in to change notification settings - Fork 434
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
Shutdown the context before context's destructor is invoked in tests #2633
Shutdown the context before context's destructor is invoked in tests #2633
Conversation
Signed-off-by: Alejandro Hernández Cordero <[email protected]>
Why this change? The context is initialized in the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm. the fix itself makes sense to me that we call shutdown
explicitly once it completes the all test cases with this fixture.
i would also like to know @alsora 's comment above. i think default_context
will be destructed when the process space is destroyed, then context will be shutdown. What kind of problem did you have with rmw_zenoh?
@ahcorde any chance you opened this PR because you ran into the If so I wonder if my comment here explains why we need this PR. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please see ros2/rmw_zenoh#170 (comment) for why this is needed.
TLDR; Leaving the context's destructor to shutdown the context at program termiantion causes Zenoh to panic since Thread local storage gets cleared earlier.
CI started with this repos file. |
Signed-off-by: Yadunund <[email protected]>
4b50b61
to
2fa9c92
Compare
Signed-off-by: Yadunund <[email protected]>
I took the liberty to adopt the change into other tests in @fujitatomoya @alsora kindly review this PR whenever time permits! Re-run CI after pushing changes: |
Signed-off-by: Yadunund <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Generally, these look good to me, but there is one that I think we should revamp.
Signed-off-by: Alejandro Hernández Cordero <[email protected]>
Still failing here
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me with green CI.
Pulls: #2633 |
This is something we need to fix in @ahcorde looks like uncrustify is failing. |
Signed-off-by: Alejandro Hernández Cordero <[email protected]>
Merging with green CI! |
No description provided.