You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fix(ci): a commit runs no test suite in pre-commit; the pre-push gate and CI run the tests #2086
A commit in devops-cli waits minutes for the pre-commit hook devops-ci-test-changed (uv run devops ci test on the staged Python files). The other pre-commit hooks take less than 1 second each.
No coverage index exists: only devops ci coverage --build-index builds one, and nothing runs it. So the hook uses the text-based selector.
The text selector picks 109 of the 484 test modules for src/devops_cli/config/constants.py and 76 for src/devops_cli/config/defaults.py. Most changes touch one of these files.
For a staged source with no covering test, such as src/devops_cli/lang/en/help.py (0 modules), the hook runs the full suite.
The pre-push hook runs uv run devops ci, which runs the full suite again. CI runs it a third time.
What should happen
The owner decided on 2026-10-24 to remove the hook devops-ci-test-changed from .pre-commit-config.yaml. A commit runs only the fast hooks (pre-commit-hooks, ruff, AST structural invariants, ast-grep, openspec gate). The tests run once before a push, in the pre-push gate uv run devops ci, and in CI. No threshold changes: the same full suite still gates every push.
Scope
.pre-commit-config.yaml: remove the hook.
The documents and help text that say the tests run at commit (for example CONTRIBUTING.md, docs/TESTING.md and the devops ci test help text).
Activity
dan-petty commentedon Oct 24, 2026
Intake placed this item to the backlog: intake puts every new item in the backlog. A person plans the milestones on the board.
The candidate fixes an issue in the CI pre-commit hook configuration which is infrastructure related.The issue affects commit performance and developer experience, but does not block development or cause failures.Improving commit speed helps developers work faster but does not provide a major user benefit.Removing one hook and updating documentation is a small change.Both items deal with pre-commit hooks and local gate performance, but the candidate removes a slow hook while item 1752 defines what the local gate should run.