Skip to content
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

Bump Azure Stack Terraform Provider for Go 1.18 #5865

Merged

Conversation

patrickdillon
Copy link
Contributor

Builds for Mac are failing with Go 1.18 due to an outdated dependency in the Azure Stack Terraform provider on x/sys: golang/go#49219

I tested this using registry.ci.openshift.org/ocp/builder:rhel-8-golang-1.18-openshift-4.11 and it resolves the issue.

@patrickdillon
Copy link
Contributor Author

Let's make sure e2e-azurestack gets a successful terraform run.

@openshift-ci openshift-ci bot requested review from barbacbd and kirankt May 5, 2022 02:31
@patrickdillon
Copy link
Contributor Author

/retest

@patrickdillon
Copy link
Contributor Author

The goal here is to ensure compatibility with Go 1.18, but not yet require it.

@patrickdillon
Copy link
Contributor Author

Prior to this change, building the provider is failing similar to this:

sh-4.4# GOOS=darwin make
==> Checking that code complies with gofmt requirements...
go install
# golang.org/x/sys/unix
vendor/golang.org/x/sys/unix/syscall_darwin.1_13.go:29:3: //go:linkname must refer to declared function or variable
vendor/golang.org/x/sys/unix/zsyscall_darwin_amd64.1_13.go:27:3: //go:linkname must refer to declared function or variable
vendor/golang.org/x/sys/unix/zsyscall_darwin_amd64.1_13.go:40:3: //go:linkname must refer to declared function or variable
vendor/golang.org/x/sys/unix/zsyscall_darwin_amd64.go:28:3: //go:linkname must refer to declared function or variable
vendor/golang.org/x/sys/unix/zsyscall_darwin_amd64.go:43:3: //go:linkname must refer to declared function or variable
vendor/golang.org/x/sys/unix/zsyscall_darwin_amd64.go:59:3: //go:linkname must refer to declared function or variable
vendor/golang.org/x/sys/unix/zsyscall_darwin_amd64.go:75:3: //go:linkname must refer to declared function or variable
vendor/golang.org/x/sys/unix/zsyscall_darwin_amd64.go:90:3: //go:linkname must refer to declared function or variable
vendor/golang.org/x/sys/unix/zsyscall_darwin_amd64.go:105:3: //go:linkname must refer to declared function or variable
vendor/golang.org/x/sys/unix/zsyscall_darwin_amd64.go:121:3: //go:linkname must refer to declared function or variable
vendor/golang.org/x/sys/unix/zsyscall_darwin_amd64.go:121:3: too many errors
make: *** [GNUmakefile:19: build] Error 2

@barbacbd
Copy link
Contributor

barbacbd commented May 5, 2022

Sifted through the files and there was only the one go.mod file changed. Verified the version of sys that was updated.

@barbacbd
Copy link
Contributor

barbacbd commented May 5, 2022

/lgtm

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label May 5, 2022
Needed to bump x/sys dependency due to golang/go#49219
to ensure Go 1.18 compatibility on darwin.

This commit revendors our AzureStack fork to bring in:
openshift/terraform-provider-azurestack#5

which updated x/sys with the following commands:

go get -u golang.org/x/sys
go mod tidy -compat=1.17 && go mod vendor
@openshift-ci openshift-ci bot removed the lgtm Indicates that a PR is ready to be merged. label May 9, 2022
@patrickdillon
Copy link
Contributor Author

Reran with go mod tidy -compat=1.17 to fix failing verify-vendor test.

@barbacbd
Copy link
Contributor

barbacbd commented May 9, 2022

/lgtm

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label May 9, 2022
@sadasu
Copy link
Contributor

sadasu commented May 9, 2022

/test e2e-azurestack

@patrickdillon
Copy link
Contributor Author

e2e-azurestack tests are successfully running terraform. failure is after bootstrap complete.

/approve

@openshift-ci
Copy link
Contributor

openshift-ci bot commented May 9, 2022

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: patrickdillon

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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-ci openshift-ci bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label May 9, 2022
@openshift-merge-robot openshift-merge-robot merged commit 72b7bb8 into openshift:master May 9, 2022
@openshift-ci
Copy link
Contributor

openshift-ci bot commented May 9, 2022

@patrickdillon: The following tests failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
ci/prow/e2e-metal-assisted 6badee4 link false /test e2e-metal-assisted
ci/prow/e2e-azure-shared-vpc 6badee4 link false /test e2e-azure-shared-vpc
ci/prow/okd-e2e-aws 6badee4 link false /test okd-e2e-aws

Full PR test history. Your PR dashboard.

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.

patrickdillon pushed a commit to patrickdillon/installer that referenced this pull request Oct 24, 2023
Bump Azure Stack Terraform Provider for Go 1.18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. lgtm Indicates that a PR is ready to be merged.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants