test(storage): add Jira requirement links to test docstrings - Pt. 1 #6969
All Vouch review confidence checks passed
Residual risk 0.23 = Change Risk (0.43) × (1 − Review Confidence (0.47)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.43 · 363 lines diff across 4 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
Diff Size
diff_size
0.353
Shallow Review Depth
shallow_review_depth
0.344
Real PR Conversation Timeline
1 comments
"Review active on #6969"
general
weight: 0.35
acinko-rh
##### What this PR does / why we need it:
Adds Jira requirement traceability to test function docstrings and moves
the Polarion test-case IDs there from their decorators:
Jira: https://redhat.atlassian.net/browse/<ID> # <skip-jira-utils-check>line(s) added to each test docstring (after any existingJira:lines, otherwise at the top). Skipped for tests whose own docstring already links an STP — the STP is that test's required traceability link, and the Jira line is the fallback for tests without one (unless the run used--no-skip-stp).@pytest.mark.polarion("CNV-XXXX")decorators into the docstring asPolarion: CNV-XXXXlines; the decorators are removed.#comments above the test body become docstring text, and single-line docstrings are expanded to multi-line.marks=pytest.mark.polarion(...)entries are stripped.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 the Jira requirement resolved from the test's Polarion linkage, or to its STP. 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:
##### 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
Tests
Updated test-case tracking references across storage and migration test coverage. Test behavior, parameters, fixtures, and assertions remain unchanged, so these updates do not change product functionality or affect the user experience.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->