Invoke m.Run on TestMain and fix test flakiness #25553
Annotations
6 errors and 3 warnings
golangci-lint:
filebeat/processor/add_kubernetes_metadata/matchers_test.go#L187
Error return value of `testConfig.SetString` is not checked (errcheck)
|
golangci-lint:
filebeat/processor/add_kubernetes_metadata/matchers_test.go#L191
Error return value of `testConfig.SetString` is not checked (errcheck)
|
golangci-lint:
metricbeat/autodiscover/appender/kubernetes/token/token_test.go#L21
SA1019: "io/ioutil" has been deprecated since Go 1.19: As of Go 1.16, the same functionality is now provided by package [io] or package [os], and those implementations should be preferred in new code. See the specific function documentation for details. (staticcheck)
|
golangci-lint:
metricbeat/autodiscover/appender/kubernetes/token/token_test.go#L102
Error return value of `(*github.com/elastic/elastic-agent-libs/config.C).Unpack` is not checked (errcheck)
|
golangci-lint:
metricbeat/autodiscover/appender/kubernetes/token/token_test.go#L110
Error return value of `ioutil.WriteFile` is not checked (errcheck)
|
golangci-lint
issues found
|
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
golangci-lint
Unexpected input(s) 'skip-go-installation', valid inputs are ['version', 'install-mode', 'working-directory', 'github-token', 'only-new-issues', 'skip-cache', 'skip-save-cache', 'problem-matchers', 'args', 'cache-invalidation-interval']
|
Post golangci-lint
Unexpected input(s) 'skip-go-installation', valid inputs are ['version', 'install-mode', 'working-directory', 'github-token', 'only-new-issues', 'skip-cache', 'skip-save-cache', 'problem-matchers', 'args', 'cache-invalidation-interval']
|
Loading