Skip to content

Optimize memory allocations in the event processing pipeline #11921

Optimize memory allocations in the event processing pipeline

Optimize memory allocations in the event processing pipeline #11921

Triggered via pull request October 18, 2023 10:46
Status Failure
Total duration 14m 5s
Artifacts
This run and associated checks have been archived and are scheduled for deletion. Learn more about checks retention

golangci-lint.yml

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

Annotations

12 errors and 7 warnings
lint (linux): libbeat/beat/event_editor.go#L446
Consider pre-allocating `list` (prealloc)
lint (linux): libbeat/common/jsontransform/expand.go#L1
: # github.com/elastic/beats/v7/libbeat/common/jsontransform [github.com/elastic/beats/v7/libbeat/common/jsontransform.test]
lint (linux): libbeat/common/jsontransform/jsonhelper_test.go#L232
cannot use event (variable of type *beat.Event) as *beat.EventEditor value in argument to WriteJSONKeys
lint (linux): libbeat/common/jsontransform/jsonhelper_test.go#L422
cannot use event (variable of type *beat.Event) as *beat.EventEditor value in argument to WriteJSONKeys (typecheck)
lint (linux): libbeat/processors/actions/append_test.go#L23
File is not `goimports`-ed with -local github.com/elastic (goimports)
lint (linux): libbeat/processors/actions/extract_field_test.go#L146
Error return value of `logp.TestingSetup` is not checked (errcheck)
lint (linux): libbeat/processors/actions/truncate_fields.go#L88
non-wrapping format verb for fmt.Errorf. Use `%w` to format errors (errorlint)
lint (linux): libbeat/processors/add_cloud_metadata/provider_alibaba_cloud_test.go#L36
Error return value of `w.Write` is not checked (errcheck)
lint (linux): libbeat/processors/add_cloud_metadata/provider_alibaba_cloud_test.go#L40
Error return value of `w.Write` is not checked (errcheck)
lint (linux): libbeat/processors/add_cloud_metadata/provider_alibaba_cloud_test.go#L44
Error return value of `w.Write` is not checked (errcheck)
lint (windows)
The job was canceled because "linux" failed.
lint (windows)
The operation was canceled.
lint (darwin)
Unexpected input(s) 'skip-go-installation', valid inputs are ['version', 'args', 'working-directory', 'github-token', 'only-new-issues', 'skip-cache', 'skip-pkg-cache', 'skip-build-cache', 'install-mode']
lint (darwin)
Unexpected input(s) 'skip-go-installation', valid inputs are ['version', 'args', 'working-directory', 'github-token', 'only-new-issues', 'skip-cache', 'skip-pkg-cache', 'skip-build-cache', 'install-mode']
lint (linux)
Unexpected input(s) 'skip-go-installation', valid inputs are ['version', 'args', 'working-directory', 'github-token', 'only-new-issues', 'skip-cache', 'skip-pkg-cache', 'skip-build-cache', 'install-mode']
lint (linux)
Unexpected input(s) 'skip-go-installation', valid inputs are ['version', 'args', 'working-directory', 'github-token', 'only-new-issues', 'skip-cache', 'skip-pkg-cache', 'skip-build-cache', 'install-mode']
lint (windows)
Unexpected input(s) 'skip-go-installation', valid inputs are ['version', 'args', 'working-directory', 'github-token', 'only-new-issues', 'skip-cache', 'skip-pkg-cache', 'skip-build-cache', 'install-mode']
lint (windows)
Unexpected input(s) 'skip-go-installation', valid inputs are ['version', 'args', 'working-directory', 'github-token', 'only-new-issues', 'skip-cache', 'skip-pkg-cache', 'skip-build-cache', 'install-mode']
lint (windows)
Failed to save: "/usr/bin/tar" failed with error: The process '/usr/bin/tar' failed with exit code 1