fix: use architecture-aware RHEL preference in snapshot fixtures#4866
Conversation
|
Warning Review limit reached
More reviews will be available in 59 minutes and 59 seconds. Learn how PR review limits work. Your organization has run out of usage credits. Purchase more in the billing tab. ⌛ How to resolve this issue?After more reviews become available, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans include higher PR review limits than trial, open-source, and free plans. In all cases, reviews become available again over time. During sustained high-volume PR review activity, CodeRabbit may temporarily slow when the next review becomes available. Please see our Fair Usage Limits Policy for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: ASSERTIVE Plan: Pro Run ID: 📒 Files selected for processing (4)
📝 WalkthroughWalkthroughAdd a session-scoped ChangesLatest RHEL Fixture Configuration
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Possibly related PRs
Suggested labels
Suggested reviewers
✨ 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 |
|
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. |
|
/lgtm |
|
Clean rebase detected — no code changes compared to previous head ( |
a4978d3 to
92746ba
Compare
|
Clean rebase detected — no code changes compared to previous head ( |
|
Clean rebase detected — no code changes compared to previous head ( |
3b7e4a8 to
7e532ce
Compare
|
Clean rebase detected — no code changes compared to previous head ( |
|
Clean rebase detected — no code changes compared to previous head ( |
|
/retest all Auto-triggered: Files in this PR were modified by merged PR #4856. Overlapping filestests/conftest.py |
|
/retest all Auto-triggered: Files in this PR were modified by merged PR #4896. Overlapping filestests/conftest.py |
|
/approve |
|
/retest all Auto-triggered: Files in this PR were modified by merged PR #4934. Overlapping filestests/conftest.py |
The rhel_vm_for_snapshot and rhel_vm_for_snapshot_with_content fixtures hardcode RHEL10_PREFERENCE which enables SecureBoot. On s390x, SecureBoot is unsupported (no EFI OVMF ROMs), causing VM boot failures. Replace hardcoded RHEL10 preference and data source with dynamic lookup via py_config["latest_instance_type_rhel_os_dict"], which resolves to RHEL9 on s390x (no SecureBoot) and RHEL10 on amd64/arm64. Add latest_rhel_data_source_scope_session fixture to tests/conftest.py that dynamically selects the data source based on architecture. Signed-off-by: Jathavedhan M <jathavedhan.m@ibm.com> Co-authored-by: Alexander Mamani Yucra <alexander.mamani@ibm.com>
|
/approve |
|
/retest all Auto-triggered: Files in this PR were modified by merged PR #4985. Overlapping filestests/conftest.py |
|
/retest all Auto-triggered: Files in this PR were modified by merged PR #5099. Overlapping filestests/storage/conftest.py |
Short description: Use architecture-aware RHEL preference in snapshot and vmexport fixtures
More details:
The
rhel_vm_for_snapshotandrhel_vm_for_snapshot_with_contentfixtures hardcodeRHEL10_PREFERENCE, which enables SecureBoot. On s390x, SecureBoot is unsupported (no EFI OVMF ROMs), causing VM boot failures. The codebase already handles this via per-architecture global configs -- these fixtures were bypassing that.What this PR does / why we need it:
py_config["latest_instance_type_rhel_os_dict"]latest_rhel_data_source_scope_sessionfixture totests/conftest.pyalongside the existing rhel9/rhel10 data source fixturesWhich issue(s) this PR fixes:
Special notes for reviewer:
jira-ticket: NONE
Summary by CodeRabbit