neondatabase / autoscaling

Postgres vertical autoscaling in k8s
Apache License 2.0
166 stars 21 forks source link

CI(lint): golangci-lint 1.60.3 #1067

Closed bayandin closed 2 months ago

bayandin commented 2 months ago

Update golangci-lint to 1.60.3 and fix new warnings

A prerequisite for go 1.23[0]

github-actions[bot] commented 2 months ago

Merging this branch will not change overall coverage

Impacted Packages Coverage Δ :robot:
github.com/neondatabase/autoscaling/neonvm/controllers 12.08% (ø)
github.com/neondatabase/autoscaling/pkg/agent 0.00% (ø)
github.com/neondatabase/autoscaling/pkg/api 3.16% (ø)
github.com/neondatabase/autoscaling/pkg/util 16.27% (ø)

Coverage by file ### Changed files (no unit tests) | Changed File | Coverage Δ | Total | Covered | Missed | :robot: | |--------------|------------|-------|---------|--------|---------| | github.com/neondatabase/autoscaling/neonvm/controllers/vm_controller.go | 25.69% (ø) | 689 | 177 | 512 | | | github.com/neondatabase/autoscaling/neonvm/controllers/vmmigration_controller.go | 0.00% (ø) | 346 | 0 | 346 | | | github.com/neondatabase/autoscaling/pkg/agent/dumpstate.go | 0.00% (ø) | 48 (-1) | 0 | 48 (-1) | | | github.com/neondatabase/autoscaling/pkg/api/versionutils.go | 0.00% (ø) | 48 | 0 | 48 | | | github.com/neondatabase/autoscaling/pkg/api/vminfo.go | 1.64% (ø) | 548 | 9 | 539 | | | github.com/neondatabase/autoscaling/pkg/util/time.go | 0.00% (ø) | 11 | 0 | 11 | | _Please note that the "Total", "Covered", and "Missed" counts above refer to ***code statements*** instead of lines of code. The value in brackets refers to the test coverage of that file in the old version of the code._

HTML Report

Click to open