fix: enforce # <skip-jira-utils-check> on Jira lines in CodeRabbit config#5258
Conversation
|
Warning Ignoring CodeRabbit configuration file changes. For security, only the configuration from the base branch is applied for open source repositories. No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: ASSERTIVE Plan: Pro Run ID: 📒 Files selected for processing (2)
📝 WalkthroughWalkthroughThe PR extends the CodeRabbit "STP link required" custom check with a new HIGH-severity rule: any ChangesJira Skip-Marker Rule and Compliance Fix
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~3 minutes Possibly related PRs
Suggested reviewers
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Warning Review ran into problems🔥 ProblemsLinked repositories: Your configuration references 1 linked repositories, but your current plan allows 0. Analyzed ``, skipped Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
Report bugs in Issues Welcome! 🎉This pull request will be automatically processed with the following features: 🔄 Automatic Actions
📋 Available CommandsPR Status Management
Review & Approval
Testing & Validation
Container Operations
Cherry-pick Operations
Branch Management
Label Management
✅ Merge RequirementsThis PR will be automatically approved when the following conditions are met:
📊 Review ProcessApprovers and ReviewersApprovers:
Reviewers:
Available Labels
AI Features
Security Checks
💡 Tips
For more information, please refer to the project documentation or contact the maintainers. |
|
/lgtm |
…config Add instruction to .coderabbit.yaml STP link check that Jira: lines in test docstrings must include `# <skip-jira-utils-check>` inline comment so the jira-utils checker skips traceability references. Fix existing violation in test_vms_metrics.py. Closes: RedHatQE#5257 Signed-off-by: Ruth Netser <rnetser@redhat.com> Co-authored-by: Claude <noreply@anthropic.com>
710e386 to
e9c6bc8
Compare
|
Clean rebase detected — no code changes compared to previous head ( |
|
/approve |
Test execution plan request detailsCRITICAL: You MUST post an inline review comment on the first changed line of the first file. As an expert software testing engineer, analyze all modified files in this PR and create a targeted test execution plan. Analysis Requirements:
Output rules: Your deliverable: Test Execution Plan
Use these formats:
Real test commands (MANDATORY when changes affect session/runtime code): When the affected code runs at session/collection time (conftest fixtures, pytest plugins,
Example output for a session-startup fix: Guidelines:
Hardware-Related Checks (SR-IOV, GPU, DPDK): When PR modifies fixtures for hardware-specific resources:
CRITICAL WORKFLOW COMPLETION RULES: When responding to this test execution plan request, you MUST follow these rules EXACTLY:
ABSOLUTE PROHIBITIONS (violating these creates empty/meaningless reviews):
Remember: The pull request review is visible to users. Additional comments are redundant noise. CRITICAL — Verification rules for smoke and gating decisions: |
|
Tip For best results, initiate chat on the files or code changes. 🧩 Analysis chain🏁 Script executed: #!/bin/bash
# Get PR details to find first changed file and first changed line
gh pr view 5258 --repo RedHatQE/openshift-virtualization-tests --json files,headRefOid,baseRefOid
# Get the diff to find the position of the first changed line in .coderabbit.yaml
gh api repos/RedHatQE/openshift-virtualization-tests/pulls/5258/files | jq '.[0] | {filename, patch}'Length of output: 1791 🏁 Script executed: #!/bin/bash
# Post non-blocking inline review comment on the first changed line of .coderabbit.yaml
gh api repos/RedHatQE/openshift-virtualization-tests/pulls/5258/reviews \
--method POST \
--field commit_id="e9c6bc8eef52f24540b062bf798beaac6935d80e" \
--field event="COMMENT" \
--field body="" \
--field "comments[][path]=.coderabbit.yaml" \
--field "comments[][position]=5" \
--field "comments[][body]=**Test Execution Plan**
**Run smoke tests: False**
No smoke-marked tests are affected. The changes are a YAML config update (`.coderabbit.yaml`) and a docstring-only edit in a test file — no runtime code, fixtures, utilities, or conftest files were modified.
**Run gating tests: False**
No gating-marked tests are affected for the same reason.
**Affected tests to run**
- \`tests/observability/metrics/test_vms_metrics.py::TestVmiSyncTotal\` — docstring-only change (added \`# <skip-jira-utils-check>\` inline marker to \`Jira:\` line); no test logic changed, no cluster run required."Length of output: 2847 |
|
/approve |
|
New container for quay.io/openshift-cnv/openshift-virtualization-tests:latest published |
What this PR does / why we need it:
The project's jira-utils checker validates Jira IDs across the codebase. When test docstrings include
Jira:lines for traceability (not quarantine/xfail), those references trigger false positives unless they have a# <skip-jira-utils-check>inline comment.This PR:
.coderabbit.yaml"STP link required" custom check, so CodeRabbit flags anyJira:line in test docstrings that is missing# <skip-jira-utils-check>(HIGH severity). Only applies toJira:lines —STP:andRFE:lines are unaffected.tests/observability/metrics/test_vms_metrics.py.Which issue(s) this PR fixes:
Fixes #5257
Special notes for reviewer:
jira-ticket:
NONE
Co-authored-by: Claude noreply@anthropic.com
Summary by CodeRabbit