chore(ci): add shared-lib scaffolding and functional coverage gate #3
Reference in New Issue
Block a user
Delete Branch "chore/harden-lib-scaffolding"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Bring the
authandlogginglibs up to theotelsetup/authz_clientscaffolding standard.Added
.editorconfig,.golangci.yml,.pre-commit-config.yaml(-localimport grouping, gofumpt, golangci-lint-full, gitleaks, commitlint),.testcoverage.yml..version,CHANGELOG.md,cliff.toml, andrelease.yaml(sharedunboundsoftware/shared-workflowsRelease workflow — auto-tags from conventional commits).renovate.json,CLAUDE.md.pre-commit.yamlworkflow.CI
Replaced the minimal test-only
ci.yamlwith a functional cache-based coverage-regression gate mirroring the services: the PRtestjob restores themaincoverage baseline from the Actions cache and fails on a drop; a non-gating post-mergecoverage-baselinejob records it (ADR-0010 carve-out). Job namestest/vulnerabilitiespreserved to keep matching the branch-protection contexts (<repo> / test*,<repo> / vulnerabilities*).Validation
gofumpt -l,go vet,go test -race,go mod tidyclean.golangci-lint run: 0 issues. Coverage: auth 83.3%, logging 93.3%.prek run --all-files: all hooks green on both repos.Tracked low-priority follow-up (Ambix 019ecabc): move
logging.MockLoggerto alogging/logtestsub-package — deferred as a breaking change for the ~13 services that importlogging.NewMockLogger.🤖 Generated with Claude Code
Coverage Report
Total coverage: 93%