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

avoid adding notify waitable twice to events-executor collection #2564

Merged
merged 2 commits into from
Jun 29, 2024

Conversation

alsora
Copy link
Collaborator

@alsora alsora commented Jun 19, 2024

This PR fixes a bug noticed by @wjwwood as part of his PR here

We don't need to add the notify waitable to the current entities collection list there, because it has already been added in the constructor.
The PR includes a unit-test that would detect bugs if the constructor insertion was removed.

@alsora alsora changed the title avoid adding notify waitable twice to events-executor entities collec… avoid adding notify waitable twice to events-executor collection Jun 19, 2024
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 green CI

@alsora
Copy link
Collaborator Author

alsora commented Jun 21, 2024

CI:

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

Signed-off-by: Alberto Soragna <[email protected]>
Copy link
Collaborator

@fujitatomoya fujitatomoya 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 green CI

@alsora
Copy link
Collaborator Author

alsora commented Jun 22, 2024

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

@alsora
Copy link
Collaborator Author

alsora commented Jun 24, 2024

  • Linux-rhel Build Status

@alsora
Copy link
Collaborator Author

alsora commented Jun 28, 2024

The linux-rhel failure in test_tracetools.test_tracetools.test.test_generic_pub_sub.TestGenericPubSub.test_all (from pytest) seems unrelated.
But triggering another time just in case.

  • Linux-rhel Build Status

EDIT: try again, although this seems very flaky

  • Linux-rhel Build Status

@alsora
Copy link
Collaborator Author

alsora commented Jun 29, 2024

Merging with green CI.
The instability of Linux Rhel seems unrelated to the changes here

@alsora alsora merged commit 8de4b90 into rolling Jun 29, 2024
3 checks passed
@alsora alsora deleted the asoragna/events-executor-notify-waitable branch June 29, 2024 21:55
apojomovsky pushed a commit to apojomovsky/rclcpp that referenced this pull request Jul 8, 2024
…2#2564)

* avoid adding notify waitable twice to events-executor entities collection

Signed-off-by: Alberto Soragna <[email protected]>

* remove redundant mutex lock

Signed-off-by: Alberto Soragna <[email protected]>

---------

Signed-off-by: Alberto Soragna <[email protected]>
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.

4 participants