Add multiarch support for golden image boot source tests#5662
Add multiarch support for golden image boot source tests#5662geetikakay wants to merge 1 commit into
Conversation
- Populate per-arch data_import_cron_matrix and auto_update_data_source_matrix in multiarch config. - Make boot source fixtures, template label selectors and DIC filtering arch-aware. - Add arm64 marker to applicable tests. Update unit tests for matrix propagation. Signed-off-by: Geetika Kapoor <gkapoor@redhat.com>
📝 WalkthroughWalkthroughChangesMulti-architecture golden images
Estimated code review effort: 3 (Moderate) | ~25 minutes Possibly related PRs
Suggested reviewers: 🚥 Pre-merge checks | ✅ 6✅ Passed checks (6 passed)
✨ 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
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
📌 Additional InformationCustom Commands:
For more information, please refer to the project documentation or contact the maintainers. |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #5662 +/- ##
==========================================
+ Coverage 98.67% 98.87% +0.20%
==========================================
Files 25 42 +17
Lines 2487 2580 +93
==========================================
+ Hits 2454 2551 +97
+ Misses 33 29 -4
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
Actionable comments posted: 2
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In
`@tests/infrastructure/golden_images/update_boot_source/test_ssp_common_templates_boot_sources.py`:
- Line 124: Update the assertion lambda in the boot-source test to compare
fedora_boot_source_data_source.source.name directly with OS_FLAVOR_FEDORA,
rather than fedora_boot_source_data_source.name, so architecture suffixes do not
cause false negatives.
In
`@tests/infrastructure/golden_images/update_boot_source/test_ssp_data_import_crons.py`:
- Around line 56-58: Update the assertions in the SSP data import cron test:
correct the grammar in the managed_data_source assertion message to say it “does
not exist,” and add a descriptive failure message to the
latest_rhel_release_versions_dict comparison assertion.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: ASSERTIVE
Plan: Pro
Run ID: caf44435-ea37-4d87-aa5d-d4a849971fc5
📒 Files selected for processing (9)
tests/global_config_arm64.pytests/global_config_multiarch.pytests/infrastructure/golden_images/update_boot_source/test_boot_sources_vm.pytests/infrastructure/golden_images/update_boot_source/test_ssp_common_templates_boot_sources.pytests/infrastructure/golden_images/update_boot_source/test_ssp_data_import_crons.pytests/infrastructure/golden_images/update_boot_source/utils.pyutilities/pytest_utils.pyutilities/unittests/test_pytest_utils.pyutilities/virt.py
🔗 Linked repositories identified
CodeRabbit considers these linked repositories for cross-repo context during reviews:
RedHatQE/openshift-virtualization-tests-design-docs(manual)
💤 Files with no reviewable changes (1)
- tests/global_config_arm64.py
|
/approve |
What this PR does / why we need it:
Add multiarch support for golden image and boot source tests
architecture in global_config_multiarch
update_cpu_arch_related_config for multiarch clusters
hardcoded fedora_data_source
Which issue(s) this PR fixes:
Special notes for reviewer:
jira-ticket:
https://redhat.atlassian.net/browse/CNV-68645
Summary by CodeRabbit
Bug Fixes
Tests