Skip to content

[8.15](backport #41077) [Heartbeat] Add managed status reporter at monitor factory level #23589

[8.15](backport #41077) [Heartbeat] Add managed status reporter at monitor factory level

[8.15](backport #41077) [Heartbeat] Add managed status reporter at monitor factory level #23589

Triggered via pull request October 4, 2024 16:10
Status Failure
Total duration 8m 38s
Artifacts

golangci-lint.yml

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

Annotations

11 errors and 8 warnings
lint (windows): heartbeat/monitors/monitor_test.go#L28
ST1019: package "github.com/elastic/elastic-agent-libs/config" is being imported more than once (stylecheck)
lint (windows): heartbeat/monitors/monitor_test.go#L29
ST1019(related information): other import of "github.com/elastic/elastic-agent-libs/config" (stylecheck)
lint (windows): heartbeat/monitors/monitor_test.go#L170
Error return value of `reg.Add` is not checked (errcheck)
lint (windows): heartbeat/monitors/monitor_test.go#L181
ST1023: should omit type bool from declaration; it will be inferred from the right-hand side (stylecheck)
lint (windows)
issues found
lint (linux)
The job was canceled because "windows" failed.
lint (linux): heartbeat/monitors/monitor_test.go#L28
ST1019: package "github.com/elastic/elastic-agent-libs/config" is being imported more than once (stylecheck)
lint (linux): heartbeat/monitors/monitor_test.go#L29
ST1019(related information): other import of "github.com/elastic/elastic-agent-libs/config" (stylecheck)
lint (linux): heartbeat/monitors/monitor_test.go#L170
Error return value of `reg.Add` is not checked (errcheck)
lint (linux): heartbeat/monitors/monitor_test.go#L181
ST1023: should omit type bool from declaration; it will be inferred from the right-hand side (stylecheck)
lint (linux)
issues found
lint (darwin)
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 (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 (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']