ci: run the tests uncached so the coverage total is complete
With the runner's test cache, packages marked "(cached)" left their
share out of cover.out and the total fell under the 70% gate, while the
same code passed on a run without cached results (main dd94763: every
package run, gate passed; PR #126: six packages cached, gate failed
twice with the same per-package numbers). -count=1 runs them all.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014aRnCGqELxoix5TfpX8Ejf
This commit is contained in:
1 parent
f4a9f937fb
commit
be95574847
1 file changed
+5
-2
@@ -82,8 +82,11 @@ jobs:
|
||||
# harness against both Memory and Postgres, so we don't need its
|
||||
# own test binary — and including it triggers a covdata-tool error
|
||||
# on packages with no _test.go files. -coverpkg makes the server's
|
||||
# exercise of store/* count toward coverage.
|
||||
run: go test -race -coverpkg=./internal/... -coverprofile=cover.out ./internal/server/... ./internal/config/... ./internal/keycloak/... ./internal/llmkeys/... ./internal/erpsetup/... ./internal/scopes/... ./internal/secretbox/... ./internal/roles/... ./internal/telemetry/... ./internal/legal/...
|
||||
# exercise of store/* count toward coverage. -count=1: a cached
|
||||
# package result leaves its share out of cover.out, so the total
|
||||
# dropped below the gate whenever the runner had cached results
|
||||
# (main 2026-11-12 08:55 passed uncached; PR #126 failed cached).
|
||||
run: go test -count=1 -race -coverpkg=./internal/... -coverprofile=cover.out ./internal/server/... ./internal/config/... ./internal/keycloak/... ./internal/llmkeys/... ./internal/erpsetup/... ./internal/scopes/... ./internal/secretbox/... ./internal/roles/... ./internal/telemetry/... ./internal/legal/...
|
||||
|
||||
- name: coverage gate
|
||||
run: |
|
||||
|
||||
Reference in new issue
Block a user