From 96c9586b4dbd0497b38051ec04b71f20d2071b49 Mon Sep 17 00:00:00 2001 From: Sharang Parnerkar Date: Tue, 19 May 2026 12:50:07 +0200 Subject: [PATCH] ci(tenant-registry): drop store from go-test, keep it in -coverpkg go: no such tool 'covdata' fires when go test tries to build a test binary for a package with zero _test.go files under -coverpkg. The store package has no tests of its own (exercised via the server harness); excluding it from the test command sidesteps the error while -coverpkg still counts its coverage from server-side exercise. Refs: M4.2 --- .gitea/workflows/ci.yaml | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/.gitea/workflows/ci.yaml b/.gitea/workflows/ci.yaml index f12ad7d..f293c38 100644 --- a/.gitea/workflows/ci.yaml +++ b/.gitea/workflows/ci.yaml @@ -77,12 +77,13 @@ jobs: with: { version: v2.12.2 } - name: test - # Coverage scoped to ./internal/... — cmd/server is the entrypoint - # with signal-handling + bind that isn't worth unit-testing. - # -coverpkg lets the server tests count their exercise of store/* — - # store has no test files because every method is exercised end-to-end - # via the server's eachStore harness against both Memory and Postgres. - run: go test -race -coverpkg=./internal/... -coverprofile=cover.out ./internal/... + # Test runs the packages that HAVE test files (server, config). The + # store package is exercised end-to-end via the server's eachStore + # 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/... - name: coverage gate run: |