Release wait sets and clients that the tests leak #3455
All Vouch review confidence checks passed
Residual risk 0.17 = Change Risk (0.33) × (1 − Review Confidence (0.47)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.33 · 139 lines diff across 1 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.296
Real PR Conversation Timeline
1 comments
"Review active on #3455"
general
weight: 0.35
mjcarroll
Description
Several tests leak rcl objects, which LeakSanitizer reports:
test_graph_listener: five tests callinit_wait_set()through the test helper and never finalize the wait set. They now callmock_cleanup_wait_set()at the end, like the other tests in that file.test_graph_listener_shutdown_wait_fini_error_throwstarted the fixture's listener but cleaned up a different, unused one, so it now uses the one it starts.rclcpp_actionTestClient.is_readyandTestGenericClient.is_readynever callrcl_wait_set_fini()on the wait set they create.TestClient.construction_and_destruction_rcl_errorsreplacedrcl_action_client_fini()with a function that only returns an error, so the client was never finalized. It usesinject_on_returnnow, which calls the real function first.Test only. Found with AddressSanitizer, which is clean for these three targets after the change.
Is this user-facing behavior change?
No.
Did you use Generative AI?
Yes, Claude Code, for finding the causes and writing the change. Tested with AddressSanitizer.
Additional Information