Enforce separate Rust and frontend coverage gates #41

Merged
amiryahaya merged 2 commits from feat/40-coverage-gates into main 2026-10-22 08:44:00 +02:00
Owner

Summary

Enforces SRS NFR-MAINT-007 with separate 80% line-coverage gates for Rust and React/TypeScript. Closes #40 once hosted checks and artifact retention are verified.

Rust: instrumented workspace + real PostgreSQL contracts → ≥80% lines
Web:  React Testing Library + Vitest/V8                 → ≥80% lines
Both: revision + commands + exit status + reports       → retained 30 days

Application entry points and unimported frontend source remain in the denominator. No runtime behavior changes.

Evidence

  • Before: frontend coverage unmeasured; neither CI job enforced coverage.
    After: Rust 87.29% (632/724) including all 14 PostgreSQL tests; frontend 100% (36/36) across four DOM tests including startup.
  • Unimported frontend source probe failed the configured 80% gate at 13.04% and retained failed evidence. Rust report failed with a temporary 100% threshold. Composer-label mutation was detected by the frontend tests; all temporary probes were removed.
  • Passed: locked workspace tests (20 behavioral + six compile-fail doctests), real PostgreSQL contracts, rustfmt, Clippy, clean npm install, frontend tests, typecheck/build, ShellCheck, workflow actionlint and diff checks. Read-only code review found no material defects.
  • Revision-stamped reports and exact commands, source scope and exclusions. Any shortfall must state result, scope, reason, risk and linked remediation; explanations do not bypass the gates.
  • Hosted CI and artifact download verification are pending this push; local results alone do not establish hosted enforcement.

Merge Danger

Door: two-way

Blast Radius: CI

Adds test dependencies and instrumented execution; Rust job timeout increases to 25 minutes. Forgejo-compatible artifact uploads are pinned and missing evidence fails the job. Runtime application code is unchanged.

## Summary Enforces SRS NFR-MAINT-007 with separate 80% line-coverage gates for Rust and React/TypeScript. Closes #40 once hosted checks and artifact retention are verified. ```text Rust: instrumented workspace + real PostgreSQL contracts → ≥80% lines Web: React Testing Library + Vitest/V8 → ≥80% lines Both: revision + commands + exit status + reports → retained 30 days ``` Application entry points and unimported frontend source remain in the denominator. No runtime behavior changes. ## Evidence - **Before:** frontend coverage unmeasured; neither CI job enforced coverage. **After:** Rust **87.29% (632/724)** including all 14 PostgreSQL tests; frontend **100% (36/36)** across four DOM tests including startup. - Unimported frontend source probe failed the configured 80% gate at 13.04% and retained failed evidence. Rust report failed with a temporary 100% threshold. Composer-label mutation was detected by the frontend tests; all temporary probes were removed. - Passed: locked workspace tests (20 behavioral + six compile-fail doctests), real PostgreSQL contracts, rustfmt, Clippy, clean npm install, frontend tests, typecheck/build, ShellCheck, workflow actionlint and diff checks. Read-only code review found no material defects. - [Revision-stamped reports and exact commands](docs/verification/2026-10-22-issue40-coverage.md), [source scope and exclusions](docs/operations/ci.md#coverage-requirement). Any shortfall must state result, scope, reason, risk and linked remediation; explanations do not bypass the gates. - Hosted CI and artifact download verification are pending this push; local results alone do not establish hosted enforcement. ## Merge Danger **Door:** two-way **Blast Radius:** CI Adds test dependencies and instrumented execution; Rust job timeout increases to 25 minutes. Forgejo-compatible artifact uploads are pinned and missing evidence fails the job. Runtime application code is unchanged.
docs: retain issue 40 coverage and failure-path evidence
All checks were successful
CI / Web checks (push) Successful in 51s
CI / Web checks (pull_request) Successful in 37s
CI / Rust checks (push) Successful in 9m41s
CI / Rust checks (pull_request) Successful in 11m18s
24d6e83c03
Sign in to join this conversation.
No description provided.