From be955748475563e552fde8b7e9d787372e6921fd Mon Sep 17 00:00:00 2001 From: Sharang Parnerkar <30073382+mighty840@users.noreply.github.com> Date: Thu, 12 Nov 2026 11:14:15 +0100 Subject: [PATCH] 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 Claude-Session: https://claude.ai/code/session_014aRnCGqELxoix5TfpX8Ejf --- .gitea/workflows/ci.yaml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/ci.yaml b/.gitea/workflows/ci.yaml index d42e266..30b3bd4 100644 --- a/.gitea/workflows/ci.yaml +++ b/.gitea/workflows/ci.yaml @@ -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: |