Skip to content

[7.17](backport #41358) x-pack/filebeat/input/{cel,httpjson}: fix flaky test #24374

[7.17](backport #41358) x-pack/filebeat/input/{cel,httpjson}: fix flaky test

[7.17](backport #41358) x-pack/filebeat/input/{cel,httpjson}: fix flaky test #24374

Triggered via pull request October 24, 2024 01:39
Status Failure
Total duration 8m 14s
Artifacts

golangci-lint.yml

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

Annotations

32 errors and 7 warnings
lint (windows): x-pack/filebeat/input/cel/input_test.go#L621
undefined: userAgent (typecheck)
lint (windows): x-pack/filebeat/input/cel/input_test.go#L623
undefined: userAgent (typecheck)
lint (windows): x-pack/filebeat/input/cel/input_test.go#L1713
undefined: defaultConfig (typecheck)
lint (windows): x-pack/filebeat/input/cel/input_test.go#L1729
undefined: input (typecheck)
lint (windows): x-pack/filebeat/input/cel/input_test.go#L1733
undefined: source (typecheck)
lint (windows): x-pack/filebeat/input/cel/input_test.go#L1734
undefined: input (typecheck)
lint (windows): x-pack/filebeat/input/cel/input_test.go#L1744
cannot use logp.NewLogger("cel_test") (value of type *"github.com/elastic/elastic-agent-libs/logp".Logger) as *"github.com/elastic/beats/v7/libbeat/logp".Logger value in struct literal (typecheck)
lint (windows): x-pack/filebeat/input/cel/input_test.go#L1746
unknown field IDWithoutName in struct literal of type v2.Context (typecheck)
lint (windows): x-pack/filebeat/input/cel/input_test.go#L1755
undefined: input (typecheck)
lint (windows): x-pack/filebeat/input/cel/input_test.go#L1878
cannot use logp.NewLogger("httpjson_test") (value of type *"github.com/elastic/elastic-agent-libs/logp".Logger) as *"github.com/elastic/beats/v7/libbeat/logp".Logger value in struct literal (typecheck)
lint (linux)
The job was canceled because "windows" failed.
lint (linux): x-pack/filebeat/input/cel/input_test.go#L621
undefined: userAgent (typecheck)
lint (linux): x-pack/filebeat/input/cel/input_test.go#L623
undefined: userAgent (typecheck)
lint (linux): x-pack/filebeat/input/cel/input_test.go#L1713
undefined: defaultConfig (typecheck)
lint (linux): x-pack/filebeat/input/cel/input_test.go#L1729
undefined: input (typecheck)
lint (linux): x-pack/filebeat/input/cel/input_test.go#L1733
undefined: source (typecheck)
lint (linux): x-pack/filebeat/input/cel/input_test.go#L1734
undefined: input (typecheck)
lint (linux): x-pack/filebeat/input/cel/input_test.go#L1744
cannot use logp.NewLogger("cel_test") (value of type *"github.com/elastic/elastic-agent-libs/logp".Logger) as *"github.com/elastic/beats/v7/libbeat/logp".Logger value in struct literal (typecheck)
lint (linux): x-pack/filebeat/input/cel/input_test.go#L1746
unknown field IDWithoutName in struct literal of type v2.Context (typecheck)
lint (linux): x-pack/filebeat/input/cel/input_test.go#L1755
undefined: input (typecheck)
lint (linux): x-pack/filebeat/input/cel/input_test.go#L1878
cannot use logp.NewLogger("httpjson_test") (value of type *"github.com/elastic/elastic-agent-libs/logp".Logger) as *"github.com/elastic/beats/v7/libbeat/logp".Logger value in struct literal (typecheck)
lint (darwin)
The job was canceled because "windows" failed.
lint (darwin): x-pack/filebeat/input/cel/input_test.go#L621
undefined: userAgent (typecheck)
lint (darwin): x-pack/filebeat/input/cel/input_test.go#L623
undefined: userAgent (typecheck)
lint (darwin): x-pack/filebeat/input/cel/input_test.go#L1713
undefined: defaultConfig (typecheck)
lint (darwin): x-pack/filebeat/input/cel/input_test.go#L1729
undefined: input (typecheck)
lint (darwin): x-pack/filebeat/input/cel/input_test.go#L1733
undefined: source (typecheck)
lint (darwin): x-pack/filebeat/input/cel/input_test.go#L1734
undefined: input (typecheck)
lint (darwin): x-pack/filebeat/input/cel/input_test.go#L1744
cannot use logp.NewLogger("cel_test") (value of type *"github.com/elastic/elastic-agent-libs/logp".Logger) as *"github.com/elastic/beats/v7/libbeat/logp".Logger value in struct literal (typecheck)
lint (darwin): x-pack/filebeat/input/cel/input_test.go#L1746
unknown field IDWithoutName in struct literal of type v2.Context (typecheck)
lint (darwin): x-pack/filebeat/input/cel/input_test.go#L1755
undefined: input (typecheck)
lint (darwin): x-pack/filebeat/input/cel/input_test.go#L1878
cannot use logp.NewLogger("httpjson_test") (value of type *"github.com/elastic/elastic-agent-libs/logp".Logger) as *"github.com/elastic/beats/v7/libbeat/logp".Logger value in struct literal (typecheck)
lint (windows)
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v3, actions/setup-go@v3, golangci/golangci-lint-action@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
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 (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 (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']