Expect event callbacks only for handlers that were created #3461
All Vouch review confidence checks passed
Residual risk 0.21 = Change Risk (0.40) × (1 − Review Confidence (0.47)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.40 · 167 lines diff across 2 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.02 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Shallow Review Depth
shallow_review_depth
0.344
Diff Size
diff_size
0.307
Ai Authored
ai_authored
0.050
Real PR Conversation Timeline
1 comments
"Review active on #3461"
general
weight: 0.35
jmachowinski
Description
disable_enable_event_callbacks (test_subscription) and disable_enable_subscription_event_callbacks (test_generic_pubsub), added in #2985, expect deadline and liveliness callbacks to run. rclcpp creates no handler for an event type the RMW doesn't support (bind_event_callbacks catches it and warns), so on such an RMW the count stays 0 and the test fails although enable/disable works. Expected counts now come from the handlers that exist; skip only if neither exists. This also drops the rmw_zenoh skip in test_generic_pubsub, since test_subscription runs the same body on Zenoh without one and passes.
The tests was added because I'm trying to make a new rmw (rmw_unix_socket_cpp) that doesn't support deadline pass the nightly tests, without adding a new if along the zenoh condition
Is this user-facing behavior change?
No (test only).
Did you use Generative AI?
Yes, Claude Code and I reviewed and tested it
.
Additional Information
Both tests pass with the change on Fast DDS, Cyclone DDS, rmw_zenoh_cpp (the generic one now runs instead of skipping) and rmw_unix_socket_cpp (0 deadline, 1 liveliness callback), tested on Lyrical (rclcpp 32.0.3, same test bodies as rolling).
Why not rmw_event_type_is_supported: rmw_zenoh answers "unsupported" but still creates the handlers, so its callbacks do run.