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

update golang to v1.20 #3478

Merged
merged 1 commit into from
Apr 28, 2023
Merged

Conversation

jackfrancis
Copy link
Contributor

What type of PR is this?

/kind cleanup

What this PR does / why we need it:

This PR updates golang to v1.20 to match CAPI:

Which issue(s) this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close the issue(s) when PR gets merged):
Fixes #

Special notes for your reviewer:

  • cherry-pick candidate

TODOs:

  • squashed commits
  • includes documentation
  • adds unit tests

Release note:

use golang v1.20 to build and test CAPZ

@k8s-ci-robot k8s-ci-robot added release-note Denotes a PR that will be considered when it comes time to generate release notes. kind/cleanup Categorizes issue or PR as related to cleaning up code, process, or technical debt. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. labels Apr 24, 2023
@k8s-ci-robot k8s-ci-robot added the size/M Denotes a PR that changes 30-99 lines, ignoring generated files. label Apr 24, 2023
@jackfrancis
Copy link
Contributor Author

/test ls

@k8s-ci-robot
Copy link
Contributor

@jackfrancis: The specified target(s) for /test were not found.
The following commands are available to trigger required jobs:

  • /test pull-cluster-api-provider-azure-build
  • /test pull-cluster-api-provider-azure-ci-entrypoint
  • /test pull-cluster-api-provider-azure-e2e
  • /test pull-cluster-api-provider-azure-e2e-aks
  • /test pull-cluster-api-provider-azure-test
  • /test pull-cluster-api-provider-azure-verify

The following commands are available to trigger optional jobs:

  • /test pull-cluster-api-provider-azure-apidiff
  • /test pull-cluster-api-provider-azure-apiversion-upgrade
  • /test pull-cluster-api-provider-azure-capi-e2e
  • /test pull-cluster-api-provider-azure-conformance
  • /test pull-cluster-api-provider-azure-conformance-with-ci-artifacts
  • /test pull-cluster-api-provider-azure-e2e-optional
  • /test pull-cluster-api-provider-azure-e2e-workload-upgrade
  • /test pull-cluster-api-provider-azure-windows-containerd-upstream-with-ci-artifacts
  • /test pull-cluster-api-provider-azure-windows-containerd-upstream-with-ci-artifacts-serial-slow

Use /test all to run the following jobs that were automatically triggered:

  • pull-cluster-api-provider-azure-apidiff
  • pull-cluster-api-provider-azure-build
  • pull-cluster-api-provider-azure-capi-e2e
  • pull-cluster-api-provider-azure-ci-entrypoint
  • pull-cluster-api-provider-azure-conformance
  • pull-cluster-api-provider-azure-conformance-with-ci-artifacts
  • pull-cluster-api-provider-azure-e2e
  • pull-cluster-api-provider-azure-e2e-aks
  • pull-cluster-api-provider-azure-test
  • pull-cluster-api-provider-azure-verify
  • pull-cluster-api-provider-azure-windows-containerd-upstream-with-ci-artifacts

In response to this:

/test ls

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.

@jackfrancis
Copy link
Contributor Author

/test pull-cluster-api-provider-azure-apidiff
/test pull-cluster-api-provider-azure-apiversion-upgrade
/test pull-cluster-api-provider-azure-e2e-optional
/test pull-cluster-api-provider-azure-e2e-workload-upgrade
/test pull-cluster-api-provider-azure-windows-containerd-upstream-with-ci-artifacts-serial-slow

@jackfrancis jackfrancis force-pushed the go1.20 branch 2 times, most recently from 33d9957 to 7f08b20 Compare April 25, 2023 02:01
@Jont828
Copy link
Contributor

Jont828 commented Apr 25, 2023

Looking good so far, do you know if there's anything we'll need to refactor? Or do we expect this to be fully backward compatible?

@codecov-commenter
Copy link

Codecov Report

Patch coverage: 100.00% and no project coverage change.

Comparison is base (b084e15) 52.51% compared to head (2908f13) 52.51%.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #3478   +/-   ##
=======================================
  Coverage   52.51%   52.51%           
=======================================
  Files         182      182           
  Lines       18175    18176    +1     
=======================================
+ Hits         9545     9546    +1     
  Misses       8090     8090           
  Partials      540      540           
Impacted Files Coverage Δ
...ool_deployments/machinepool_deployment_strategy.go 84.11% <100.00%> (+0.09%) ⬆️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@jackfrancis
Copy link
Contributor Author

/test pull-cluster-api-provider-azure-apidiff
/test pull-cluster-api-provider-azure-apiversion-upgrade
/test pull-cluster-api-provider-azure-e2e-optional
/test pull-cluster-api-provider-azure-e2e-workload-upgrade
/test pull-cluster-api-provider-azure-windows-containerd-upstream-with-ci-artifacts-serial-slow

@jackfrancis
Copy link
Contributor Author

@Jont828 I'm relying upon tests to tell us whether or not this is a breaking change. So far I've overcome a (IMO) spurious linter error for math/rand, but that's it.

@jackfrancis
Copy link
Contributor Author

/retest

