Skip to content

Hub metrics test

Hub metrics test #347

Triggered via pull request February 16, 2024 19:32
Status Failure
Total duration 3m 40s
Artifacts

lint.yaml

on: pull_request
Formatters + Linters (Static Analysis) for Go
3m 32s
Formatters + Linters (Static Analysis) for Go
Fit to window
Zoom out
Zoom in

Annotations

7 errors and 1 warning
Formatters + Linters (Static Analysis) for Go: tests/pkg/kustomize/render.go#L27
m.AsYaml undefined (type resmap.ResMap has no field or method AsYaml)
Formatters + Linters (Static Analysis) for Go: collectors/metrics/pkg/metricsclient/metricsclient.go#L103
c.metrics.GaugeRequestRetrieve.WithLabelValues(c.metricsName, "200").Inc undefined (type prometheus.Gauge has no field or method Inc)
Formatters + Linters (Static Analysis) for Go: operators/multiclusterobservability/controllers/placementrule/manifestwork.go#L459
createUpdateResourcesForHubMetricsCollection - result 0 (error) is always nil (unparam)
Formatters + Linters (Static Analysis) for Go: operators/multiclusterobservability/controllers/placementrule/predicate_func.go#L123
S1008: should use 'return e.Object.GetName() == hubEndpointOperatorName' instead of 'if e.Object.GetName() == hubEndpointOperatorName { return true }; return false' (gosimple)
Formatters + Linters (Static Analysis) for Go: operators/endpointmetrics/controllers/observabilityendpoint/observabilityaddon_controller.go#L126
SA5011(related information): this check suggests that the pointer can be nil (staticcheck)
Formatters + Linters (Static Analysis) for Go
Process completed with exit code 2.
Formatters + Linters (Static Analysis) for Go
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, actions/setup-go@v3, actions/cache@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.