-
Notifications
You must be signed in to change notification settings - Fork 74
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 new GOTOOLCHAIN env to manage go version #262
Conversation
Should prevent go from automatically downloading newer toolchains. And ensure the specified version is used.
Hi @huww98. Thanks for your PR. I'm waiting for a kubernetes-csi 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-sigs/prow repository. |
/ok-to-test |
/retest |
@huww98: 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-sigs/prow repository. I understand the commands that are listed here. |
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.
The change itself is fine.
I'm just wondering whether a bigger revamp of how Go versions are picked might be possible. For example, CSI_PROW_GO_VERSION_E2E
could be removed in favor of simply not overriding the Go version at all when building inside the k/k repo. Go should be able to figure out if it needs a newer Go version based on the go.mod
there. If the current Go version is newer, then there should be no need to download an older version.
Downloading an older version should help with reproducible build/test result. |
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: huww98, jsafrane 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 |
kubernetes-csi/csi-release-tools@734c2b95 Merge kubernetes-csi/csi-release-tools#265 from Rakshith-R/consider-main-branch kubernetes-csi/csi-release-tools@f95c855b Merge kubernetes-csi/csi-release-tools#262 from huww98/golang-toolchain kubernetes-csi/csi-release-tools@3c8d966f Treat main branch as equivalent to master branch kubernetes-csi/csi-release-tools@e31de525 Merge kubernetes-csi/csi-release-tools#261 from huww98/golang kubernetes-csi/csi-release-tools@fd153a9e Bump golang to 1.23.1 kubernetes-csi/csi-release-tools@a8b3d050 pull-test.sh: fix "git subtree pull" errors kubernetes-csi/csi-release-tools@6b05f0fc use new GOTOOLCHAIN env to manage go version git-subtree-dir: release-tools git-subtree-split: 734c2b950c4b31f64b63052c64ffa5929d1c9b97
Commit summary: Squashed 'release-tools/' changes from 227577e0..734c2b95 [734c2b95](kubernetes-csi/csi-release-tools@734c2b95) Merge [pull request kubernetes-csi#265](kubernetes-csi/csi-release-tools#265) from Rakshith-R/consider-main-branch [f95c855b](kubernetes-csi/csi-release-tools@f95c855b) Merge [pull request kubernetes-csi#262](kubernetes-csi/csi-release-tools#262) from huww98/golang-toolchain [3c8d966f](kubernetes-csi/csi-release-tools@3c8d966f) Treat main branch as equivalent to master branch [e31de525](kubernetes-csi/csi-release-tools@e31de525) Merge [pull request kubernetes-csi#261](kubernetes-csi/csi-release-tools#261) from huww98/golang [fd153a9e](kubernetes-csi/csi-release-tools@fd153a9e) Bump golang to 1.23.1 [a8b3d050](kubernetes-csi/csi-release-tools@a8b3d050) pull-test.sh: fix "git subtree pull" errors [6b05f0fc](kubernetes-csi/csi-release-tools@6b05f0fc) use new GOTOOLCHAIN env to manage go version git-subtree-dir: release-tools git-subtree-split: 734c2b950c4b31f64b63052c64ffa5929d1c9b97 Signed-off-by: Mario Valderrama <[email protected]>
kubernetes-csi/csi-release-tools@734c2b950 Merge kubernetes-csi/csi-release-tools#265 from Rakshith-R/consider-main-branch kubernetes-csi/csi-release-tools@f95c855be Merge kubernetes-csi/csi-release-tools#262 from huww98/golang-toolchain kubernetes-csi/csi-release-tools@3c8d966fe Treat main branch as equivalent to master branch kubernetes-csi/csi-release-tools@e31de525b Merge kubernetes-csi/csi-release-tools#261 from huww98/golang kubernetes-csi/csi-release-tools@fd153a9e2 Bump golang to 1.23.1 kubernetes-csi/csi-release-tools@a8b3d0504 pull-test.sh: fix "git subtree pull" errors kubernetes-csi/csi-release-tools@6b05f0fcc use new GOTOOLCHAIN env to manage go version git-subtree-dir: release-tools git-subtree-split: 734c2b950c4b31f64b63052c64ffa5929d1c9b97
Commit summary: Squashed 'release-tools/' changes from 227577e00..734c2b950 [734c2b950](kubernetes-csi/csi-release-tools@734c2b950) Merge [pull request kubernetes-csi#265](kubernetes-csi/csi-release-tools#265) from Rakshith-R/consider-main-branch [f95c855be](kubernetes-csi/csi-release-tools@f95c855be) Merge [pull request kubernetes-csi#262](kubernetes-csi/csi-release-tools#262) from huww98/golang-toolchain [3c8d966fe](kubernetes-csi/csi-release-tools@3c8d966fe) Treat main branch as equivalent to master branch [e31de525b](kubernetes-csi/csi-release-tools@e31de525b) Merge [pull request kubernetes-csi#261](kubernetes-csi/csi-release-tools#261) from huww98/golang [fd153a9e2](kubernetes-csi/csi-release-tools@fd153a9e2) Bump golang to 1.23.1 [a8b3d0504](kubernetes-csi/csi-release-tools@a8b3d0504) pull-test.sh: fix "git subtree pull" errors [6b05f0fcc](kubernetes-csi/csi-release-tools@6b05f0fcc) use new GOTOOLCHAIN env to manage go version git-subtree-dir: release-tools git-subtree-split: 734c2b950c4b31f64b63052c64ffa5929d1c9b97 Signed-off-by: Mario Valderrama <[email protected]>
kubernetes-csi/csi-release-tools@734c2b95 Merge kubernetes-csi/csi-release-tools#265 from Rakshith-R/consider-main-branch kubernetes-csi/csi-release-tools@f95c855b Merge kubernetes-csi/csi-release-tools#262 from huww98/golang-toolchain kubernetes-csi/csi-release-tools@3c8d966f Treat main branch as equivalent to master branch kubernetes-csi/csi-release-tools@e31de525 Merge kubernetes-csi/csi-release-tools#261 from huww98/golang kubernetes-csi/csi-release-tools@fd153a9e Bump golang to 1.23.1 kubernetes-csi/csi-release-tools@a8b3d050 pull-test.sh: fix "git subtree pull" errors kubernetes-csi/csi-release-tools@6b05f0fc use new GOTOOLCHAIN env to manage go version git-subtree-dir: release-tools git-subtree-split: 734c2b950c4b31f64b63052c64ffa5929d1c9b97
Commit summary: Squashed 'release-tools/' changes from 227577e0..734c2b95 [734c2b95](kubernetes-csi/csi-release-tools@734c2b95) Merge [pull request kubernetes-csi#265](kubernetes-csi/csi-release-tools#265) from Rakshith-R/consider-main-branch [f95c855b](kubernetes-csi/csi-release-tools@f95c855b) Merge [pull request kubernetes-csi#262](kubernetes-csi/csi-release-tools#262) from huww98/golang-toolchain [3c8d966f](kubernetes-csi/csi-release-tools@3c8d966f) Treat main branch as equivalent to master branch [e31de525](kubernetes-csi/csi-release-tools@e31de525) Merge [pull request kubernetes-csi#261](kubernetes-csi/csi-release-tools#261) from huww98/golang [fd153a9e](kubernetes-csi/csi-release-tools@fd153a9e) Bump golang to 1.23.1 [a8b3d050](kubernetes-csi/csi-release-tools@a8b3d050) pull-test.sh: fix "git subtree pull" errors [6b05f0fc](kubernetes-csi/csi-release-tools@6b05f0fc) use new GOTOOLCHAIN env to manage go version git-subtree-dir: release-tools git-subtree-split: 734c2b950c4b31f64b63052c64ffa5929d1c9b97 Signed-off-by: Mario Valderrama <[email protected]>
kubernetes-csi/csi-release-tools@734c2b95 Merge kubernetes-csi/csi-release-tools#265 from Rakshith-R/consider-main-branch kubernetes-csi/csi-release-tools@f95c855b Merge kubernetes-csi/csi-release-tools#262 from huww98/golang-toolchain kubernetes-csi/csi-release-tools@3c8d966f Treat main branch as equivalent to master branch kubernetes-csi/csi-release-tools@e31de525 Merge kubernetes-csi/csi-release-tools#261 from huww98/golang kubernetes-csi/csi-release-tools@fd153a9e Bump golang to 1.23.1 kubernetes-csi/csi-release-tools@a8b3d050 pull-test.sh: fix "git subtree pull" errors kubernetes-csi/csi-release-tools@6b05f0fc use new GOTOOLCHAIN env to manage go version git-subtree-dir: release-tools git-subtree-split: 734c2b950c4b31f64b63052c64ffa5929d1c9b97
Commit summary: Squashed 'release-tools/' changes from 227577e0..734c2b95 [734c2b95](kubernetes-csi/csi-release-tools@734c2b95) Merge [pull request kubernetes-csi#265](kubernetes-csi/csi-release-tools#265) from Rakshith-R/consider-main-branch [f95c855b](kubernetes-csi/csi-release-tools@f95c855b) Merge [pull request kubernetes-csi#262](kubernetes-csi/csi-release-tools#262) from huww98/golang-toolchain [3c8d966f](kubernetes-csi/csi-release-tools@3c8d966f) Treat main branch as equivalent to master branch [e31de525](kubernetes-csi/csi-release-tools@e31de525) Merge [pull request kubernetes-csi#261](kubernetes-csi/csi-release-tools#261) from huww98/golang [fd153a9e](kubernetes-csi/csi-release-tools@fd153a9e) Bump golang to 1.23.1 [a8b3d050](kubernetes-csi/csi-release-tools@a8b3d050) pull-test.sh: fix "git subtree pull" errors [6b05f0fc](kubernetes-csi/csi-release-tools@6b05f0fc) use new GOTOOLCHAIN env to manage go version git-subtree-dir: release-tools git-subtree-split: 734c2b950c4b31f64b63052c64ffa5929d1c9b97 Signed-off-by: Mario Valderrama <[email protected]>
hey @huww98 , I think this pr is responsible for all the k8s-1.29 pull job failures on all sidecar repos.
@avorima ^ |
Probably because the complete 1.21.z version is not defined in https://github.com/kubernetes/kubernetes/blob/release-1.29/go.mod#L9 |
@Rakshith-R could we update the used k/k version to 1.30 or 1.31? |
@Rakshith-R It looks strange to me. The log you posted shows
But I got this locally.
Can you check what the GOPROXY env is? The tool chain is downloaded there. |
I am not sure, I don't think so.
I added prow job logs here |
I think I've figured it out. v1.29 failed because It has |
@Rakshith-R yes, my bad i was thinking about the default version in prow.sh, but the test runs on 1.29 which can't be changed. @huww98 i see the GOPROXY=off in the k/k repo. is that something that needs to be fixed there or do you think it can be fixed here? |
Thanks for the quick fix ! |
Should prevent go from automatically downloading newer toolchains. And ensure the specified version is used.
BTW, this also enables support for platforms other than linux/amd64
See also:
It works like this: