-
Notifications
You must be signed in to change notification settings - Fork 159
Build only linux container image for tests on Linux #636
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 only linux container image for tests on Linux #636
Conversation
Build multi-arch container image takes much longer time than only building linux container image. This PR changes back to only build linux container image for linux tests to avoid timeout issue
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: jingxu97 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 |
cc @saad-ali |
/retest |
/lgtm |
if err != nil { | ||
return fmt.Errorf("failed to run make command for windows: err: %v", err) | ||
if platform == "windows" { | ||
// build multi-arch image which can work for both Linux and Windows |
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.
May be worth add a comment to clarify why multi-arch is applied only for windows. Something like: "multi-arch build takes long time, apply only for non-Linux platforms"
err = runCommand("Building and Pushing GCP Container for Windows", cmd) | ||
if err != nil { | ||
return fmt.Errorf("failed to run make command for windows: err: %v", err) | ||
if platform == "windows" { |
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.
nit: May be good to apply fast build for Linux and multi-arch for everything else?
Build multi-arch container image takes much longer time than only
building linux container image. This PR changes back to only build linux
container image for linux tests to avoid timeout issue
What type of PR is this?
What this PR does / why we need it:
Which issue(s) this PR fixes:
Fixes #
Special notes for your reviewer:
Does this PR introduce a user-facing change?: