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

fix events-executor warm-up bug and add unit-tests (backport #2591) #2625

Closed
wants to merge 1 commit into from

Conversation

mergify[bot]
Copy link
Contributor

@mergify mergify bot commented Sep 11, 2024

Wrote a test to verify the behavior of spin_all, that should collect work multiple times (if given enough duration) and this should allow to also get work from entities created after the node / cb group was added to the executor.

See #2589 for details


This is an automatic backport of pull request #2591 done by Mergify.

* add unit-test to verify that spin-all doesn't need warm-up

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

* improve comment and add callback group test

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

* move executor tests to a new file

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

* do not require warm up iteration with events executor spin_some

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

* add spin_some tests and cleanup

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

* add missing include directives

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

---------

Signed-off-by: Alberto Soragna <[email protected]>
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
(cherry picked from commit f7056c0)

# Conflicts:
#	rclcpp/src/rclcpp/experimental/executors/events_executor/events_executor.cpp
Copy link
Contributor Author

mergify bot commented Sep 11, 2024

Cherry-pick of f7056c0 has failed:

On branch mergify/bp/jazzy/pr-2591
Your branch is up to date with 'origin/jazzy'.

You are currently cherry-picking commit f7056c0d.
  (fix conflicts and run "git cherry-pick --continue")
  (use "git cherry-pick --skip" to skip this patch)
  (use "git cherry-pick --abort" to cancel the cherry-pick operation)

Changes to be committed:
	modified:   rclcpp/test/rclcpp/CMakeLists.txt
	new file:   rclcpp/test/rclcpp/executors/test_executors_warmup.cpp

Unmerged paths:
  (use "git add <file>..." to mark resolution)
	both modified:   rclcpp/src/rclcpp/experimental/executors/events_executor/events_executor.cpp

To fix up this pull request, you can check it out locally. See documentation: https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/reviewing-changes-in-pull-requests/checking-out-pull-requests-locally

@ahcorde
Copy link
Contributor

ahcorde commented Sep 13, 2024

Replaced by #2628

@ahcorde ahcorde closed this Sep 13, 2024
@mergify mergify bot deleted the mergify/bp/jazzy/pr-2591 branch September 13, 2024 08:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants