-
Notifications
You must be signed in to change notification settings - Fork 160
Add functionality to make architecture specific builds #963
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
Add functionality to make architecture specific builds #963
Conversation
Hi @DW2022511. 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. |
/assign @leiyiz |
test/e2e/tests/setup_e2e_test.go
Outdated
@@ -34,6 +34,8 @@ import ( | |||
|
|||
var ( | |||
project = flag.String("project", "", "Project to run tests in") | |||
architecture = flag.String("arch", "amd64", "Architecture pd csi driver build on") | |||
vmName = flag.String("vm-name", "", "Name of the VM to run tests on") |
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.
@pwschuurman I run the t2a test, and we need to make vmName as flag as well.
/ok-to-test |
74f2c33
to
59275d3
Compare
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
test/remote/instance.go
Outdated
} | ||
} | ||
|
||
if _, err := i.computeService.Instances.Get(i.project, i.zone, newInst.Name).Do(); err != nil { |
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.
Can you just check of curInst (or instance) is nil here? I don't think you need an extra Get call. This will also make your API response handling more consistent (right now you're using the first and second parameter in the return call to indicate the same semantics)
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.
done.
/assign @saikat-royc |
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: DW2022511, mattcary, pwschuurman 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 |
@@ -41,8 +41,12 @@ gce-pd-driver: require-GCE_PD_CSI_STAGING_VERSION | |||
go build -mod=vendor -gcflags=$(GCFLAGS) -ldflags "-X main.version=$(STAGINGVERSION)" -o bin/${DRIVERBINARY} ./cmd/gce-pd-csi-driver/ | |||
|
|||
gce-pd-driver-windows: require-GCE_PD_CSI_STAGING_VERSION | |||
ifeq (GOARCH, amd64) |
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.
I think this broke builds of the windows binary in https://prow.k8s.io/job-history/gs/kubernetes-jenkins/logs/ci-gce-pd-csi-driver-latest-k8s-master-windows-2019 (see the recent failures in about 7m), should it be $(GOARCH)
instead?
W0504 14:19:19.035] #0 0.160 Makefile:48: gcp-pd-driver-windows only supports amd64.
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.
I'm attempting to fix this in #973
What type of PR is this?
What this PR does / why we need it:
Which issue(s) this PR fixes:
Fixes #944
Special notes for your reviewer:
Does this PR introduce a user-facing change?: