-
tooling: add make test-scope for scoped local pre-push testing (#2506)
发布于
2026-05-24 13:56:39 +00:00 - tooling: add make test-scope for scoped local pre-push testing
Adds scripts/run_scoped_tests.py which maps changed files to their
minimal pytest targets using the same rules as CI.md Section 2.
Escalates to make test-cov when shared/core code or 3+ areas are touched.
Updates Makefile with a test-scope target and promotes it as the
recommended pre-push test command in CI.md.Co-Authored-By: Claude Sonnet 4.6 noreply@anthropic.com
- fix(test-scope): address greptile review feedback (greploop iteration 1)
- app/agent/ and app/agents/ now both run tests/agent/ + tests/agents/
to match CI.md Section 2 which documents a combined row - scripts/ changes escalate to make test-cov (mirrors Makefile/pyproject.toml)
- silently dropped non-existent test targets now print a notice
Co-Authored-By: Claude Sonnet 4.6 noreply@anthropic.com
- fix(test-scope): correct auth and deployment test paths (greploop iteration 2)
- app/auth/ → tests/app/auth/ (tests/auth/ does not exist)
- app/deployment/ → tests/deployment/ + tests/app/deployment/ (both exist)
- sync CI.md table to match
Co-Authored-By: Claude Sonnet 4.6 noreply@anthropic.com
- fix(test-scope): correct guardrails test path (greploop iteration 3)
tests/guardrails/ does not exist; actual directory is tests/test_guardrails/.
Co-Authored-By: Claude Sonnet 4.6 noreply@anthropic.com
Co-authored-by: Claude Sonnet 4.6 noreply@anthropic.com
下载附件