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

Destroy event handlers owned by publishers/subscriptions when calling publisher.destroy()/subscription.destroy() #603

Merged
merged 6 commits into from Jul 16, 2020

Conversation

ivanpauno
Copy link
Member

The other half of #601 to completely fix #588.

The assumption in comment

# We live in our own namespace and have created no other participants, so
# there can't be any of these events.
was wrong because some of the objects created in the previous test cases were still around.

@ivanpauno ivanpauno added bug Something isn't working in review Waiting for review (Kanban column) labels Jul 15, 2020
@ivanpauno ivanpauno self-assigned this Jul 15, 2020
@ivanpauno
Copy link
Member Author

ivanpauno commented Jul 15, 2020

Signed-off-by: Ivan Santiago Paunovic <ivanpauno@ekumenlabs.com>
Signed-off-by: Ivan Santiago Paunovic <ivanpauno@ekumenlabs.com>
Signed-off-by: Ivan Santiago Paunovic <ivanpauno@ekumenlabs.com>
@ivanpauno ivanpauno force-pushed the ivanpauno/fix-test-qos-event branch from be1deb6 to ef3b785 Compare July 15, 2020 22:14
Signed-off-by: Ivan Santiago Paunovic <ivanpauno@ekumenlabs.com>
@ivanpauno
Copy link
Member Author

  • Linux Build Status

Copy link
Contributor

@clalancette clalancette left a comment

Choose a reason for hiding this comment

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

Change seems reasonable to me, but the test failures seem odd. At least, I don't see test_waitable_with_timer failing in the nightly Linux. @ivanpauno any thoughts?

@ivanpauno
Copy link
Member Author

Change seems reasonable to me, but the test failures seem odd. At least, I don't see test_waitable_with_timer failing in the nightly Linux. @ivanpauno any thoughts?

That test is extremely unrelated, so it's maybe flaky.

I'm testing here only rmw_cyclonedds which is not the usual nightly conditions (the reported bug #588 didn't happen in nightlies).
I cannot find a similar failure in the only cyclonedds job in buld.ros2.org, so I will investigate a bit more before merging.

  • Linux Build Status (including fastrtps)
  • Linux Build Status (only cyclone)

@ivanpauno
Copy link
Member Author

@ros-pull-request-builder retest this please

@ivanpauno
Copy link
Member Author

That test is extremely unrelated, so it's maybe flaky.

It seems to be related actually 😕

…ng them

Signed-off-by: Ivan Santiago Paunovic <ivanpauno@ekumenlabs.com>
@ivanpauno
Copy link
Member Author

ivanpauno commented Jul 16, 2020

Ok, I think I've got it right now:

  • Linux Build Status (only cyclonedds)

edit: Updated after last commit

Signed-off-by: Ivan Santiago Paunovic <ivanpauno@ekumenlabs.com>
@clalancette
Copy link
Contributor

This is looking good. However, there is enough change in here that I'll suggest a more thorough test before merging. I think we should run CI on all platforms and test with --packages-above rclpy just to make sure there isn't something else lurking out there.

@ivanpauno
Copy link
Member Author

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

@ivanpauno
Copy link
Member Author

@clalancette the failing windows build is due to a bug in rosbag (nightlies did fail too).
I think this is safe to merge now, it's highly unlikely that this behavior is platform dependent.

@ivanpauno ivanpauno changed the title Cleanup objects in test_qos_event between each test_case Destroy event handlers owned by publishers/subscriptions when calling publisher.destroy()/subscription.destroy() Jul 16, 2020
@ivanpauno ivanpauno merged commit 75c51c9 into master Jul 16, 2020
@delete-merged-branch delete-merged-branch bot deleted the ivanpauno/fix-test-qos-event branch July 16, 2020 20:42
@ivanpauno ivanpauno added this to Proposed in Foxy Patch Release 2 via automation Jul 16, 2020
@jacobperron jacobperron removed this from Proposed in Foxy Patch Release 2 Aug 5, 2020
@jacobperron jacobperron added this to Proposed in Foxy Patch Release 3 via automation Aug 5, 2020
@jacobperron jacobperron moved this from Proposed to To do in Foxy Patch Release 3 Aug 5, 2020
@jacobperron jacobperron moved this from To do to Needs backport in Foxy Patch Release 3 Aug 5, 2020
crystaldust pushed a commit to crystaldust/rclpy that referenced this pull request Sep 10, 2020
… publisher.destroy()/subscription.destroy() (ros2#603)

Signed-off-by: Ivan Santiago Paunovic <ivanpauno@ekumenlabs.com>
jacobperron pushed a commit that referenced this pull request Oct 1, 2020
… publisher.destroy()/subscription.destroy() (#603)

Signed-off-by: Ivan Santiago Paunovic <ivanpauno@ekumenlabs.com>
@jacobperron jacobperron removed this from Needs backport in Foxy Patch Release 3 Oct 1, 2020
jacobperron added a commit that referenced this pull request Nov 6, 2020
… publisher.destroy()/subscription.destroy() (#603) (#625)

Signed-off-by: Ivan Santiago Paunovic <ivanpauno@ekumenlabs.com>

Co-authored-by: Ivan Santiago Paunovic <ivanpauno@ekumenlabs.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working in review Waiting for review (Kanban column)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Regression on expected number of event handlers in test_qos_event
3 participants