Repository navigation
fix: compare unit timings against robust runner-adjusted medians - #308
Merged
Merged
Conversation
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.
A single unusually fast run was becoming the timing baseline. The CI collector now uses the median of seven distinct prior comparable runs, honoring Python, epoch, chronology and known cache boundaries. It estimates common runner speed only with at least five shared tests having three prior samples each. Raw seconds, normalization factor, sample counts and baseline run IDs remain available; the dashboard identifies normalized comparisons.
Scripts Changed
heart/timings.py,heart/checks/unit_timings.py,heart/dashboard.py, and synthetic regression tests. Import thresholds and legacy 1.5×/3× test thresholds are unchanged.Validation
All 1,259 Heart tests and tenant firewall passed. Synthetic isolated 4× slowdown remains red with both normal and 2.1× slower runners. Replay of the committed October 16 PyAutoFit record: Python 3.12 has zero yellow/red test findings; NSS 3.13 uses a 6.1965 s median (four recorded test samples), yielding normalized ratio 1.20 instead of 3.56. Two unrelated 3.13 yellow findings remain (1.78 and 1.61), not suppressed. Sparse top-N data still limits normalization; fewer than five sufficiently sampled common tests uses factor 1.
Heart / authorization
Published Heart state at 2026-10-17 09:00 UTC: STALE — release validation stale: source moved since rehearsal (PyAutoFit, PyAutoGalaxy, PyAutoLens). Development PR only; no release-readiness claim. User requested four linked Mind tasks; one task per PR, stop at human /prm.
Closes #304