Skip to content

[8.x](backport #41891) Invoke m.Run on TestMain and fix test flakiness #25575

[8.x](backport #41891) Invoke m.Run on TestMain and fix test flakiness

[8.x](backport #41891) Invoke m.Run on TestMain and fix test flakiness #25575

Triggered via pull request December 5, 2024 11:17
Status Failure
Total duration 8m 19s
Artifacts

golangci-lint.yml

on: pull_request
Matrix: lint
Fit to window
Zoom out
Zoom in

Annotations

10 errors and 8 warnings
lint (linux): filebeat/input/filestream/input_integration_test.go#L326
Error return value of `writer.Write` is not checked (errcheck)
lint (linux): filebeat/input/filestream/input_integration_test.go#L1037
Error return value of `f.Write` is not checked (errcheck)
lint (linux): filebeat/processor/add_kubernetes_metadata/matchers_test.go#L187
Error return value of `testConfig.SetString` is not checked (errcheck)
lint (linux): filebeat/processor/add_kubernetes_metadata/matchers_test.go#L191
Error return value of `testConfig.SetString` is not checked (errcheck)
lint (linux): 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)
lint (linux): 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)
lint (linux): metricbeat/autodiscover/appender/kubernetes/token/token_test.go#L110
Error return value of `ioutil.WriteFile` is not checked (errcheck)
lint (linux)
issues found
lint (windows)
The job was canceled because "linux" failed.
lint (windows)
The operation was canceled.
lint (darwin)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
lint (darwin)
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']
lint (darwin)
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']
lint (linux)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
lint (linux)
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']
lint (linux)
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']
lint (windows)
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']
lint (windows)
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']