Skip to content

Add CI-parity local coverage gate script#59

Merged
negillett merged 2 commits into
mainfrom
add-local-coverage-gate
May 22, 2026
Merged

Add CI-parity local coverage gate script#59
negillett merged 2 commits into
mainfrom
add-local-coverage-gate

Conversation

@negillett
Copy link
Copy Markdown
Member

Summary

  • Add scripts/run-coverage-gate.sh mirroring the repository CI coverage job.
  • Lets agent precommit checkpoints enforce the 95% threshold before push.

Test plan

  • bash scripts/run-coverage-gate.sh
  • bash <planning>/scripts/run-quality-gates.sh . (coverage threshold gate)

Review

  • Script matches CI package exclusions and threshold wiring.
  • No production runtime behavior changes.

Expose run-coverage-gate.sh so agent checkpoints can enforce the
same 95% threshold as CI before push.

Signed-off-by: Nathan Gillett <nathan@intentproof.io>
@cursor
Copy link
Copy Markdown

cursor Bot commented May 22, 2026

PR Summary

Low Risk
Low risk: adds a standalone developer script and does not change application/runtime code paths. Only potential impact is developer workflow if the script is used and fails due to local env/venv differences.

Overview
Adds scripts/run-coverage-gate.sh to run pytest locally and then enforce the same 95% coverage threshold as CI by invoking scripts/check-coverage.sh. The script prefers a repo-local .venv Python when present to better match CI/developer environments.

Reviewed by Cursor Bugbot for commit 67e96bc. Bugbot is set up for automated code reviews on this repo. Configure here.

Copy link
Copy Markdown

@cursor cursor Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit 44fcbfd. Configure here.

Comment thread scripts/run-coverage-gate.sh
Prepend .venv/bin to PATH when using the local venv so
check-coverage.sh finds coverage without shell activation.

Signed-off-by: Nathan Gillett <nathan@intentproof.io>
@negillett negillett merged commit 6710027 into main May 22, 2026
10 checks passed
@negillett negillett deleted the add-local-coverage-gate branch May 22, 2026 21:09
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