Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
3 changes: 1 addition & 2 deletions .testcoverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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.
Expand Down
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Loading