-
Notifications
You must be signed in to change notification settings - Fork 676
[Chore] Upgrade Golang version to v1.25 #4269
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
[Chore] Upgrade Golang version to v1.25 #4269
Conversation
| .PHONY: crd-ref-docs | ||
| crd-ref-docs: $(CRD_REF_DOCS) ## Download crd-ref-docs locally if necessary. | ||
| test -s $(CRD_REF_DOCS) || GOBIN=$(LOCALBIN) go install github.com/elastic/crd-ref-docs@v0.0.12 | ||
| test -s $(CRD_REF_DOCS) || GOBIN=$(LOCALBIN) go install github.com/elastic/crd-ref-docs@v0.2.0 |
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.
We also bump crd-ref-docs to v0.2.0 to resolve build failures resulted from dependency on golang.org/x/tools v0.19.0.
Related PRs
|
Hi @Future-Outlier, For now, KubeRay depends on Thanks!! |
make sense to me, I personally prefer to keep all dependencies and toolchain to the most latest stable version (maybe apart from rust toolchain) |
There is already a PR addressing this: #4007, we can wait for this PR to be merged before proceeding with the Go version upgrade. |
seanlaii
left a comment
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.
Thanks!
Future-Outlier
left a comment
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.
cc @win5923 @machichima to review this
experimental/Dockerfile
Outdated
| @@ -1,5 +1,5 @@ | |||
| # Build security proxy | |||
| FROM golang:1.24.0-bullseye AS builder | |||
| FROM golang:1.25.0-bookworm AS builder | |||
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 same as above
ray-operator/Dockerfile
Outdated
| @@ -1,5 +1,5 @@ | |||
| # Build the manager binary | |||
| FROM golang:1.24.0-bullseye AS builder | |||
| FROM golang:1.25.0-bookworm AS builder | |||
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 same as above
win5923
left a comment
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.
Hi @JiangJiaWei1103, could you help resolve the conflicts? The golang-lint-ci upgrade have already been merged.
Signed-off-by: JiangJiaWei1103 <[email protected]>
Signed-off-by: JiangJiaWei1103 <[email protected]>
Signed-off-by: JiangJiaWei1103 <[email protected]>
Signed-off-by: JiangJiaWei1103 <[email protected]>
5c2fc63 to
3be6c3b
Compare
Hi @win5923, I've rebase with the master branch, thanks! |
Signed-off-by: JiangJiaWei1103 <[email protected]>
win5923
left a comment
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! I checked the CI error, and it is unrelated to this PR.
rayservice_ha_test.go:168: [2025-12-20T07:45:53Z] Waiting several seconds before updating RayService
rayservice_ha_test.go:171: [2025-12-20T07:46:23Z] Updating RayService
support.go:188: [2025-12-20T07:46:23Z] Waiting for RayService test-ns-r9tpp/test-rayservice UpgradeInProgress condition to be true
support.go:192: [2025-12-20T07:46:24Z] Waiting for RayService test-ns-r9tpp/test-rayservice to switch to a new cluster
support.go:193:
Timed out after 60.000s.
Expected
<string>: test-rayservice-nrlmm
not to equal
<string>: test-rayservice-nrlmm
|
Hi @JiangJiaWei1103, I think the conflicts may need to be resolved again. Thanks! |
d8dc92c to
47a32ce
Compare
…upgrade-golang-ver Signed-off-by: JiangJiaWei1103 <[email protected]>
|
Hi @win5923, The conflicts are resolved! Regarding (Update) |
…upgrade-golang-ver Signed-off-by: JiangJiaWei1103 <[email protected]>
seanlaii
left a comment
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
Future-Outlier
left a comment
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, I tried to build historyserver's collector (it's not in CI now, and it works for me!)
cc @rueian to merge, thank you!
machichima
left a comment
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!
Why are these changes needed?
Go v1.25 has been released since Aug while KubeRay still uses v1.24.
Changes
go mod tidyto add missing modules and remove unused onesNote that Go v1.25 images use newer Debian base variants like Bookworm, so we choose
golang:1.25.0-bookwormas the builder.Related issue number
Closes #4263.
Checks