← Back to Pull requests

Expect event callbacks only for handlers that were created #3461

Open
unknown opened this pull request with 167 lines diff across 2 files
View on GitHub
unknown unknown commented on Dec 01, 2026 14:15 UTC
Author

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.

Diff: 167 lines (+125 / -42) across 2 files Reviewer: jmachowinski Review duration: 471m
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
0.40
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.02 · 1 substantive comment(s)
0.02
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
46%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq
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
Reviewers
Assignees
Unassigned
Labels
risk: low confidence: 46.7% reviewed
Vouch Risk Breakdown
AI-powered review risk analysis
Change Risk
Change Risk · Model 1 (XGBoost)
Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
Score: 40.1% (MEDIUM) · Higher = larger blast radius
40.1%
Review Confidence
Review Confidence · Models 2 & 3
Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
Score: 46.7% · Lower = rushed or shallow review
46.7%
Residual Risk
Residual Risk · Core Equation
Residual = Change × (1 − Confidence)
Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
Score: 21.4% · Safe to merge
21.4%
Repository