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 golangci-lint version (1.49.0 -> 1.50.1) and enable linters: dupword and testableexamples #4840

Merged
merged 1 commit into from
Nov 17, 2022

Conversation

oscr
Copy link
Contributor

@oscr oscr commented Oct 22, 2022

  • Update golangci-lint version from 1.49.0 -> 1.50.1
  • In golangci-lint 1.50.0 logrlint was renamed loggercheck. Referencehttps://github.com/golangci/golangci-lint/releases/tag/v1.50.0
  • Enable new linters: dupword and testableexamples introduced in 1.50.0

@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label Oct 22, 2022
@k8s-ci-robot k8s-ci-robot added the size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. label Oct 22, 2022
@oscr
Copy link
Contributor Author

oscr commented Oct 22, 2022

Looks like problems with tests or master. Failing on master since: https://github.com/kubernetes-sigs/kustomize/actions/runs/3300605518

@koba1t
Copy link
Member

koba1t commented Oct 31, 2022

Hi @oscr

Thanks for you contributions.

Update golangci-lint version from 1.49.0 -> 1.50.0

Look like you are using v1.50.1. Are you typo for version in that message?

Could you enable testableexamples linter that added by golang-ci v1.50.0 ?

@koba1t
Copy link
Member

koba1t commented Oct 31, 2022

/assign koba1t

@oscr oscr force-pushed the update-golangci-lint branch from ccdb013 to f601148 Compare October 31, 2022 12:07
@oscr oscr changed the title Update golangci-lint version (1.49.0 -> 1.50.1), fix configuration and enable dupword linter Update golangci-lint version (1.49.0 -> 1.50.1) and enable linters: dupword and testableexamples Oct 31, 2022
@oscr
Copy link
Contributor Author

oscr commented Oct 31, 2022

@koba1t Thank you for the review and you are right. I mixed up the version in the pr description. I fixed it and enabled the additional linter as requested.

@oscr
Copy link
Contributor Author

oscr commented Oct 31, 2022

/retest

@koba1t
Copy link
Member

koba1t commented Oct 31, 2022

I think these code changes are not the cause of test failures and tests are successful on my pc.

Could you try to re-run GitHub actions?

@oscr
Copy link
Contributor Author

oscr commented Oct 31, 2022

Agree. The tests seem to be broken on master: https://github.com/kubernetes-sigs/kustomize/actions/runs/3331584091

@oscr oscr force-pushed the update-golangci-lint branch from f601148 to 99bea94 Compare October 31, 2022 15:29
@oscr
Copy link
Contributor Author

oscr commented Oct 31, 2022

But I retriggered GH actions so lets see.

@koba1t
Copy link
Member

koba1t commented Oct 31, 2022

Looks like @natasha41575 working on this problem at #4844.

@koba1t
Copy link
Member

koba1t commented Oct 31, 2022

#4844 is merged.

Could you try to rebase master?
I think that fix test failure on CI.

@oscr oscr force-pushed the update-golangci-lint branch from 99bea94 to e16b0f0 Compare October 31, 2022 18:32
@oscr
Copy link
Contributor Author

oscr commented Oct 31, 2022

Looks like the fix worked perfectly.

@koba1t
Copy link
Member

koba1t commented Nov 1, 2022

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Nov 1, 2022
@KnVerey
Copy link
Contributor

KnVerey commented Nov 17, 2022

/approve

thanks!

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: KnVerey, oscr

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 Nov 17, 2022
@k8s-ci-robot k8s-ci-robot merged commit 7897872 into kubernetes-sigs:master Nov 17, 2022
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. lgtm "Looks good to me", indicates that a PR is ready to be merged. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants