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

chore(deps): Bump golangci-lint from v1.61.0 to v1.62.0 #16172

Merged
merged 4 commits into from
Nov 12, 2024

Conversation

zak-pawel
Copy link
Collaborator

@zak-pawel zak-pawel commented Nov 10, 2024

Summary

config/config_test.go:62:2                                                    testifylint  formatter: remove unnecessary fmt.Sprintf
plugins/common/parallel/parallel_test.go:34:2                                 testifylint  formatter: remove unnecessary fmt.Sprintf
plugins/common/parallel/parallel_test.go:66:2                                 testifylint  formatter: remove unnecessary fmt.Sprintf
plugins/inputs/aliyuncms/aliyuncms_test.go:437:4                              testifylint  error-nil: use require.NoError
plugins/inputs/dcos/dcos_test.go:203:5                                        testifylint  formatter: remove unnecessary fmt.Sprintf
plugins/inputs/dcos/dcos_test.go:274:5                                        testifylint  formatter: remove unnecessary fmt.Sprintf
plugins/inputs/dcos/dcos_test.go:348:5                                        testifylint  formatter: remove unnecessary fmt.Sprintf
plugins/inputs/dcos/dcos_test.go:437:5                                        testifylint  formatter: remove unnecessary fmt.Sprintf
plugins/inputs/intel_rdt/intel_rdt_test.go:65:2                               testifylint  useless-assert: meaningless assertion
plugins/inputs/intel_rdt/intel_rdt_test.go:66:2                               testifylint  useless-assert: meaningless assertion
plugins/inputs/internal/internal_test.go:111:4                                testifylint  formatter: remove unnecessary fmt.Sprintf
plugins/inputs/postgresql_extensible/postgresql_extensible_test.go:221:3      testifylint  formatter: remove unnecessary fmt.Sprintf
plugins/inputs/postgresql_extensible/postgresql_extensible_test.go:226:3      testifylint  formatter: remove unnecessary fmt.Sprintf
plugins/inputs/postgresql_extensible/postgresql_extensible_test.go:231:3      testifylint  formatter: remove unnecessary fmt.Sprintf
plugins/inputs/postgresql_extensible/postgresql_extensible_test.go:236:3      testifylint  formatter: remove unnecessary fmt.Sprintf
plugins/inputs/vsphere/vsphere_test.go:521:2                                  testifylint  formatter: remove unnecessary fmt.Sprintf
plugins/inputs/vsphere/vsphere_test.go:624:3                                  testifylint  formatter: remove unnecessary fmt.Sprintf
plugins/inputs/win_perf_counters/win_perf_counters_integration_test.go:175:3  testifylint  useless-assert: meaningless assertion
plugins/inputs/win_perf_counters/win_perf_counters_integration_test.go:218:3  testifylint  useless-assert: meaningless assertion
plugins/inputs/win_perf_counters/win_perf_counters_integration_test.go:259:3  testifylint  useless-assert: meaningless assertion
plugins/inputs/win_perf_counters/win_perf_counters_integration_test.go:300:3  testifylint  useless-assert: meaningless assertion
plugins/inputs/win_perf_counters/win_perf_counters_integration_test.go:369:3  testifylint  useless-assert: meaningless assertion
plugins/outputs/cloudwatch/cloudwatch_test.go:71:3                            testifylint  formatter: remove unnecessary fmt.Sprintf
plugins/outputs/cloudwatch/cloudwatch_test.go:75:3                            testifylint  formatter: remove unnecessary fmt.Sprintf
plugins/outputs/cloudwatch/cloudwatch_test.go:85:2                            testifylint  formatter: remove unnecessary fmt.Sprintf
plugins/outputs/cloudwatch/cloudwatch_test.go:94:2                            testifylint  formatter: remove unnecessary fmt.Sprintf
plugins/outputs/cloudwatch/cloudwatch_test.go:108:2                           testifylint  formatter: remove unnecessary fmt.Sprintf
plugins/parsers/dropwizard/parser_test.go:114:2                               testifylint  formatter: remove unnecessary fmt.Sprintf
plugins/processors/starlark/starlark_test.go:3746:2                           testifylint  formatter: remove unnecessary fmt.Sprintf
plugins/processors/starlark/starlark_test.go:3756:3                           testifylint  formatter: remove unnecessary fmt.Sprintf
plugins/processors/starlark/starlark_test.go:3775:2                           testifylint  formatter: remove unnecessary fmt.Sprintf

Checklist

  • No AI generated code was used in this PR

@telegraf-tiger telegraf-tiger bot added the chore label Nov 10, 2024
Copy link
Member

@srebhan srebhan left a comment

Choose a reason for hiding this comment

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

Thanks @zak-pawel! Can we revert the way we install the linter in CircleCI to what it was before?

command: go install github.com/golangci/golangci-lint/cmd/golangci-lint@v1.61.0
command: curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.62.0
Copy link
Member

Choose a reason for hiding this comment

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

I'm not a fan of this as it opens a security risk because now everyone with write-access to that shell can execute everything in our CircleCI env. Is this really necessary?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Ok, reverted to go install

@@ -31,7 +31,7 @@ func TestOrderedJobsStayOrdered(t *testing.T) {
p.Stop()

i := 0
require.Len(t, acc.Metrics, 20000, fmt.Sprintf("expected 20k metrics but got %d", len(acc.GetTelegrafMetrics())))
require.Len(t, acc.Metrics, 20000, "expected 20k metrics but got %d", len(acc.GetTelegrafMetrics()))
Copy link
Member

Choose a reason for hiding this comment

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

I think in this case you need Lenf, don't you? In any case, I would just remove the message at all as that's what Len will output anyway.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Message removed.

Copy link
Member

@srebhan srebhan left a comment

Choose a reason for hiding this comment

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

Removing another message. Thanks for your work @zak-pawel!

plugins/common/parallel/parallel_test.go Outdated Show resolved Hide resolved
@telegraf-tiger
Copy link
Contributor

@srebhan srebhan added the ready for final review This pull request has been reviewed and/or tested by multiple users and is ready for a final review. label Nov 12, 2024
@srebhan srebhan assigned DStrand1 and unassigned srebhan Nov 12, 2024
@DStrand1 DStrand1 merged commit 70e1cbc into influxdata:master Nov 12, 2024
27 checks passed
@github-actions github-actions bot added this to the v1.32.3 milestone Nov 12, 2024
srebhan pushed a commit that referenced this pull request Nov 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
chore linter ready for final review This pull request has been reviewed and/or tested by multiple users and is ready for a final review.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants