Skip to content

Fix subscription content-filtering flakiness#1369

Merged
minggangw merged 6 commits into
RobotWebTools:developfrom
minggangw:fix-1368
Jan 14, 2026
Merged

Fix subscription content-filtering flakiness#1369
minggangw merged 6 commits into
RobotWebTools:developfrom
minggangw:fix-1368

Conversation

@minggangw

@minggangw minggangw commented Jan 14, 2026

Copy link
Copy Markdown
Member

This pull request fixes subscription content-filtering flakiness by addressing memory allocation bugs and improving error handling in the content filter operations.

Changes:

  • Fixed memory allocation size calculation from sizeof(char*) to sizeof(char) in CreateSubscription and SetContentFilter functions
  • Replaced macro-based error handling with explicit error checking and cleanup in SetContentFilter and ClearContentFilter
  • Added proper resource finalization calls for content filter options

Fix: #1368

Copilot AI review requested due to automatic review settings January 14, 2026 06:33

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This pull request fixes subscription content-filtering flakiness by addressing memory allocation bugs and improving error handling in the content filter operations.

Changes:

  • Fixed memory allocation size calculation from sizeof(char*) to sizeof(char) in CreateSubscription and SetContentFilter functions
  • Replaced macro-based error handling with explicit error checking and cleanup in SetContentFilter and ClearContentFilter
  • Added proper resource finalization calls for content filter options

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/rcl_subscription_bindings.cpp Outdated
Comment thread src/rcl_subscription_bindings.cpp Outdated
Comment thread src/rcl_subscription_bindings.cpp
Comment thread src/rcl_subscription_bindings.cpp
Comment thread src/rcl_subscription_bindings.cpp
Comment thread src/rcl_subscription_bindings.cpp
Comment thread src/rcl_subscription_bindings.cpp
Comment thread src/rcl_subscription_bindings.cpp
@coveralls

coveralls commented Jan 14, 2026

Copy link
Copy Markdown

Coverage Status

coverage: 80.626% (-0.02%) from 80.646%
when pulling c043b78 on minggangw:fix-1368
into b823a2d on RobotWebTools:develop.

@minggangw minggangw requested a review from Copilot January 14, 2026 08:08
@minggangw minggangw merged commit e01fbf7 into RobotWebTools:develop Jan 14, 2026
32 checks passed
minggangw added a commit that referenced this pull request Jan 22, 2026
This pull request fixes subscription content-filtering flakiness by addressing memory allocation bugs and improving error handling in the content filter operations.

**Changes:**
- Fixed memory allocation size calculation from `sizeof(char*)` to `sizeof(char)` in CreateSubscription and SetContentFilter functions
- Replaced macro-based error handling with explicit error checking and cleanup in SetContentFilter and ClearContentFilter
- Added proper resource finalization calls for content filter options

Fix: #1368
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.

Fix subscription content-filtering flakiness

3 participants