← Back to Pull requests

Skip test_ros2trace's post-clear snapshot check with LTTng 2.14.0-2.14.2 #283

Closed
unknown closed this pull request without merging on Nov 18, 2026 21:42 UTC
View on GitHub
unknown unknown commented on Nov 18, 2026 01:30 UTC
Author

Description

With lttng-tools 2.14.0 to 2.14.2, recording a snapshot right after clearing a stopped snapshot session fails with "Snapshot record failed", since the consumer daemon no longer flushes an empty packet into the buffer before taking the snapshot. This was introduced by https://github.com/lttng/lttng-tools/commit/3b2a7c81a0db4006478819d65ebcce390a6afb7b and fixed in lttng-tools 2.14.3 by
https://github.com/lttng/lttng-tools/commit/46c72156526a1c5e279d0dbdfac59a91dd9ced10. 2.15.0 and later also have the fix. Ubuntu 26.04 has lttng-tools 2.14.1.

ros2 trace record_snapshot clears the session after recording the snapshot, so the second record_snapshot in
test_snapshot_start_pause_resume_stop fails with those versions. Skip that check if the lttng-ctl version is in that range. Also add the python3-packaging test dependency, since the test now uses it directly.

Is this user-facing behavior change?

No, it only affects a test in a test-only (not distributed) package.

Did you use Generative AI?

I only used Claude Opus 5.5 to run tests against a bunch of versions of LTTng. I implemented the fix myself.

Additional Information

Backport to Lyrical.

Diff: 151 lines (+113 / -38) across 1 files Reviewer: mjcarroll Review duration: 1212m
All Vouch review confidence checks passed
Residual risk 0.14 = Change Risk (0.33) × (1 − Review Confidence (0.57)). Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.33 · 151 lines diff across 1 files
0.33
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
0.17
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
56%
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
Diff Size diff_size
0.301
Shallow Review Depth shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #283"
general weight: 0.35
Reviewers
Assignees
Unassigned
Labels
risk: low confidence: 56.8% 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: 33% (LOW) · Higher = larger blast radius
33%
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: 56.8% · Lower = rushed or shallow review
56.8%
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: 14.3% · Safe to merge
14.3%