-
Notifications
You must be signed in to change notification settings - Fork 62
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
build: fix workflow details making it compatible on s390x #602
Conversation
@tarilabs As discussed these are the few changes which were missing as part of multi-arch. I have tested it locally on my environment on s390x . |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thank you very much @modassarrana89 for this contribution!
In general,
/lgtm
my only remaning question, as previously stated, is how can the KF community test this.
Is there any emulation which can be done on GHA side, as far as you know?
Some runner which can be used.
Noted, I think it's good anyway to produce multiple images, but specifically I can only see ways of testing x86 and Arm, so far.
Kindly let us know!
$(DOCKER) buildx build --push --platform=$(PLATFORMS) --tag ${IMG} -f ${DOCKERFILE} . | ||
$(DOCKER) buildx build --push --platform=$(PLATFORMS) --tag ${IMG}:$(IMG_VERSION) -f ${DOCKERFILE} . |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Makes it consistent with
Lines 241 to 243 in 4099d46
.PHONY: image/build | |
image/build: | |
${DOCKER} build ${BUILD_PATH} -f ${DOCKERFILE} -t ${IMG}:$(IMG_VERSION) |
lgtm
$(DOCKER) buildx build --platform=$(PLATFORMS) --manifest ${IMG} -f ${DOCKERFILE} . | ||
$(DOCKER) buildx build --platform=$(PLATFORMS) --manifest ${IMG}:$(IMG_VERSION) -f ${DOCKERFILE} . |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
as above.
${GOLANGCI_LINT} run main.go --timeout 3m | ||
${GOLANGCI_LINT} run cmd/... internal/... ./pkg/... --timeout 3m |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not sure why this was needed, but okay.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In s390x environment , it was failing without timeout . By giving timeout option of 3 min , it waits for the operation to complete during the interval & is working fine post that
ARCH="x86_64" | ||
if [[ $(uname -m) =~ arm ]]; then | ||
ARCH="aarch_64" | ||
ARCH=$(uname -m) | ||
if [[ "$ARCH" == "arm"* ]]; then | ||
ARCH="aarch_64" | ||
elif [[ "$ARCH" == "s390x" ]]; then | ||
ARCH="s390_64" | ||
elif [[ "$ARCH" == "ppc64le" ]] ; then | ||
ARCH="ppcle_64" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Already working on updating the github workflow for all architecture. Either i can add the changes as part of this PR or i can raise separate PR . Please suggest. |
I would do separately. Please allow some times for others to chime-in if they wanted on this PR. |
btw, @modassarrana89 kindly provide DCO. For more information:
otherwise this won't be merged eventually by the bot. |
Signed-off-by: root <[email protected]>
Signed-off-by: root <[email protected]>
03afc67
to
aa1f9c5
Compare
Done |
ok. I also wanted to handle it separately. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
@dhirajsb: changing LGTM is restricted to collaborators In 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 kubernetes/test-infra repository. |
@zijianjoy @tarilabs Please approve |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
/approve
per previous comments
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: dhirajsb, tarilabs The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Multi-architecture support for model-registry
Changes Updated
Reference to OLD PR that has been closed :- #66