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

[internal/tools] bump golangci-lint to v1.54.2 #19752

Merged
merged 20 commits into from Oct 16, 2023

Conversation

pducolin
Copy link
Contributor

@pducolin pducolin commented Sep 26, 2023

What does this PR do?

Bump golangci-lint to v1.54.2

Motivation

Bump dependency and run on latest stable golangci-lint version

Additional Notes

For teams: new linter errors on current code are muted inline with the format

//nolint:[linter name] // TODO fix [linter name] [rule name]

It is up to the team to fix these errors. The agent platform team will use this new process from now on, as any golangci-lint bump will raise new errors we don't want to keep updating the reference commit new-from-rev.

We are working on adding a job that is allowed to fail and that runs linters removing these //nolint:[] // TODO [][] to keep track of legacy issues.

Possible Drawbacks / Trade-offs

Describe how to test/QA your changes

Reviewer's Checklist

  • If known, an appropriate milestone has been selected; otherwise the Triage milestone is set.
  • Use the major_change label if your change either has a major impact on the code base, is impacting multiple teams or is changing important well-established internals of the Agent. This label will be use during QA to make sure each team pay extra attention to the changed behavior. For any customer facing change use a releasenote.
  • A release note has been added or the changelog/no-changelog label has been applied.
  • Changed code has automated tests for its functionality.
  • Adequate QA/testing plan information is provided if the qa/skip-qa label is not applied.
  • At least one team/.. label has been applied, indicating the team(s) that should QA this change.
  • If applicable, docs team has been notified or an issue has been opened on the documentation repo.
  • If applicable, the need-change/operator and need-change/helm labels have been applied.
  • If applicable, the k8s/<min-version> label, indicating the lowest Kubernetes version compatible with this feature.
  • If applicable, the config template has been updated.

@pducolin pducolin added changelog/no-changelog team/agent-platform qa/skip-qa [deprecated] [DEPRECATED] Please use qa/done or qa/no-code-change to skip creating a QA card labels Sep 26, 2023
@pducolin pducolin added this to the 7.49.0 milestone Sep 26, 2023
@pducolin pducolin requested a review from a team as a code owner September 26, 2023 16:19
github.com/goware/modvendor v0.5.0
github.com/mgechev/revive v1.2.5
github.com/mgechev/revive v1.3.2
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Note for reviewers: revive bumped while bumping golangci-lint

@pducolin pducolin marked this pull request as draft September 27, 2023 09:19
github.com/Masterminds/semver v1.5.0 // indirect
github.com/Microsoft/go-winio v0.6.1 // indirect
github.com/OpenPeeDeeP/depguard v1.1.1 // indirect
github.com/OpenPeeDeeP/depguard/v2 v2.1.0 // indirect
Copy link
Contributor Author

Choose a reason for hiding this comment

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

note for reviewers: this is why I had to update the depguard config 😢

@pducolin pducolin force-pushed the pducolin/APL-2071-bump-golangcilint branch from 3564e24 to 1c8b60a Compare September 27, 2023 13:37
@pducolin pducolin force-pushed the pducolin/APL-2071-bump-golangcilint branch 5 times, most recently from a01296d to 105cbf7 Compare September 28, 2023 07:55
@pducolin pducolin marked this pull request as ready for review September 28, 2023 09:10
@pducolin pducolin requested review from a team as code owners September 28, 2023 09:10
Copy link
Contributor

@remeh remeh left a comment

Choose a reason for hiding this comment

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

Looks good for the files AML owns, thank you for this!

@pducolin pducolin merged commit 8f03ffb into main Oct 16, 2023
174 of 176 checks passed
@pducolin pducolin deleted the pducolin/APL-2071-bump-golangcilint branch October 16, 2023 09:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
changelog/no-changelog component/system-probe qa/skip-qa [deprecated] [DEPRECATED] Please use qa/done or qa/no-code-change to skip creating a QA card team/agent-platform
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet