Skip to content

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

Closed
mergify[bot] wants to merge 1 commit intojazzyfrom
mergify/bp/jazzy/pr-2591
Closed

fix events-executor warm-up bug and add unit-tests (backport #2591)#2625
mergify[bot] wants to merge 1 commit intojazzyfrom
mergify/bp/jazzy/pr-2591

Conversation

@mergify
Copy link
Copy Markdown
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 <alberto.soragna@gmail.com>

* improve comment and add callback group test

Signed-off-by: Alberto Soragna <alberto.soragna@gmail.com>

* move executor tests to a new file

Signed-off-by: Alberto Soragna <alberto.soragna@gmail.com>

* do not require warm up iteration with events executor spin_some

Signed-off-by: Alberto Soragna <alberto.soragna@gmail.com>

* add spin_some tests and cleanup

Signed-off-by: Alberto Soragna <alberto.soragna@gmail.com>

* add missing include directives

Signed-off-by: Alberto Soragna <alberto.soragna@gmail.com>

---------

Signed-off-by: Alberto Soragna <alberto.soragna@gmail.com>
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
@mergify
Copy link
Copy Markdown
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
Copy Markdown
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