ci: fix first CI run — tidy, gofmt, ordering test, govulncheck pin
- ids: TestIDsAreTimeOrdered asserted strict lexicographic ordering of back-to-back UUIDv7s, but the sub-ms tail is random and not required to be monotonic. Sleep between samples so each ID lands in a distinct millisecond — the property that actually gives Postgres index locality on (org_id, id desc). - go.mod/go.sum: run go mod tidy. keyfunc/v3, prometheus/client_golang and testcontainers-go/modules/postgres are imported directly and should not be marked // indirect; also drops stale sum entries. - gofmt -w across 12 files flagged by the lint job. - security.yml: pin govulncheck to v1.2.0. @latest triggers a proxy lookup every run, which is the step that hung for 16m on the Gitea runner. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
1 parent
ee52ae985d
commit
90ac4b169c
16 files changed
+85
-75
No files matched your search
@@ -22,8 +22,8 @@ import (
|
||||
type Hub struct {
|
||||
nc *nats.Conn
|
||||
|
||||
mu sync.Mutex
|
||||
conns map[*websocket.Conn]*clientFilter
|
||||
mu sync.Mutex
|
||||
conns map[*websocket.Conn]*clientFilter
|
||||
}
|
||||
|
||||
type clientFilter struct {
|
||||
|
||||
Reference in new issue
Block a user