1 similar comment
@jackfrancis
Copy link
Contributor Author

/retest

@jackfrancis
Copy link
Contributor Author

@marosset @jsturtevant how important is it to get positive signal from the "serial-slow" test, is the fidelity of that signal poor in your experiences?

Copy link
Contributor

@mboersma mboersma left a comment

Choose a reason for hiding this comment

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

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Apr 25, 2023
@k8s-ci-robot
Copy link
Contributor

LGTM label has been added.

Git tree hash: 5c463f11c5e7dac59829dc424e9f4592042cff9a

@lzhecheng
Copy link
Contributor

@jackfrancis may I ask how is the PR going? Our CI pipeline needs golang 1.20 to build images. Thanks a lot!

@jackfrancis
Copy link
Contributor Author

/retest

@jackfrancis
Copy link
Contributor Author

@lzhecheng I've been waiting for a positive signal from the pull-cluster-api-provider-azure-windows-containerd-upstream-with-ci-artifacts-serial-slow test, it's re-running now...

@k8s-ci-robot
Copy link
Contributor

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

Test name Commit Details Required Rerun command
pull-cluster-api-provider-azure-windows-containerd-upstream-with-ci-artifacts-serial-slow 2908f13 link false /test pull-cluster-api-provider-azure-windows-containerd-upstream-with-ci-artifacts-serial-slow

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/test-infra repository. I understand the commands that are listed here.

@jackfrancis
Copy link
Contributor Author

@marosset @jsturtevant @CecileRobertMichon I don't think any of the "serial-slow" conformance test case failures have anything to do with the fact that we're using golang v1.20 to compile the CAPZ bits.

Does anyone disagree? Anything else we want to validate before we consider for merge?

@jsturtevant
Copy link
Contributor

Yes, The failures are due to a bug with HPA tests upstream and cause a timeout in the test. The main set of tests are passing with pull-cluster-api-provider-azure-windows-containerd-upstream-with-ci-artifacts

/lgtm

@jsturtevant
Copy link
Contributor

this is the upstream pr that will resolve the hpa tests: kubernetes/kubernetes#117192

@jackfrancis
Copy link
Contributor Author

/approve

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: jackfrancis

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

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Apr 28, 2023
@jackfrancis
Copy link
Contributor Author

/cherry-pick release-1.8

@CecileRobertMichon @mboersma normally this wouldn't qualify for a patch, right? but in order to unblock cloud-provider-azure I believe we're going to need the release-1.8 branch to build from go1.20

@k8s-infra-cherrypick-robot

@jackfrancis: once the present PR merges, I will cherry-pick it on top of release-1.8 in a new PR and assign it to you.

In response to this:

/cherry-pick release-1.8

@CecileRobertMichon @mboersma normally this wouldn't qualify for a patch, right? but in order to unblock cloud-provider-azure I believe we're going to need the release-1.8 branch to build from go1.20

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.

@k8s-ci-robot k8s-ci-robot merged commit 7af4c11 into kubernetes-sigs:main Apr 28, 2023
@k8s-ci-robot k8s-ci-robot added this to the v1.9 milestone Apr 28, 2023
@k8s-infra-cherrypick-robot

@jackfrancis: #3478 failed to apply on top of branch "release-1.8":

Applying: update golang to v1.20
Using index info to reconstruct a base tree...
M	.github/workflows/cover.yaml
M	.github/workflows/dependabot-code-gen.yml
M	.github/workflows/release.yaml
A	.github/workflows/scan.yml
M	.golangci.yml
M	Makefile
M	Tiltfile
M	docs/book/src/developers/development.md
M	go.mod
M	hack/tools/go.mod
Falling back to patching base and 3-way merge...
Auto-merging hack/tools/go.mod
Auto-merging go.mod
Auto-merging docs/book/src/developers/development.md
Auto-merging Tiltfile
Auto-merging Makefile
Auto-merging .golangci.yml
CONFLICT (modify/delete): .github/workflows/scan.yml deleted in HEAD and modified in update golang to v1.20. Version update golang to v1.20 of .github/workflows/scan.yml left in tree.
Auto-merging .github/workflows/release.yaml
Auto-merging .github/workflows/dependabot-code-gen.yml
Auto-merging .github/workflows/cover.yaml
CONFLICT (content): Merge conflict in .github/workflows/cover.yaml
error: Failed to merge in the changes.
hint: Use 'git am --show-current-patch=diff' to see the failed patch
Patch failed at 0001 update golang to v1.20
When you have resolved this problem, run "git am --continue".
If you prefer to skip this patch, run "git am --skip" instead.
To restore the original branch and stop patching, run "git am --abort".

In response to this:

/cherry-pick release-1.8

@CecileRobertMichon @mboersma normally this wouldn't qualify for a patch, right? but in order to unblock cloud-provider-azure I believe we're going to need the release-1.8 branch to build from go1.20

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.

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. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. kind/cleanup Categorizes issue or PR as related to cleaning up code, process, or technical debt. lgtm "Looks good to me", indicates that a PR is ready to be merged. release-note Denotes a PR that will be considered when it comes time to generate release notes. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

8 participants