[Storage] Fix names in the hotplug module#5300
Conversation
Signed-off-by: Adam Cinko <acinko@redhat.com>
📝 WalkthroughWalkthroughWindows hotplug tests in ChangesWindows Hotplug Fixture Rewire
Estimated code review effort🎯 2 (Simple) | ⏱️ ~8 minutes Possibly related PRs
Suggested reviewers
Caution Pre-merge checks failedPlease resolve all errors before merging. Addressing warnings is optional.
❌ Failed checks (1 error)
✅ Passed checks (4 passed)
✨ 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. |
|
/build-and-push-container |
|
New container for quay.io/openshift-cnv/openshift-virtualization-tests:pr-5300 published |
|
/verified All tests passed for PR #5300. Execution details |
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: |
| @@ -63,12 +63,15 @@ def enabled_feature_gate_for_declarative_hotplug_volumes( | |||
|
|
|||
| @pytest.fixture(scope="class") | |||
| def hotplug_volume_windows_scope_class( | |||
There was a problem hiding this comment.
Test Execution Plan
Run smoke tests: False
No smoke-marked tests in tests/storage/test_hotplug.py use the modified fixtures (hotplug_volume_windows_scope_class, windows_dv_template_from_registry_scope_class, vm_instance_from_instance_type_multi_storage_scope_class).
Run gating tests: False
Gating-marked classes (TestHotPlugWithPersist, TestHotPlugWithSerialPersist) depend on hotplug_volume_scope_class — not the modified Windows fixtures.
Affected tests to run
tests/storage/test_hotplug.py::TestHotPlugWindows
The renamed/rewired fixtures feed exclusively into TestHotPlugWindows. Run:
pytest -s tests/storage/test_hotplug.py -k TestHotPlugWindows|
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 5300 --repo RedHatQE/openshift-virtualization-tests | head -60
# Check for smoke/gating markers in test_hotplug.py
rg '`@pytest.mark.smoke`|`@pytest.mark.gating`' tests/storage/test_hotplug.py -n
# Check smoke/gating across the repo for reference
rg -l '`@pytest.mark.smoke`' tests/ | head -20
rg -l '`@pytest.mark.gating`' tests/ | head -20Length of output: 4391 🏁 Script executed: #!/bin/bash
# Get the PR head commit SHA
gh pr view 5300 --repo RedHatQE/openshift-virtualization-tests --json headRefOid -q '.headRefOid'
# Get smoke and gating test names in test_hotplug.py
rg '`@pytest.mark.smoke`|`@pytest.mark.gating`' tests/storage/test_hotplug.py -n -A2
# Check which class the gating tests belong to
sed -n '180,245p' tests/storage/test_hotplug.pyLength of output: 3262 🏁 Script executed: #!/bin/bash
# Check smoke markers specifically in test_hotplug.py
rg '`@pytest.mark.smoke`' tests/storage/test_hotplug.py -n -A3
# Look at TestHotPlugWindows class definition and its fixtures
sed -n '275,320p' tests/storage/test_hotplug.py
# Post the inline review comment on first changed line (line 65 of new file)
COMMIT_SHA="ae82538a733130351fe2d40a3773dcf092991bcc"
COMMENT_BODY="## Test Execution Plan
**Run smoke tests: False**
No smoke-marked tests in \`tests/storage/test_hotplug.py\` use the modified fixtures (\`hotplug_volume_windows_scope_class\`, \`windows_dv_template_from_registry_scope_class\`, \`vm_instance_from_instance_type_multi_storage_scope_class\`).
**Run gating tests: False**
Gating-marked classes (\`TestHotPlugWithPersist\`, \`TestHotPlugWithSerialPersist\`) depend on \`hotplug_volume_scope_class\` — not the modified Windows fixtures.
**Affected tests to run**
\`\`\`
tests/storage/test_hotplug.py::TestHotPlugWindows
\`\`\`
The renamed/rewired fixtures feed exclusively into \`TestHotPlugWindows\`. Run:
\`\`\`bash
pytest -s tests/storage/test_hotplug.py -k TestHotPlugWindows
\`\`\`"
gh api \
--method POST \
repos/RedHatQE/openshift-virtualization-tests/pulls/5300/reviews \
--field commit_id="$COMMIT_SHA" \
--field event="COMMENT" \
--field body="" \
--field "comments[][path]=tests/storage/test_hotplug.py" \
--field "comments[][line]=65" \
--field "comments[][side]=RIGHT" \
--field "comments[][body]=$COMMENT_BODY"Length of output: 4848 |
|
/lgtm |
|
/retest all Auto-triggered: Files in this PR were modified by merged PR #5320. Overlapping filestests/storage/test_hotplug.py |
|
/lgtm |
|
/lgtm |
|
/retest all Auto-triggered: Files in this PR were modified by merged PR #5606. Overlapping filestests/storage/test_hotplug.py |
|
/retest all Auto-triggered: Files in this PR were modified by merged PR #4571. Overlapping filestests/storage/test_hotplug.py |
What this PR does / why we need it:
Reviewers asked to change the names of fixtures/functions in the hotplug module to reflect the reality.
Which issue(s) this PR fixes:
https://redhat.atlassian.net/browse/CNV-51351
#4844 (comment)
#4844 (comment)
Special notes for reviewer:
jira-ticket:
Summary by CodeRabbit