-
Notifications
You must be signed in to change notification settings - Fork 177
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
use docker buildx to build multi-arch image #274
use docker buildx to build multi-arch image #274
Conversation
Hi @mainred. Thanks for your PR. I'm waiting for a kubernetes-sigs member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. 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. |
f96579f
to
30eae07
Compare
30eae07
to
4e54721
Compare
/ok-to-test |
Make sure to fix pull-apiserver-network-proxy-docker-build-all. /retest |
The building failure is caused by timeout and potential resource limitation by
|
Ok I've verified that the images were indeed built incorrectly and this PR should fix it. As for the docker-build-all presubmit test failure I think we have a couple options
|
I think it's wise to cover at least two cases as blocking (amd64 since it's the published ARCH plus one variant, perhaps arm64). I agree with running in parallel, in any case, if the savings are non-negligible. |
Can we try parallel and see if that's sufficient? Not sure a 30 minute build time is a huge issue given our current PR cadence. |
testing each arch docker building before changing the test-infra configuration. |
32f1f98
to
c2f0b1a
Compare
I tested each arch image building, the time consumed by arm is extremely high. We can build images in parallel, but arm image building taking more than 1 hour is too much and brings no failure We can build arm64 and amd64 in presubmit job suggested by @jkh52 , while making other arch image building available in Makefile, I don't mind also adding other archs expect arm in presubmit job. Time consumed for each arch: |
407f88f
to
84bab2f
Compare
Created a PR kubernetes/test-infra#24369 in case we want to run theses buildings in parallel |
@mainred: The following test failed, say
Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR. 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. I understand the commands that are listed here. |
Thanks for gathering the data @mainred! LGTM assuming kubernetes/test-infra#24369 is merged. |
@cheftako @Jefftree if you agree with this change. I need your help to merge kubernetes/test-infra#24369, then I will retrigger docker build check here and ping you guys to merge this PR when it's green. |
/retest |
/lgtm |
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: cheftako, mainred 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 |
Before this change, the image built through our Makefile
docker-push/xxx
is with the same arch as the host as no arch simulation is introduced, even though ARCH is specified, as shown below I usedREGISTRY=qingchuanhao.azurecr.io ARCH=arm64 make docker-push/proxy-server
to push an arm64 image to ACR.After this change, the same command
REGISTRY=qingchuanhao.azurecr.io ARCH=arm64 make docker-push/proxy-server
return a arm64-based image