infra: Remove basic preference tests for centos#5154
Conversation
Signed-off-by: rkishner <rkishner@redhat.com>
Qodo reviews are paused for this user.Troubleshooting steps vary by plan Learn more → On a Teams plan? Using GitHub Enterprise Server, GitLab Self-Managed, or Bitbucket Data Center? |
|
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
Label Management
✅ Merge RequirementsThis PR will be automatically approved when the following conditions are met:
📊 Review ProcessApprovers and ReviewersApprovers:
Reviewers:
Available Labels
AI Features
💡 Tips
For more information, please refer to the project documentation or contact the maintainers. |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
💤 Files with no reviewable changes (1)
Summary by CodeRabbit
WalkthroughThis PR updates the test parametrization for VM preference testing by replacing the ChangesTest Parameter Update
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~3 minutes Possibly related issues
Suggested labels
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)
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 |
|
/verified |
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 the PR diff to find the first changed line
gh pr diff 5154 --repo RedHatQE/openshift-virtualization-tests
# Check if modified file has smoke or gating markers
echo "=== Checking for smoke/gating markers in modified file ==="
rg '`@pytest.mark.smoke`|`@pytest.mark.gating`' tests/infrastructure/instance_types/test_common_vm_preference.py
echo "=== Check for smoke markers in instance_types directory ==="
rg -l '`@pytest.mark.smoke`' tests/infrastructure/instance_types/
echo "=== Check for gating markers in instance_types directory ==="
rg -l '`@pytest.mark.gating`' tests/infrastructure/instance_types/
echo "=== Get file content around changed lines ==="
cat tests/infrastructure/instance_types/test_common_vm_preference.py
echo "=== Get PR files changed and line numbers ==="
gh api repos/RedHatQE/openshift-virtualization-tests/pulls/5154/files --jq '.[] | {filename: .filename, patch: .patch}'Length of output: 8098 🏁 Script executed: #!/bin/bash
# Get PR head SHA
HEAD_SHA=$(gh api repos/RedHatQE/openshift-virtualization-tests/pulls/5154 --jq '.head.sha')
echo "Head SHA: $HEAD_SHA"
# Post inline review comment at the first changed (deleted) line - patch position 4
gh api \
repos/RedHatQE/openshift-virtualization-tests/pulls/5154/reviews \
--method POST \
--field event="COMMENT" \
--field commit_id="$HEAD_SHA" \
--field body="" \
--field "comments[][path]=tests/infrastructure/instance_types/test_common_vm_preference.py" \
--field "comments[][position]=4" \
--field "comments[][body]=**Test Execution Plan**
**Run smoke tests: False**
No traced dependency path — the removed \`centos\` parametrize entry belongs to \`TestCommonVmPreference::test_common_vm_preference_linux\` (marked \`@pytest.mark.tier3\`), which has no connection to any smoke-marked test.
**Run gating tests: False**
The \`@pytest.mark.gating\` test in this file (\`test_common_preferences_vendor_labels\`) is unaffected — it tests vendor labels on all cluster preferences and has no dependency on the centos parametrize entry being removed.
**Affected tests to run**
The only affected test is the one being removed:
- \`tests/infrastructure/instance_types/test_common_vm_preference.py::TestCommonVmPreference::test_common_vm_preference_linux[centos]\` (tier3) — **deleted**, no longer needs to be run.
No regression risk from this change. CentOS coverage continues via \`tests/infrastructure/instance_types/supported_os/test_centos_os.py\`."Length of output: 3342 |
|
/retest all Auto-triggered: Files in this PR were modified by merged PR #5152. Overlapping filestests/infrastructure/instance_types/test_common_vm_preference.py |
| marks=pytest.mark.polarion("CNV-9895"), | ||
| ), | ||
| pytest.param( | ||
| "centos", |
There was a problem hiding this comment.
felt it's worth keeping because we don't check desktop versions anywhere else .
There was a problem hiding this comment.
Acknowledged. closing the PR
What this PR does / why we need it:
Remove tier3 tests for centos preference - the centos tests are covered by tests/infrastructure/instance_types/supported_os/test_centos_os.py.
Which issue(s) this PR fixes:
Reduce test run time and repetitive coverage
Special notes for reviewer:
The RHEL test also have RHEL-7 which prevents from those tests to be removed, this would take some investigation to how we can remove those as well.
jira-ticket:
NONE