← Back to Pull requests

Add STD placeholders for has_panic_device metric label coverage #6850

Open
unknown opened this pull request with 176 lines diff across 2 files
View on GitHub
unknown unknown commented on Nov 08, 2026 12:54 UTC
Author

##### What this PR does / why we need it:
CNV-95849 adds a has_panic_device label ("true"/"false") to the kubevirt_vmi_info metric so admins can spot Windows VMs missing a pvpanic device needed for BSOD reporting (kubevirt/kubevirt#19470). This PR adds 2 STD placeholder tests (docstring-only, __test__ = False) covering the true/false label values for a Linux VM with a panic device and a Windows VM without one, per this repo's STD-first workflow. No implementation yet.

##### Which issue(s) this PR fixes:

##### Special notes for reviewer:
No STP exists for this scenario, so both placeholders use the Jira: fallback traceability line. Polarion IDs are not yet available and will be added before/at implementation time.

##### jira-ticket:
https://redhat.atlassian.net/browse/CNV-95849

<!-- This is an auto-generated comment: release notes by coderabbit.ai -->
<!-- coderabbit-ai-generated:v1 -->

Summary by CodeRabbit

Tests
Added manual examples documenting the expected panic-device metric label for Linux and Windows virtual machines: "true" when a panic device is configured and "false" when one is absent.
* The examples are excluded from test collection and contain no executable query steps or assertions. They document expected metric behavior and do not change application runtime behavior.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->

Diff: 176 lines (+132 / -44) across 2 files Reviewer: hmeir Review duration: 32510m
All Vouch review confidence checks passed
Residual risk 0.22 = 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 · 176 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.310
Ai Authored ai_authored
0.050
Real PR Conversation Timeline
1 comments
"Review active on #6850"
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.4% (MEDIUM) · Higher = larger blast radius
40.4%
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.5% · Safe to merge
21.5%