Skip to content

fix(pre-push): mirror CI gate — run all tests, drop coverage gate#257

Merged
fdaviddpt merged 1 commit into
masterfrom
fix/pre-push-hook-mirror-ci
May 29, 2026
Merged

fix(pre-push): mirror CI gate — run all tests, drop coverage gate#257
fdaviddpt merged 1 commit into
masterfrom
fix/pre-push-hook-mirror-ci

Conversation

@fdaviddpt
Copy link
Copy Markdown
Contributor

Context

The pre-push hook ran pytest tests/, which picks up the addopts -m 'not slow' filter and the --cov-fail-under=86 gate. That diverged from CI (.github/workflows/tests.yml), which runs pytest -m '' --no-covall tests, no coverage gate.

Two consequences:

  • Slow tests CI runs were skipped locally, so a CI-failing slow test could still print a local ✓ passed (false confidence).
  • The local-only coverage gate could abort a push CI would accept (e.g. a transient coverage-measurement dip) — the asymmetry that bites.

Change

Hook now runs pytest -m '' --no-cov --tb=short — exactly CI's criterion. Verified locally: 3073 passed, 34 skipped, exit 0 (~2m12s).

🤖 Generated by Max — the hook that guards the gate should know where the gate is.

The pre-push hook ran 'pytest tests/', which picks up the addopts
'-m not slow' filter and the --cov-fail-under=86 gate. That diverged
from CI (.github/workflows/tests.yml), which runs 'pytest -m '' --no-cov'
— all tests, no coverage gate. Two consequences:

- Slow tests CI runs were skipped locally, so a CI-failing slow test
  could still print a local '✓ passed'.
- The local-only coverage gate could abort a push CI would accept
  (e.g. transient measurement dips), the asymmetry that bites.

Now mirror CI exactly: pytest -m '' --no-cov.

Co-Authored-By: Max <noreply>
@fdaviddpt fdaviddpt merged commit d7ea1f0 into master May 29, 2026
23 of 24 checks passed
@fdaviddpt fdaviddpt deleted the fix/pre-push-hook-mirror-ci branch May 29, 2026 10:04
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