From 2dfa92cc19ee9d815003b31ece4f6e2dea5a8727 Mon Sep 17 00:00:00 2001 From: Josh Zhang <39790535+jiashuoz@users.noreply.github.com> Date: Fri, 20 Nov 2026 16:11:35 -0800 Subject: [PATCH] fix(ci): align and pin coverage checker configuration --- .github/workflows/test.yml | 2 +- .testcoverage.yml | 3 +-- Makefile | 3 ++- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index b1592b675..f02e0c0af 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -133,7 +133,7 @@ jobs: E2A_TEST_DATABASE_URL: postgres://e2a:e2a@localhost:5433/e2a_test?sslmode=disable run: go test -race -p 2 ./internal/sendramp ./internal/outboundsend - name: Enforce per-package coverage floors - uses: vladopajic/go-test-coverage@v2 + uses: vladopajic/go-test-coverage@6890500b00a7e5862e54662c04ea9fa7c799ce1e # v2.23.0; keep Makefile aligned with: config: ./.testcoverage.yml diff --git a/.testcoverage.yml b/.testcoverage.yml index 1cc8f5edd..b4eb78eea 100644 --- a/.testcoverage.yml +++ b/.testcoverage.yml @@ -6,7 +6,6 @@ # Measure locally with `make cover` (needs Postgres on :5433), then # `make cover-check`. Regenerate floors only when intentionally adding tests. profile: cover.out -local-prefix: "github.com/tokencanopy/e2a" # No global floor — we gate specific packages, not the whole tree (many # packages are thin wiring or main()). Add packages here as their suites grow. @@ -15,7 +14,7 @@ threshold: package: 0 total: 0 - # Paths are matched with local-prefix stripped, i.e. `internal/...`. +# Paths are module-relative (inferred from go.mod), e.g. `internal/...`. override: # Webhook delivery + publish path — security-sensitive (SSRF guard, signing, # retry/backoff) and the area we want extensively covered for GA. diff --git a/Makefile b/Makefile index d24c51cca..ad5abe3be 100644 --- a/Makefile +++ b/Makefile @@ -67,7 +67,8 @@ test-e2e: # on :5433, like `make test`; per-package DBs make the -p 4 parallel run safe). # cover-check enforces the per-package floors in .testcoverage.yml. CI runs the # same gate via the vladopajic/go-test-coverage action. -GO_TEST_COVERAGE_VERSION ?= v2.14.3 +# Keep this version aligned with the pinned action in .github/workflows/test.yml. +GO_TEST_COVERAGE_VERSION ?= v2.23.0 # -timeout 15m: atomic coverage instrumentation plus CI DB contention pushed # internal/identity past Go's default 10-minute per-package timeout (observed # in shared-DB cleanup, not a hang). 15m stays under the workflow's 18-minute