test: recalibrate Windows warm P50 budget (Fixes #513) - #514
Closed
Karthik Nadig (karthiknadig) wants to merge 4 commits into
Closed
test: recalibrate Windows warm P50 budget (Fixes #513)#514Karthik Nadig (karthiknadig) wants to merge 4 commits into
Karthik Nadig (karthiknadig) wants to merge 4 commits into
Conversation
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot started reviewing on behalf of
Karthik Nadig (karthiknadig)
August 11, 2026 18:51
View session
Contributor
There was a problem hiding this comment.
Pull request overview
This PR adjusts the Windows warm Full refresh P50 regression budget used by the quality snapshot comparator to reflect observed schema-v2 variance on hosted runners, while keeping the rest of the performance and coverage gates unchanged.
Changes:
- Update the Windows warm full-refresh P50 budget from 50ms/30% to 150ms/50% in the comparator.
- Update unit tests to cover the observed schema-v2 Windows warm P50 variance and ensure a material regression still fails.
- Update
docs/QUALITY_SNAPSHOTS.mdto document the recalibration provenance.
Show a summary per file
| File | Description |
|---|---|
| scripts/tests/test_quality_snapshot.py | Updates/extends tests to validate the new Windows warm P50 budget behavior (pass for observed variance; fail for material regression). |
| scripts/quality_snapshot.py | Adjusts Windows warm full-refresh P50 regression budget to 150ms/50%. |
| docs/QUALITY_SNAPSHOTS.md | Updates performance budget table and adds provenance text for the Windows warm P50 recalibration. |
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: 1
- Review effort level: Lite
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot started reviewing on behalf of
Karthik Nadig (karthiknadig)
August 11, 2026 18:58
View session
Contributor
There was a problem hiding this comment.
Review details
Suppressed comments (1)
docs/QUALITY_SNAPSHOTS.md:31
- This calibration note says "repeated unchanged-code pull-request measurements" but the PR description calls out a specific six-run provenance. To avoid ambiguity (and to match how the surrounding paragraphs document exact sample counts), spell out the number of runs used for this recalibration.
The Windows warm full-refresh P50 budget was recalibrated in issue #513 from repeated unchanged-code pull-request measurements plus the exact schema-v2 baseline at `ad7ca14`. It retains nearly twice the observed absolute range while blocking a sustained median above 255ms against that baseline.
- Files reviewed: 3/3 changed files
- Comments generated: 0 new
- Review effort level: Lite
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot started reviewing on behalf of
Karthik Nadig (karthiknadig)
August 11, 2026 19:03
View session
Contributor
There was a problem hiding this comment.
Review details
Suppressed comments (1)
scripts/tests/test_quality_snapshot.py:178
- With the new Windows Full refresh P50 budget (150ms / 50%), the existing
test_relative_budget_must_also_be_exceededno longer exercises the intended case (absolute budget exceeded but relative budget not exceeded). Adding an explicit schema-v2 test where delta >150ms but percent change <50% will keep the “must exceed both budgets” behavior covered.
def test_schema_v2_windows_warm_p50_material_regression_fails(self):
baseline = performance_snapshot(schema_version=2, refresh_p50=105)
current = performance_snapshot(schema_version=2, refresh_p50=300)
_, failures = compare_performance(current, baseline, 'Windows')
- Files reviewed: 3/3 changed files
- Comments generated: 0 new
- Review effort level: Lite
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot started reviewing on behalf of
Karthik Nadig (karthiknadig)
August 11, 2026 22:24
View session
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Recalibrate only the Windows schema-v2 warm full-refresh P50 budget after unchanged product runs exposed an unusually low exact baseline. The new limit accepts the measured 105-182ms range while still blocking a sustained median above 255ms against that baseline.
Changes
Validation
python -m unittest discover -s scripts/tests -p 'test_*.py' -v(35 passed)ad7ca14Stacked on #512; retarget to
mainafter #512 merges.Fixes #513