Add --max-single-seconds option to devx.tools.check_test_speed for per-test timing validation. This enforces that no individual test exceeds a configurable time limit (default 0.5s), in addition to the existing total suite time check.
Changes
Enhanced check_test_speed.py with parse_per_test_durations() and check_per_test_speed() functions
Uses PYTEST_ADDOPTS=--durations=0 to collect per-test timings from make test-unit
Updated CI to use --max-seconds 60 --max-single-seconds 2.0 (generous for CI overhead)
Updated hooks to use --max-seconds 10 --max-single-seconds 0.5 (strict for local dev)
Updated CLI docs
Full test coverage for new functionality
Closes DEVX-13
## Summary
Add --max-single-seconds option to devx.tools.check_test_speed for per-test timing validation. This enforces that no individual test exceeds a configurable time limit (default 0.5s), in addition to the existing total suite time check.
### Changes
- Enhanced check_test_speed.py with parse_per_test_durations() and check_per_test_speed() functions
- Uses PYTEST_ADDOPTS=--durations=0 to collect per-test timings from make test-unit
- Updated CI to use --max-seconds 60 --max-single-seconds 2.0 (generous for CI overhead)
- Updated hooks to use --max-seconds 10 --max-single-seconds 0.5 (strict for local dev)
- Updated CLI docs
- Full test coverage for new functionality
Closes DEVX-13
Auto-merge: If all CI checks pass, this PR will be merged automatically.
## Automated PR Review
- Architecture compliance: OK
- Best practices: OK
- Security: OK
- i18n: OK
- Resource management: OK
- Documentation: OK
- Tests: OK
- Commit conventions: OK
No issues found by automated checks.
---
**Auto-merge:** If all CI checks pass, this PR will be merged automatically.
Auto-merge: If all CI checks pass, this PR will be merged automatically.
## Automated PR Review
- Architecture compliance: OK
- Best practices: OK
- Security: OK
- i18n: OK
- Resource management: OK
- Documentation: OK
- Tests: OK
- Commit conventions: OK
No issues found by automated checks.
---
**Auto-merge:** If all CI checks pass, this PR will be merged automatically.
Auto-merge: If all CI checks pass, this PR will be merged automatically.
## Automated PR Review
- Architecture compliance: OK
- Best practices: OK
- Security: OK
- i18n: OK
- Resource management: OK
- Documentation: OK
- Tests: OK
- Commit conventions: OK
No issues found by automated checks.
---
**Auto-merge:** If all CI checks pass, this PR will be merged automatically.
emil
merged commit c20dfd185a into master2026-06-23 16:25:51 +00:00
emil
deleted branch DEVX-13-per-test-speed-gate2026-06-23 16:25:51 +00:00
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Summary
Add --max-single-seconds option to devx.tools.check_test_speed for per-test timing validation. This enforces that no individual test exceeds a configurable time limit (default 0.5s), in addition to the existing total suite time check.
Changes
Closes DEVX-13
Automated PR Review
No issues found by automated checks.
Auto-merge: If all CI checks pass, this PR will be merged automatically.
Automated PR Review
No issues found by automated checks.
Auto-merge: If all CI checks pass, this PR will be merged automatically.
Automated PR Review
No issues found by automated checks.
Auto-merge: If all CI checks pass, this PR will be merged automatically.