OCPBUGS-104542: force same arch for opm and catalogsource pod for multiarch tests - #1344
OCPBUGS-104542: force same arch for opm and catalogsource pod for multiarch tests#1344ankitathomas wants to merge 1 commit into
Conversation
Signed-off-by: Ankita Thomas <ankithom@redhat.com>
|
@ankitathomas: This pull request references Jira Issue OCPBUGS-104542, which is invalid:
Comment The bug has been updated to refer to the pull request using the external bug tracker. DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository. |
WalkthroughThe changes detect the host architecture and pass it through OLM test utilities into CatalogSource and BuildConfig templates. The templates use the architecture for Kubernetes node selection. ChangesOLM architecture support
Estimated code review effort: 2 (Simple) | ~10 minutes 🚥 Pre-merge checks | ✅ 14 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (14 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
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-extension/test/qe/specs/olmv0_custom_schema.go`:
- Line 60: Move both cleanup registrations using dr.GetIr(itName).Add(...) to
immediately before the BuildCustomCatalogImage call in the test setup, so the
ImageStream and BuildConfig are registered before creation begins. Keep the
existing registrations and BuildCustomCatalogImage arguments unchanged.
In `@tests-extension/test/qe/util/olmv0util/custom_schema_grpc.go`:
- Line 143: Update the e2e.Logf call that reports the created BuildConfig so it
no longer includes the full baseImage reference; log only the namespace/name and
architecture, or use an established redaction helper to remove the registry
hostname before logging.
🪄 Autofix
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: Repository: openshift/coderabbit/.coderabbit.yaml
Review profile: CHILL
Plan: Enterprise
Run ID: aa17c79e-07c5-42c4-9aa1-878c8702cf7b
📒 Files selected for processing (6)
tests-extension/pkg/bindata/qe/bindata.gotests-extension/test/qe/specs/olmv0_custom_schema.gotests-extension/test/qe/testdata/olm/catalogsource-image.yamltests-extension/test/qe/testdata/olm/custom-schema-buildconfig.yamltests-extension/test/qe/util/olmv0util/catalog_source.gotests-extension/test/qe/util/olmv0util/custom_schema_grpc.go
|
@ankitathomas: all tests passed! Full PR test history. Your PR dashboard. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here. |
|
/jira refresh |
|
@ankitathomas: This pull request references Jira Issue OCPBUGS-104542, which is valid. The bug has been moved to the POST state. 3 validation(s) were run on this bug
DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository. |
|
/approve |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: ankitathomas, tmshort The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
OpenShift BuildConfigs create single arch images even with a multi-arch source. The opm image created by the BuildConfig will thus match whatever arch the build environment is. In a multi-arch cluster, this arch may differ from the arch of the node the catalogsource pod gets deployed in with the newly built test catalog.
This PR forces both the BuildConfig and CatalogSource pods to use the same arch. This requirement will prevent this arch mismatch between catalogsource build environment and runtime environment.
Summary by CodeRabbit
Bug Fixes
Tests