Fix microshift step registry to not depend on job's build_root#75271
Fix microshift step registry to not depend on job's build_root#75271jianzhangbjz wants to merge 1 commit intoopenshift:mainfrom
Conversation
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: jianzhangbjz The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
|
@jianzhangbjz: This PR was included in a payload test run from openshift/operator-framework-olm#1236
See details on https://pr-payload-tests.ci.openshift.org/runs/ci/41a74be0-122c-11f1-904f-bc0571ce1c16-0 |
|
[REHEARSALNOTIFIER]
A total of 303 jobs have been affected by this change. The above listing is non-exhaustive and limited to 25 jobs. A full list of affected jobs can be found here Interacting with pj-rehearseComment: Once you are satisfied with the results of the rehearsals, comment: |
|
@jianzhangbjz: This PR was included in a payload test run from openshift/operator-framework-olm#1236
See details on https://pr-payload-tests.ci.openshift.org/runs/ci/3bdae7b0-1233-11f1-8b95-7266b558161e-0 |
|
/pj-rehearse pull-ci-openshift-microshift-release-4.23-e2e-aws-footprint-and-performance |
|
@jianzhangbjz: now processing your pj-rehearse request. Please allow up to 10 minutes for jobs to trigger or cancel. |
|
/pj-rehearse pull-ci-openshift-microshift-release-4.20-e2e-aws-ai-model-serving |
|
@jianzhangbjz: now processing your pj-rehearse request. Please allow up to 10 minutes for jobs to trigger or cancel. |
|
@jianzhangbjz: The following test failed, say
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. |
To address openshift/operator-framework-olm#1236 (comment)
Summary
from: rootwithfrom_imagein 9 microshift step registry refs to make them portable across different repositoriesci_get_clonerefs()function to useuname -minstead ofgo env GOARCHfor architecture detectionProblem
Microshift workflows fail when used in Pull Request Payload Qualification (PRPQ) jobs against other repositories (e.g., operator-framework-olm). The error occurs
because:
Steps using
from: rootrequire the job'sbuild_rootconfiguration, which may not exist or be compatible when the workflow is executed in a different repositorycontext.
Solution
Changed all microshift step refs from
from: roottofrom_imagewith a fixed image reference (openshift/release:rhel-9-release-golang-1.22-openshift-4.18),consistent with the existing
openshift-microshift-infra-sos-awsstep pattern.Updated
ci_get_clonerefs()to detect architecture usinguname -minstead ofgo env GOARCH, removing the Go dependency for this function.Assisted-By: Claude-Code