← Back to Pull requests

[IUO] add Jira requirement links to test docstrings #6935

Closed
unknown closed this pull request without merging on Nov 26, 2026 14:00 UTC
View on GitHub
unknown unknown commented on Nov 18, 2026 07:30 UTC
Author

##### What this PR does / why we need it:
Adds Jira requirement traceability lines to test function docstrings:

  • Jira: https://redhat.atlassian.net/browse/<ID> # <skip-jira-utils-check> line(s) added to each test docstring (after any existing Jira: lines, otherwise at the top).

  • Polarion test-case IDs move from @pytest.mark.polarion("CNV-XXXX") decorators into the docstring as Polarion: CNV-XXXX lines; the decorators are removed.

  • Tests without a docstring get one: leading # comments above the test body become docstring text, and single-line docstrings are expanded to multi-line.

  • Polarion markers removed from parametrize decorators keep their parameters; only the marks=pytest.mark.polarion(...) entries are stripped.

  • Unused imports left behind by the marker removal (e.g. pytest) are cleaned up by the repo's pre-commit hooks (ruff).
  • Test-to-requirement traceability now lives in the code itself (code-first test management): each test links directly to its Jira requirement, resolved from the test's Polarion linkage. Polarion IDs are kept in the docstring so the existing Polarion linkage stays visible during the migration.

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

    ##### Special notes for reviewer:

  • 67 test files changed

  • Jira links added: CNV-10844, CNV-11483, CNV-11498, CNV-11790, CNV-12232, CNV-13528, CNV-13992, CNV-14597, CNV-15392, CNV-15705, CNV-19733, CNV-19947, CNV-23187, CNV-24934, CNV-28605, CNV-29382, CNV-4747, CNV-4748, CNV-4834, CNV-5128, CNV-5163, CNV-5267, CNV-53950, CNV-54933, CNV-5810, CNV-60341, CNV-61452, CNV-6347, CNV-64119, CNV-7261, CNV-76378, CNV-8296, CNV-8762, CNV-9096, KNIP-1123, KNIP-1206, KNIP-1218, KNIP-264

  • Existing docstring text is preserved (only reflowed when a docstring is created or expanded to multi-line).

  • Test behavior is unchanged — docstrings and decorators only.
  • ##### jira-ticket:
    NONE
    <!-- This PR is not tracked by a single Jira ticket — it adds requirement links to many Jiras; the requirement links live in the test docstrings. -->

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

    Summary by CodeRabbit

    Documentation
    Updated test descriptions with Jira and Polarion references across installation, upgrade, security, configuration, and diagnostic coverage.
    * Test scenarios, assertions, and execution behavior remain unchanged.
    <!-- end of auto-generated comment: release notes by coderabbit.ai -->

    Diff: 310 lines (+232 / -78) across 3 files Reviewer: hmeir Review duration: 11909m
    All Vouch review confidence checks passed
    Residual risk 0.16 = Change Risk (0.40) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.40 · 310 lines diff across 3 files
    0.40
    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%
    60%
    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.343
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #6935"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 60.5% 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.3% (MEDIUM) · Higher = larger blast radius
    40.3%
    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: 60.5% · Lower = rushed or shallow review
    60.5%
    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: 15.9% · Safe to merge
    15.9%