Skip to content

WIP: (Predrag) Update go from 1.24.0 to 1.24.2 #20770

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

Open
wants to merge 21 commits into
base: master
Choose a base branch
from

Conversation

minikube-bot
Copy link
Collaborator

@minikube-bot minikube-bot commented May 15, 2025

This PR is meant for debugging for @prezha

Kubernetes Project just updated the golang version, updating minikube golang to match Kubernetes.

This PR was auto-generated by make update-golang-version using update-golang-version.yml CI Workflow.

closes #20785

@minikube-bot
Copy link
Collaborator Author

ok-to-build-image

@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label May 15, 2025
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: minikube-bot
Once this PR has been reviewed and has the lgtm label, please assign spowelljr for approval. For more information see the Code Review Process.

The full list of commands accepted by this bot can be found 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

@k8s-ci-robot k8s-ci-robot requested a review from spowelljr May 15, 2025 20:26
@k8s-ci-robot k8s-ci-robot added the needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. label May 15, 2025
@k8s-ci-robot
Copy link
Contributor

Hi @minikube-bot. Thanks for your PR.

I'm waiting for a kubernetes member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

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.

@k8s-ci-robot k8s-ci-robot added the size/L Denotes a PR that changes 100-499 lines, ignoring generated files. label May 15, 2025
@medyagh
Copy link
Member

medyagh commented May 15, 2025

ok-to-build-iso

@minikube-bot
Copy link
Collaborator Author

Hi @minikube-bot, we have updated your PR with the reference to newly built kicbase image. Pull the changes locally if you want to test with them or update your PR further.

go.mod Outdated
@@ -1,7 +1,6 @@
module k8s.io/minikube

go 1.23.4
toolchain go1.24.1
go 1.24.2
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we really want to make this the minimal required version? This may break people using packages from minikube.

Copy link
Member

@medyagh medyagh May 16, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

that is a good feedback, I would accept a PR that updated the Automation to not bump the minor version in go mod.
I think it would probably best to Match what kubernetes does.
which they dont bump the patch version for go mod
https://github.com/kubernetes/kubernetes/blob/master/go.mod

Copy link
Contributor

@prezha prezha May 19, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good point, i pulled in go version from the current go.mod (v1.24.0) and resolved the conflicts

@minikube-bot
Copy link
Collaborator Author

Hi @minikube-bot, we have updated your PR with the reference to newly built ISO. Pull the changes locally if you want to test with them or update your PR further.

@medyagh
Copy link
Member

medyagh commented May 16, 2025

/ok-to-test

@k8s-ci-robot k8s-ci-robot added ok-to-test Indicates a non-member PR verified by an org member that is safe to test. and removed needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. labels May 16, 2025
@medyagh
Copy link
Member

medyagh commented May 16, 2025

/ok-to-test

@k8s-ci-robot k8s-ci-robot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label May 16, 2025
@medyagh
Copy link
Member

medyagh commented May 16, 2025

ok-to-build-iso

@minikube-bot
Copy link
Collaborator Author

Hi @minikube-bot, we have updated your PR with the reference to newly built ISO. Pull the changes locally if you want to test with them or update your PR further.

@minikube-pr-bot

This comment has been minimized.

Victorthedev added a commit to Victorthedev/minikube that referenced this pull request May 18, 2025
This PR addresses issue kubernetes#20770, where the minikube automation (triggered by make `update-golang-version`) unnecessarily bumped minor or patch versions in `go.mod` when updating the Go version. Following Kubernetes' practice, which avoids such bumps in `go.mod`, this change ensures only the go directive is updated to the stable Go version.

**Changes:**
- Added `go.mod` to the schema map in `hack/update/golang_version/update_golang_version.go` with a regex (go 1\.\d+\.\d+) to update the go directive to {{.StableVersion}} (e.g., go 1.24.2).
- This ensures the automation updates only the go directive without modifying module dependencies, aligning with Kubernetes' `go.mod` behavior.

**Impact:**
- Running make `update-golang-version` now updates the go directive (e.g., from go 1.22.3 to go 1.24.2) without unintended dependency version bumps.
- Tested by setting go 1.22.3 in go.mod, running go mod tidy and make update-golang-version, and verifying only the go directive and toolchain changed.

