Skip to content

ci: enforce measured test coverage baselines#29

Merged
KostasCherv merged 2 commits into
mainfrom
codex/coverage-gate
Jul 14, 2026
Merged

ci: enforce measured test coverage baselines#29
KostasCherv merged 2 commits into
mainfrom
codex/coverage-gate

Conversation

@KostasCherv

Copy link
Copy Markdown
Owner

What

  • run the backend suite with pytest-cov and enforce the measured 73% floor
  • run the complete UI source tree through Vitest V8 coverage with per-metric floors
  • upload backend Cobertura XML and UI LCOV/JSON reports as CI artifacts
  • document local coverage commands and the baseline policy

Why

Coverage was not measured in CI, so regressions could land silently. These thresholds are based on the current test suite rather than an arbitrary aspirational target and can be raised as coverage improves.

Impact

  • backend CI fails below 73% statement/line coverage (current: 73.55%)
  • UI CI fails below 19% statements, 19% branches, 12% functions, or 20% lines (current: 19.08%, 19.94%, 12.70%, 20.74%)
  • coverage outputs are available for inspection on every workflow run

Checks

  • 554 backend tests pass with coverage gate (73.55%)
  • 8 UI tests pass with all four coverage gates
  • Ruff passes
  • UI ESLint and TypeScript checks pass
  • graphify update . completed

@KostasCherv
KostasCherv marked this pull request as ready for review July 14, 2026 08:00
@KostasCherv

Copy link
Copy Markdown
Owner Author

@codex

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Swish!

Reviewed commit: aed67ab441

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@vercel

vercel Bot commented Jul 14, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
cortex Ready Ready Preview, Comment Jul 14, 2026 8:31am

@KostasCherv
KostasCherv merged commit b170185 into main Jul 14, 2026
5 checks passed
@KostasCherv
KostasCherv deleted the codex/coverage-gate branch July 14, 2026 11:02
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.

1 participant