Navigation Menu

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

[Prepare for go1.20] *: Bump versions and fix tests #114766

Merged
merged 3 commits into from Jan 12, 2023

Conversation

MadhavJivrajani
Copy link
Contributor

@MadhavJivrajani MadhavJivrajani commented Jan 2, 2023

What type of PR is this?

/kind cleanup

What this PR does / why we need it:

Commit 1:

Bumping version of govmomi to include changes that
better handle TLS errors. Bump nescessary
to prepare for when the version of Go is
bumped to 1.20.

Command run:

./hack/pin-dependency.sh github.com/vmware/govmomi v0.30.0 

See #114502 (comment)

Commit 2:

This PR also adapts to this bump.

Commit 3:

This commit modifies the unwrap logic of tests for vclib connection tests to accommodate for new error types introduced in go1.20 and be backward compatible with go1.19

Which issue(s) this PR fixes:

Special notes for your reviewer:

On running the canary job for unit tests, the TestWithVerificationWithoutCaCertOrThumbprint test will still fail. See #114502 (comment)

Does this PR introduce a user-facing change?

NONE

Additional documentation e.g., KEPs (Kubernetes Enhancement Proposals), usage docs, etc.:


/priority important-soon
/assign @liggitt @dims

(I messed up something in git because of which the previous PR closed, apologies!)

@k8s-ci-robot k8s-ci-robot added the release-note-none Denotes a PR that doesn't merit a release note. label Jan 2, 2023
@k8s-ci-robot k8s-ci-robot added kind/cleanup Categorizes issue or PR as related to cleaning up code, process, or technical debt. priority/important-soon Must be staffed and worked on either currently, or very soon, ideally in time for the next release. size/M Denotes a PR that changes 30-99 lines, ignoring generated files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. do-not-merge/needs-sig Indicates an issue or PR lacks a `sig/foo` label and requires one. needs-triage Indicates an issue or PR lacks a `triage/foo` label and requires one. labels Jan 2, 2023
@MadhavJivrajani
Copy link
Contributor Author

MadhavJivrajani commented Jan 2, 2023

/test pull-kubernetes-unit-go-canary

The TestWithVerificationWithoutCaCertOrThumbprint test will still fail.
See #114502 (comment)

@k8s-ci-robot k8s-ci-robot added area/apiserver area/cloudprovider area/code-generation area/dependency Issues or PRs related to dependency changes area/kubectl sig/api-machinery Categorizes an issue or PR as relevant to SIG API Machinery. sig/auth Categorizes an issue or PR as relevant to SIG Auth. sig/cli Categorizes an issue or PR as relevant to SIG CLI. sig/cloud-provider Categorizes an issue or PR as relevant to SIG Cloud Provider. sig/node Categorizes an issue or PR as relevant to SIG Node. sig/storage Categorizes an issue or PR as relevant to SIG Storage. and removed do-not-merge/needs-sig Indicates an issue or PR lacks a `sig/foo` label and requires one. labels Jan 2, 2023
@liggitt
Copy link
Member

liggitt commented Jan 2, 2023

xref kubernetes/release#2815

@liggitt
Copy link
Member

liggitt commented Jan 3, 2023

hmm... check-dependency-stats thinks total dependencies increased by 4:

 {
-	"directDependencies": 212,
-	"transitiveDependencies": 234,
-	"totalDependencies": 285,
+	"directDependencies": 213,
+	"transitiveDependencies": 238,
+	"totalDependencies": 289,
 	"maxDepthOfDependencies": 23
 }

@liggitt
Copy link
Member

liggitt commented Jan 3, 2023

/test pull-kubernetes-unit-go-canary

@k8s-ci-robot k8s-ci-robot added approved Indicates a PR has been approved by an approver from all required OWNERS files. needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. labels Jan 11, 2023
@k8s-ci-robot k8s-ci-robot removed the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Jan 12, 2023
@k8s-ci-robot k8s-ci-robot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Jan 12, 2023
Bumping version to include changes that
better handle TLS errors. Bump nescessary
to prepare for when the version of Go is
bumped to 1.20

Signed-off-by: Madhav Jivrajani <madhav.jiv@gmail.com>
Signed-off-by: Madhav Jivrajani <madhav.jiv@gmail.com>
Modify unwrap error utility to make it work with go1.20
This version of Go introduces a new layer of wrapping via
a new error type. The commit accounts for that while being
compatible with go1.19

Signed-off-by: Madhav Jivrajani <madhav.jiv@gmail.com>
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: liggitt, MadhavJivrajani

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 sig/architecture Categorizes an issue or PR as relevant to SIG Architecture. sig/cluster-lifecycle Categorizes an issue or PR as relevant to SIG Cluster Lifecycle. sig/instrumentation Categorizes an issue or PR as relevant to SIG Instrumentation. labels Jan 12, 2023
@liggitt
Copy link
Member

liggitt commented Jan 12, 2023

/lgtm

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

LGTM label has been added.

Git tree hash: 7603391429f359dfcd96b9e781a9574b21384b19

@k8s-ci-robot k8s-ci-robot merged commit 4802d7b into kubernetes:master Jan 12, 2023
SIG Node PR Triage automation moved this from Needs Reviewer to Done Jan 12, 2023
@k8s-ci-robot k8s-ci-robot added this to the v1.27 milestone Jan 12, 2023
k8s-ci-robot added a commit that referenced this pull request May 23, 2023
[1.26] Cherry Pick of #114766: [Prepare for go1.20] *: Bump versions and fix tests
k8s-ci-robot added a commit that referenced this pull request May 23, 2023
[1.24] Cherry Pick of #114766: [Prepare for go1.20] *: Bump versions and fix tests
k8s-ci-robot added a commit that referenced this pull request May 23, 2023
[1.25] Cherry Pick of #114766: [Prepare for go1.20] *: Bump versions and fix tests
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. area/apiserver area/cloudprovider area/code-generation area/dependency Issues or PRs related to dependency changes area/kubectl 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. priority/important-soon Must be staffed and worked on either currently, or very soon, ideally in time for the next release. release-note-none Denotes a PR that doesn't merit a release note. sig/api-machinery Categorizes an issue or PR as relevant to SIG API Machinery. sig/architecture Categorizes an issue or PR as relevant to SIG Architecture. sig/auth Categorizes an issue or PR as relevant to SIG Auth. sig/cli Categorizes an issue or PR as relevant to SIG CLI. sig/cloud-provider Categorizes an issue or PR as relevant to SIG Cloud Provider. sig/cluster-lifecycle Categorizes an issue or PR as relevant to SIG Cluster Lifecycle. sig/instrumentation Categorizes an issue or PR as relevant to SIG Instrumentation. sig/node Categorizes an issue or PR as relevant to SIG Node. sig/storage Categorizes an issue or PR as relevant to SIG Storage. size/M Denotes a PR that changes 30-99 lines, ignoring generated files. triage/accepted Indicates an issue or PR is ready to be actively worked on.
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

None yet

6 participants