Skip to content

Return strings from test plugins instead of printing - #237

Merged
mjcarroll merged 1 commit into
rollingfrom
mjcarroll/quiet-test-plugins
Nov 2, 2026
Merged

mjcarroll merged 1 commit into
rollingfrom
mjcarroll/quiet-test-plugins

Conversation

@mjcarroll

@mjcarroll mjcarroll commented Nov 2, 2026 •

Copy link
Copy Markdown
Member

#LessIsMore lets kill another 5k lines of log messages in CI.

The test plugins' saySomething() printed an animal noise to stdout on every call, so a single CI run prints ~5k lines of Meow / Bark / Quack / Moooo / Baaah.

This changes Base::saySomething() to return a std::string instead of printing. The tests still call into the loaded plugin code, just without the console noise. Callers are unchanged.

The test plugins' saySomething() printed an animal noise to stdout on every
call. The stress tests call it from 500 threads each, producing ~5k lines of
Meow/Bark/Quack per CI run. Return the string instead so the tests still call
into the loaded plugin code without the console noise.

Signed-off-by: Michael Carroll <mjcarroll.oss@gmail.com>
@mjcarroll
mjcarroll force-pushed the mjcarroll/quiet-test-plugins branch from 3d30820 to 686f72a Compare November 2, 2026 19:11
@mjcarroll

Copy link
Copy Markdown
Member Author

Pulls: #237
Gist: https://gist.githubusercontent.com/mjcarroll/87422cba04fda54c9e74a19cff133b16/raw/4b734f3d1bb414eae286134dd24d50fe459bbf2b/ros2.repos
BUILD args: --packages-up-to class_loader
TEST args: --packages-select class_loader
ROS Distro: rolling
Job: ci_launcher
ci_launcher ran: https://ci.ros2.org/job/ci_launcher/20970

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

@mjcarroll
mjcarroll marked this pull request as ready for review November 2, 2026 20:00
@mjcarroll

Copy link
Copy Markdown
Member Author

Supercedes #232

@mjcarroll
mjcarroll merged commit 2bc8929 into rolling Nov 2, 2026
4 checks passed
@mjcarroll
mjcarroll deleted the mjcarroll/quiet-test-plugins branch November 2, 2026 20:04
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.

3 participants