CherryPicked: [cnv-4.21] [Storage ]Refactor and Unquarantine test test_successful_concurrent_blank_disk_import to set sequential creation of DVs and VMs#3935
Conversation
…lank_disk_import to set sequential creation of DVs and VMs (#3750) ##### Short description: Unquarantine and Refactor the test **test_successful_concurrent_blank_disk_import** in order to remove multithreading creation of DVs and VMs in order to reduce automation issues associated with it. ##### More details: Change in DVs and VMs creations in conftest.py / Unquarantine test. The test flakes on waiting for a process to finish even though all expected resources have already been created. It also requires continuous maintenance whenever python version or infrastructure changes. We want to reduce test framework's dependency and focus on validating test objectives. ##### What this PR does / why we need it: ##### Which issue(s) this PR fixes: ##### Special notes for reviewer: PR assisted by Cursor AI ##### jira-ticket: https://issues.redhat.com/browse/CNV-75838 <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Tests** * Converted storage import tests from concurrent/multiprocess execution to strictly sequential creation, deploy/start, and per-object cleanup. * Renamed fixtures and test parameters to reflect sequential "blank disk" resources and updated test signatures and iterations. * Removed an expected-failure marker on a certificate-configuration test so it now runs normally. * **Chores** * Removed multiprocessing helper utilities and related synchronization/cleanup behavior from the test suite. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
|
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
💡 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-3935 published |
|
/approve |
|
/verified
Jenkins job: https://jenkins-csb-cnvqe-main.dno.corp.redhat.com/job/openshift-virtualization-tests-runner/4528/ |
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:
Your deliverable: Test Execution Plan
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: Before setting "Run smoke tests: True", you MUST use shell scripts to: |
| CDI Import | ||
| """ | ||
|
|
||
| import gc |
There was a problem hiding this comment.
Test Execution Plan
Run smoke tests: False
Rationale: The changed fixtures (created_blank_dv_list, created_vm_list) are only used by test_successful_concurrent_blank_disk_import, which is not a smoke test. The smoke test in this file (CNV-784) uses different fixtures and is not affected by these changes.
Tests to Execute:
tests/storage/cdi_import/test_import_http.py::test_successful_concurrent_blank_disk_import- CRITICAL: This test was unquarantined and refactored from parallel/multiprocess to sequential DV/VM creation. Must verify the sequential approach works correctly with the storage class matrix.
Test Execution Context:
- Use storage class matrix as verified by PR author:
--storage-class-matrix=ocs-storagecluster-ceph-rbd-virtualization,hostpath-csi-pvc-block - Verify sequential creation of 4 DVs and 4 VMs completes successfully
- Verify all VMs reach running state
|
Tip For best results, initiate chat on the files or code changes. 🧩 Analysis chain🏁 Script executed: Length of output: 7419 🏁 Script executed: Length of output: 104 🏁 Script executed: Length of output: 407 🏁 Script executed: Length of output: 233 🏁 Script executed: Length of output: 59 🏁 Script executed: Length of output: 635 🏁 Script executed: Length of output: 0 🏁 Script executed: Length of output: 40 🏁 Script executed: Length of output: 2331 🏁 Script executed: Length of output: 1735 🧠 Learnings used |
|
/approve |
cherry-pick #3750 into cnv-4.21
requested-by josemacassan