fixes: kubernetes#20773
@k8s-ci-robot k8s-ci-robot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label May 19, 2025
@minikube-pr-bot

This comment has been minimized.

@minikube-pr-bot

This comment has been minimized.

@medyagh
Copy link
Member

medyagh commented May 24, 2025

clean up duplicates

@medyagh medyagh closed this May 24, 2025
@medyagh medyagh reopened this May 24, 2025
@medyagh medyagh changed the title Update go from 1.24.0 to 1.24.2 WIP: (Predrag) Update go from 1.24.0 to 1.24.2 May 24, 2025
@k8s-ci-robot k8s-ci-robot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label May 24, 2025
@minikube-pr-bot

This comment has been minimized.

@k8s-ci-robot k8s-ci-robot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label May 24, 2025
@minikube-bot
Copy link
Collaborator Author

Hi @minikube-bot, we have updated your PR with the reference to newly built ISO. Pull the changes locally if you want to test with them or update your PR further.

@minikube-pr-bot

This comment has been minimized.

@k8s-ci-robot k8s-ci-robot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label May 24, 2025
@minikube-pr-bot

This comment has been minimized.

@minikube-pr-bot

This comment has been minimized.

@minikube-pr-bot

This comment has been minimized.

@k8s-ci-robot k8s-ci-robot added size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. and removed size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels May 26, 2025
@minikube-pr-bot

This comment has been minimized.

@minikube-pr-bot

This comment has been minimized.

@minikube-pr-bot
Copy link

kvm2 driver with docker runtime

+----------------+----------+---------------------+
|    COMMAND     | MINIKUBE | MINIKUBE (PR 20770) |
+----------------+----------+---------------------+
| minikube start | 45.3s    | 45.3s               |
| enable ingress | 15.6s    | 15.7s               |
+----------------+----------+---------------------+

Times for minikube start: 48.0s 43.7s 42.5s 48.1s 44.3s
Times for minikube (PR 20770) start: 47.1s 44.9s 42.6s 44.6s 47.3s

Times for minikube (PR 20770) ingress: 15.6s 15.1s 16.7s 15.1s 16.2s
Times for minikube ingress: 15.7s 16.1s 15.6s 14.6s 16.1s

docker driver with docker runtime

+----------------+----------+---------------------+
|    COMMAND     | MINIKUBE | MINIKUBE (PR 20770) |
+----------------+----------+---------------------+
| minikube start | 26.3s    | 25.1s               |
| enable ingress | 13.0s    | 12.7s               |
+----------------+----------+---------------------+

Times for minikube (PR 20770) start: 24.5s 27.2s 24.2s 26.2s 23.3s
Times for minikube start: 25.1s 26.7s 27.2s 26.6s 26.0s

Times for minikube ingress: 12.9s 13.4s 13.3s 12.3s 12.8s
Times for minikube (PR 20770) ingress: 12.8s 12.8s 12.4s 13.3s 12.3s

docker driver with containerd runtime

+----------------+----------+---------------------+
|    COMMAND     | MINIKUBE | MINIKUBE (PR 20770) |
+----------------+----------+---------------------+
| minikube start | 23.1s    | 22.5s               |
| enable ingress | 35.9s    | 34.0s               |
+----------------+----------+---------------------+

Times for minikube start: 22.1s 21.4s 23.8s 24.8s 23.4s
Times for minikube (PR 20770) start: 22.3s 22.5s 25.2s 21.3s 21.1s

Times for minikube ingress: 39.9s 22.8s 39.1s 38.8s 38.8s
Times for minikube (PR 20770) ingress: 38.8s 38.8s 30.8s 22.8s 38.8s

@prezha
Copy link
Contributor

prezha commented May 27, 2025

looks like we're good here now - ie, no more kvm driver tests timeouts in few iterations
most test errors we still see (generally, not just for kvm) are due to docker's rate limiting
extracting & moving the fix to a separate pr: #20852, as we would probably want to bump go to v1.24.3 next, for which we have yet another pr: #20827

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. ok-to-test Indicates a non-member PR verified by an org member that is safe to test. size/XL Denotes a PR that changes 500-999 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants