Skip to content

Export currentOP uptime query metrics #26

Export currentOP uptime query metrics

Export currentOP uptime query metrics #26

Re-run triggered September 8, 2023 14:32
Status Failure
Total duration 2m 27s
Artifacts

lint.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

10 errors
Lint Check: exporter/currentop_collector_test.go#L42
[golangci-lint] reported by reviewdog 🐶 Error return value of `database.Drop` is not checked (errcheck) Raw Output: exporter/currentop_collector_test.go:42:15: Error return value of `database.Drop` is not checked (errcheck) database.Drop(ctx) ^
Lint Check: exporter/currentop_collector.go#L59
[golangci-lint] reported by reviewdog 🐶 Function 'collect' has too many statements (50 > 40) (funlen) Raw Output: exporter/currentop_collector.go:59: Function 'collect' has too many statements (50 > 40) (funlen) func (d *currentopCollector) collect(ch chan<- prometheus.Metric) {
Lint Check: exporter/currentop_collector.go#L124
[golangci-lint] reported by reviewdog 🐶 var-naming: don't use underscores in Go names; var microsecs_running should be microsecsRunning (revive) Raw Output: exporter/currentop_collector.go:124:3: var-naming: don't use underscores in Go names; var microsecs_running should be microsecsRunning (revive) microsecs_running, ok := bsonMapElement["microsecs_running"].(int64) ^
Lint Check: exporter/currentop_collector.go#L37
[golangci-lint] reported by reviewdog 🐶 exported: exported var ErrInvalidOrMissingInprogEntry should have comment or be unexported (revive) Raw Output: exporter/currentop_collector.go:37:5: exported: exported var ErrInvalidOrMissingInprogEntry should have comment or be unexported (revive) var ErrInvalidOrMissingInprogEntry = fmt.Errorf("invalid or misssing inprog entry in currentop results") ^
Lint Check: main.go#L52
[golangci-lint] reported by reviewdog 🐶 tag is not aligned, should be: help:"Enable collecting metrics currentop admin command" name:"collector.currentopmetrics" (tagalign) Raw Output: main.go:52:32: tag is not aligned, should be: help:"Enable collecting metrics currentop admin command" name:"collector.currentopmetrics" (tagalign) EnableCurrentopMetrics bool `name:"collector.currentopmetrics" help:"Enable collecting metrics currentop admin command"` ^
Lint Check: exporter/currentop_collector.go#L96
[golangci-lint] reported by reviewdog 🐶 unnecessary leading newline (whitespace) Raw Output: exporter/currentop_collector.go:96: unnecessary leading newline (whitespace) for _, bsonMap := range inprog {
Lint Check: exporter/currentop_collector.go#L31
[golangci-lint] reported by reviewdog 🐶 found a struct that contains a context.Context field (containedctx) Raw Output: exporter/currentop_collector.go:31:2: found a struct that contains a context.Context field (containedctx) ctx context.Context ^
Lint Check: exporter/currentop_collector.go#L83
[golangci-lint] reported by reviewdog 🐶 return with no blank line before (nlreturn) Raw Output: exporter/currentop_collector.go:83:3: return with no blank line before (nlreturn) return ^
Lint Check: exporter/currentop_collector.go#L101
[golangci-lint] reported by reviewdog 🐶 break with no blank line before (nlreturn) Raw Output: exporter/currentop_collector.go:101:4: break with no blank line before (nlreturn) break ^
Lint Check
reviewdog: Too many results (annotations) in diff. You may miss some annotations due to GitHub limitation for annotation created by logging command. Please check GitHub Actions log console to see all results. Limitation: - 10 warning annotations and 10 error annotations per step - 50 annotations per job (sum of annotations from all the steps) - 50 annotations per run (separate from the job annotations, these annotations aren't created by users) Source: https://github.community/t5/GitHub-Actions/Maximum-number-of-annotations-that-can-be-created-using-GitHub/m-p/39085