• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

KusionStack / kusion / 39356399022
46%

Build:
DEFAULT BRANCH: main
Ran 20 Oct 2026 02:04AM UTC
Jobs 1
Files 336
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

20 Oct 2026 01:58AM UTC coverage: 46.335% (+0.02%) from 46.315%
39356399022

push

github

web-flow
ci: migrate golangci-lint to v2 (#1466)

* ci: migrate golangci-lint to v2

golangci-lint v1 is no longer maintained and cannot load modules that
target Go 1.25, which the pending dependency updates need. Move to v2
first, on the current Go version, so the Go bump can follow separately.

- Use golangci-lint v2.14.0 with golangci-lint-action@v9.
- Migrate .golangci.yml to the v2 format and keep the v1 rule set:
  gosimple and stylecheck are now part of staticcheck, gofumpt moves
  to formatters, the QF* quick fixes and govet's inline analyser stay
  off, and v1's default exclusions are kept through presets.
- Skip prealloc in _test.go files, and match third_party, builtin and
  examples directories the way v1 did.
- make lint and lint-fix now install GOLINTER_VERSION when the
  golangci-lint on PATH is missing or a different version, and fail
  with a clear message if an older binary still shadows it.

Co-authored-by: Iamrushabhshahh <rushabhshah842@gmail.com>
Signed-off-by: Iamrushabhshahh <rushabhshah842@gmail.com>

* style: fix findings reported by golangci-lint v2

The linters bundled with golangci-lint v2 report findings that v1 did
not. All are small and do not change behaviour, except the slog calls,
which logged the error as the message and produced a !BADKEY attribute.

- govet slog: logger.Error(err.Error(), "msg", "error", err) becomes
  logger.Error("msg", "error", err).
- staticcheck SA1006: fmt.Errorf(s) becomes errors.New(s), and
  fmt.Printf(s) becomes fmt.Print(s).
- staticcheck S1009: drop nil checks that len() already covers.
- predeclared: rename local "max" variables, which shadow the Go 1.21
  builtin, to "maxItems".
- prealloc: preallocate slices in non-test code.
- gofumpt: reformat k8s_printer.go.

Co-authored-by: Iamrushabhshahh <rushabhshah842@gmail.com>
Signed-off-by: Iamrushabhshahh <rushabhshah842@gmail.com>

---------

Signed-off-by: Iamrushabhshahh <rushabhshah842@gmail.com>

19 of 55 new or added lines in 16 files covered. (34.55%)

11379 of 24558 relevant lines covered (46.34%)

0.51 hits per line

Uncovered Changes

Lines Coverage ∆ File
18
5.29
0.0% pkg/engine/printers/printer/k8s_printer.go
10
55.52
0.0% pkg/server/route/route.go
3
51.4
-0.01% pkg/engine/operation/models/change.go
2
0.0
0.0% pkg/oci/client/client.go
1
82.76
0.0% pkg/engine/operation/watch.go
1
88.89
0.0% pkg/engine/runtime/terraform/tfops/tferrors.go
1
0.0
0.0% pkg/server/handler/endpoint/endpoint.go
Jobs
ID Job ID Ran Files Coverage
1 39356399022.1 20 Oct 2026 02:04AM UTC 336
46.34
GitHub Action Run
Source Files on build 39356399022
  • Tree
  • List 336
  • Changed 8
  • Source Changed 0
  • Coverage Changed 8
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • cb56884a on github
  • Prev Build on main (#38716524375)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc