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

Simplify the test_secure_subscriber code. (backport #471) #475

Merged
merged 1 commit into from May 20, 2021

Conversation

mergify[bot]
Copy link

@mergify mergify bot commented May 18, 2021

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


Mergify commands and options

More conditions and actions can be found in the documentation.

You can also trigger Mergify actions by commenting on this pull request:

  • @Mergifyio refresh will re-evaluate the rules
  • @Mergifyio rebase will rebase this PR on its base branch
  • @Mergifyio update will merge the base branch into this PR
  • @Mergifyio backport <destination> will backport this PR on <destination> branch

Additionally, on Mergify dashboard you can:

  • look at your merge queues
  • generate the Mergify configuration with the config editor.

Finally, you can contact us on https://mergify.io/

The main reason to do this is that we were sometimes running out
of memory on the buildfarm while building this code.  I suspect
that it is because of the templated attempt_subscriber() functions
that had to get expanded for quite a few different messages.
However, it turns out that we were only ever using 2 of those
messages in tests themselves.  Simplify this whole thing by
only creating templated functions for the messages we are
actually going to use.

Similarly, simplify the quite complicated CMake logic a bit to
only have a list of the messages that we are going to actually
use.  If we want to add more messages in the future, we can
always expand this list again.

Signed-off-by: Chris Lalancette <clalancette@openrobotics.org>
(cherry picked from commit 8fc14b4)
@clalancette
Copy link
Contributor

This will help prevent OOM errors on Galactic, like we see in https://ci.ros2.org/view/nightly/job/nightly_linux_galactic_coverage/26/ .

@clalancette
Copy link
Contributor

CI:

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

@clalancette
Copy link
Contributor

I'm going to go ahead and merge this one, as we don't release system_tests into the distributions. Hence, it will have no impact on binary Debian/RPM packages, and we already have green CI above.

@clalancette clalancette merged commit 80d4c7c into galactic May 20, 2021
@delete-merged-branch delete-merged-branch bot deleted the mergify/bp/galactic/pr-471 branch May 20, 2021 19:21
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.

None yet

2 participants