-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
chore: update golangci-lint to v1.61.0 #13602
Conversation
Signed-off-by: william.vanhevelingen <[email protected]>
Signed-off-by: william.vanhevelingen <[email protected]>
I believe this fixes memory usage issues, currently occasionally hit 84gb of memory usage before OOM. |
Which part fixes that? |
The newer version of golangci-lint |
Oh, during linting, not at runtime. More coffee needed. Ok - I remember you saying it did mad things for you. |
@@ -43,7 +43,6 @@ func (s *CronSuite) TearDownSuite() { | |||
|
|||
func (s *CronSuite) TestBasic() { | |||
s.Run("TestBasic", func() { | |||
s.T().Parallel() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These don't do anything, and as this was the only attempt in the code to parallelise tests, we could remove the -parallel
flag on the test suite.
I'd like to find a way to reintroduce parallel testing in the future though, so let's not do that.
Motivation
Modifications
Changed
exportloopref
tocopyloopvar
Fixed the following lint errors
printf: non-constant format string in call to github.com/sirupsen/logrus.Infof
printf: non-constant format string in call to (*testing.common).Fatalf (govet)
printf: non-constant format string in call to fmt.Sprintf (govet)
printf: non-constant format string in call to google.golang.org/grpc/status.Errorf (govet)
suite-broken-parallel: testify v1 does not support suite's parallel tests and subtests
suite-subtest-run: use s.Run to run subtest (testifylint)
The copy of the 'for' variable "limit" can be deleted (Go 1.22+) (copyloopvar)
Verification
Lint passes and existing test coverage