[Storage] Add Velero backup hooks opt-out tests#5478
Conversation
Signed-off-by: Emanuele Prella <eprella@redhat.com>
📝 WalkthroughWalkthroughThis PR adds Velero backup "hooks opt-out" test coverage: a new annotation constant, three fixtures to provision/backup/restore an annotated RHEL VM, a utility function to fetch Velero backup pod logs, and updated tests asserting freeze-hook log entries are absent for paused-VM backup and full backup/restore cycles. ChangesVelero hooks opt-out feature
Estimated code review effort: 3 (Moderate) | ~20 minutes Possibly related PRs
Suggested labels: Suggested reviewers: 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 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
Custom Commands
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. |
|
/wip |
…tions and parameters Signed-off-by: Emanuele Prella <eprella@redhat.com>
|
/wip cancel |
|
/build-and-push-container |
|
New container for quay.io/openshift-cnv/openshift-virtualization-tests:pr-5478 published |
|
/verified All tests passed for PR #5478. 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: |
|
Tip For best results, initiate chat on the files or code changes. 🧩 Analysis chain🏁 Script executed: #!/bin/bash
set -euo pipefail
echo "== smoke marked tests in repo =="
rg -l '`@pytest.mark.smoke`' tests/ | head -50 || true
echo "== gating marked tests in repo =="
rg -l '`@pytest.mark.gating`' tests/ | head -50 || true
echo "== oadp dir markers =="
rg -n 'pytestmark|`@pytest.mark`' tests/data_protection/oadp/test_velero_backup_hooks.py
echo "== usages of SKIP_BACKUP_HOOKS_ANNOTATION =="
rg -n 'SKIP_BACKUP_HOOKS_ANNOTATION' -r . 2>/dev/null
echo "== usages of get_velero_backup_logs =="
rg -n 'get_velero_backup_logs' -r .
echo "== conftest.py in oadp dir and parents =="
fd conftest.py tests/data_protection
echo "== full new/changed conftest fixtures =="
cat -n tests/data_protection/oadp/conftest.pyLength of output: 4722 🏁 Script executed: #!/bin/bash
set -euo pipefail
echo "== usages of SKIP_BACKUP_HOOKS_ANNOTATION =="
rg -n 'SKIP_BACKUP_HOOKS_ANNOTATION' .
echo "== usages of get_velero_backup_logs =="
rg -n 'get_velero_backup_logs' .
echo "== conftest.py content =="
cat -n tests/data_protection/oadp/conftest.py
echo "== test_velero_backup_hooks.py content =="
cat -n tests/data_protection/oadp/test_velero_backup_hooks.py
echo "== utils.py content =="
cat -n tests/data_protection/oadp/utils.py
echo "== oadp constants file =="
cat -n utilities/constants/oadp.py
echo "== any smoke/gating in data_protection dir =="
rg -n '`@pytest.mark`.(smoke|gating)' tests/data_protection || echo "none"Length of output: 24677
Test Execution Plan
Since the change is confined to a new OADP test module ( |
Signed-off-by: Emanuele Prella eprella@redhat.com
What this PR does / why we need it:
Implementing automation for "Remove pre and post hook velero annotations from virt-launcher"
Which issue(s) this PR fixes:
https://redhat.atlassian.net/browse/CNV-85597
Special notes for reviewer:
Assysted by Quality Flow AI Tool
jira-ticket:
https://redhat.atlassian.net/browse/CNV-88655
Summary by CodeRabbit
New Features
Tests