ci: run the tests uncached so the coverage total is complete
ci / shared (pull_request) Successful in 13s
ci / test (pull_request) Successful in 5m44s
ci / image (pull_request) Skipped

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:
Sharang ParnerkarandClaude Opus 5.5 committed 2026-11-12 11:14:15 +01:00
1 parent f4a9f937fb
commit be95574847
1 file changed
+5 -2
+5 -2
View File
@@ -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: |