Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

chore(lint): drop dead golangci exclusions, pin local -j 8 (#21395)

Danny Xu7144047686e4
diff --git a/.golangci.yaml b/.golangci.yaml
index cd0f60d7db..61955c03b6 100644
--- a/.golangci.yaml
+++ b/.golangci.yaml
@@ -116,12 +116,9 @@ linters:
text: Exit(.*)_(.*)
- path: action/bitbucket/bitbucket.go
text: "unsecure-url-scheme.*http://api.bitbucket.org"
+ # Filters reported issues only; excluded paths are still analyzed. Not a speed knob.
paths:
- - proto/generated-go
- - frontend
- - third_party$
- - builtin$
- - examples$
+ - backend/generated-go
formatters:
enable:
- goimports
@@ -132,8 +129,4 @@ formatters:
exclusions:
generated: lax
paths:
- - proto/generated-go
- - frontend
- - third_party$
- - builtin$
- - examples$
+ - backend/generated-go
diff --git a/AGENTS.md b/AGENTS.md
index e038442420..6a92ba7d17 100644
--- a/AGENTS.md
+++ b/AGENTS.md
@@ -40,7 +40,7 @@ During iteration, run focused checks for the changed behavior. Before handoff, r
### Go changes
1. Run `gofmt -w` on modified Go files.
-2. Run `golangci-lint run --fix --allow-parallel-runners`, then `golangci-lint run --allow-parallel-runners` until clean after corrections. Run at repo root without filenames so package context is available.
+2. Run `golangci-lint run --fix -j 8 --allow-parallel-runners`, then `golangci-lint run -j 8 --allow-parallel-runners` until clean after corrections. Run at repo root without filenames so package context is available. Keep `-j 8`: on a cold cache it trades ~15s of wall time for ~30% less CPU and ~1.5 GB less peak RSS on the shared box.
3. Run tests for changed packages and affected behavior, including required collision or contention coverage.
4. Build: `go build -ldflags "-w -s" -p=16 -o ./bytebase-build/bytebase ./backend/bin/server/main.go`.
5. After dependency changes, run `go mod tidy` and recheck affected code.