test: tighten schema-v2 warm P95 budgets (Fixes #511) - #512
Conversation
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Test Coverage Report (Linux)Result: ✅ Within regression budget
|
Performance Report (Linux)Result: ✅ Within regression budgets
|
Performance Report (macOS)Result: ✅ Within regression budgets
|
Test Coverage Report (Windows)Result: ✅ Within regression budget
|
Performance Report (Windows)Result: ✅ Within regression budgets
|
There was a problem hiding this comment.
Pull request overview
This PR recalibrates the schema-v2 warm performance regression budgets (P95 for full refresh and time-to-first environment) to better reflect post-#510 sampling behavior, preventing multi-second warm-cache drift while still tolerating observed hosted-runner variance.
Changes:
- Tighten per-platform warm P95 regression budgets in the snapshot comparator (Linux/Windows/macOS).
- Add unit tests that (1) validate worst observed warm P95 variance still passes and (2) enforce failure on multi-second warm regressions across all platforms.
- Update
docs/QUALITY_SNAPSHOTS.mdto document the new budgets and calibration provenance.
Show a summary per file
| File | Description |
|---|---|
| scripts/tests/test_quality_snapshot.py | Adds targeted tests for schema-v2 warm P95 budget calibration and multi-second regression rejection. |
| scripts/quality_snapshot.py | Updates warm P95 regression budgets in PERFORMANCE_BUDGETS to the tightened thresholds. |
| docs/QUALITY_SNAPSHOTS.md | Aligns documented budget table and explains recalibration context/provenance for schema-v2 warm P95. |
Review details
Tip
Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
- Files reviewed: 3/3 changed files
- Comments generated: 0
- Review effort level: Lite
Summary
Tighten schema-v2 warm refresh and warm time-to-first P95 budgets now that cold and warm samples are independent. The new limits retain at least 2.5x observed hosted-runner variance while blocking multi-second warm-cache drift.
Changes
Validation
python -m unittest discover -s scripts/tests -p 'test_*.py' -v(33 passed)ad7ca14Fixes #511