Skip to content

container: refactor collector and support hostprocess #1665

container: refactor collector and support hostprocess

container: refactor collector and support hostprocess #1665

Triggered via pull request March 4, 2025 06:58
Status Failure
Total duration 3m 2s
Artifacts 1

lint.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

12 errors and 3 warnings
test: internal/win32/hcn/hcn_test.go#L28
undefined: hcn.GetEndpointStatistics
test
Process completed with exit code 1.
lint: internal/collector/container/container.go#L320
assignments should only be cuddled with other assignments (wsl)
lint: internal/collector/container/container.go#L511
break with no blank line before (nlreturn)
lint: internal/collector/container/container.go#L815
declarations should never be cuddled (wsl)
lint: internal/osversion/osversion_windows.go#L21
osv is a global variable (gochecknoglobals)
lint: internal/osversion/osversion_windows.go#L22
once is a global variable (gochecknoglobals)
lint: internal/osversion/osversion_windows.go#L36
assignOp: replace `osv.Version = osv.Version | (uint32(v.MinorVersion) << 8)` with `osv.Version |= (uint32(v.MinorVersion) << 8)` (gocritic)
lint: internal/osversion/osversion_windows.go#L37
assignOp: replace `osv.Version = osv.Version | v.MajorVersion` with `osv.Version |= v.MajorVersion` (gocritic)
lint: internal/osversion/osversion_windows.go#L39
return with no blank line before (nlreturn)
lint: internal/osversion/osversion_windows.go#L68
only one cuddle assignment allowed before defer statement (wsl)
lint: internal/osversion/osversion_windows.go#L70
only one cuddle assignment allowed before if statement (wsl)
promtool
Cache not found for keys: setup-go-Windows-x64-go-1.23.6-543c9a0f43ad3e9692dc48b1bb972d439a9bb53b51e306ef1b03c8c11483dc88
test
Cache not found for keys: setup-go-Windows-x64-go-1.23.6-543c9a0f43ad3e9692dc48b1bb972d439a9bb53b51e306ef1b03c8c11483dc88
lint
Cache not found for keys: setup-go-Windows-x64-go-1.23.6-536132963fcee5a9d2a9446d42102ff8cf5aa5c0aae62e1e00d4039dc328df25

Artifacts

Produced during runtime
Name Size
windows_exporter.amd64.exe
11.1 MB