Skip to content

ci(backend): enforce coverage gate#370

Open
emirykl wants to merge 4 commits into
ChainForgee:mainfrom
emirykl:ci/backend-coverage-gate-277
Open

ci(backend): enforce coverage gate#370
emirykl wants to merge 4 commits into
ChainForgee:mainfrom
emirykl:ci/backend-coverage-gate-277

Conversation

@emirykl

@emirykl emirykl commented Jul 17, 2026

Copy link
Copy Markdown

Summary

  • enforce the requested global backend thresholds: 80% lines, 70% branches, 80% functions, and 80% statements
  • freeze the existing uncovered-code budget so current backend coverage cannot regress
  • require files outside the baseline to satisfy the global thresholds before merge
  • run coverage against the unit suite plus the verification lifecycle E2E suite with Redis and an ephemeral PostgreSQL database
  • fix the pre-existing invalid testnet workflow secret condition that blocked Actions from parsing workflows on the branch

Validation

  • 49 test suites passed
  • 456 tests passed
  • backend lint and build passed
  • an intentionally uncovered module failed the global gate, confirming new modules cannot bypass coverage
  • GitHub Backend CI passed on the final commit

Closes #277

Copy link
Copy Markdown
Contributor

Hi 👋 Appreciate this PR! The CI is flagging a failing check — could you take a peek at the failed job and push a fix? Happy to help if you need a hand 🙏

@emirykl
emirykl force-pushed the ci/backend-coverage-gate-277 branch from 8c84ddb to 2b43e32 Compare July 18, 2026 00:56
@emirykl

emirykl commented Jul 18, 2026

Copy link
Copy Markdown
Author

Thanks for flagging this. I rebased onto the latest main and updated the coverage job to use an ephemeral PostgreSQL service, since the backend schema has moved from SQLite to PostgreSQL. I also refreshed the coverage baseline for the current source tree. The final commit now passes Backend CI (49 suites, 456 tests) and all PR checks are green.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Coverage gate: backend ≥ 80% line coverage

2 participants