Skip to content

Select distinct prior runs for unit timing comparisons - #277

Merged
Jammy2211 merged 1 commit into
mainfrom
feature/unit-timing-distinct-baseline
Oct 4, 2026
Merged

Jammy2211 merged 1 commit into
mainfrom
feature/unit-timing-distinct-baseline

Conversation

@Jammy2211

Copy link
Copy Markdown
Contributor

Summary

Unit timing collection could select the current run as its own baseline, leaving all 300 observations without comparisons despite older recorded runs. Select the latest distinct, earlier observation for each repository/Python leg within the current epoch. An isolated replay restores 289 comparisons, retains 11 genuinely missing comparisons, and identifies one slowdown.

Closes #276. Continues dashboard repair #274.

API Changes

The internal timing reader accepts optional current-run metadata; callers that omit it retain their existing behavior. No scientific library API or workspace migration is involved. See full details below.

Test Plan

  • Reproduced baseline-selection failures before the repair.
  • Focused timing tests: 111 passed.
  • Full Heart suite: 1,183 passed.
  • Isolated real-data aggregation: 289/300 comparisons; live state untouched.
  • Independent review: CLEAN.
  • Workspace smoke workflow 37198914051 passed on main; the changed Heart-only selector has no workspace callers.

Heart release readiness is YELLOW (85): seven generated-hook mismatches, two organism-map mismatches, and missing current-source rehearsal evidence. These are acknowledged within the human-approved dashboard repair scope; release integration is running separately. No score policy or missing-evidence guard is relaxed. Merge remains human /prm.

Full API Changes (for automation & release notes)

Changed Signature

  • heart.timings.previous_unit_rows(unit_dir=UNIT_DIR, since="", current_runs=None) adds optional per-repository/Python current observation metadata.

Changed Behaviour

  • With current metadata, choose the newest distinct, strictly earlier recorded run within the epoch, ignoring append order. Unknown chronology and missing tests retain unknown comparisons; cache-state guards remain.
  • Without current metadata, preserve the existing file-order selection behavior.

Migration

  • No external migration. Unit aggregation passes its existing sidecar metadata into the selector.

@Jammy2211 Jammy2211 added the pending-release Awaiting a published release label Oct 4, 2026
@Jammy2211
Jammy2211 merged commit 51c329f into main Oct 4, 2026
2 checks passed
@Jammy2211
Jammy2211 deleted the feature/unit-timing-distinct-baseline branch October 4, 2026 12:09
@Jammy2211 Jammy2211 removed the pending-release Awaiting a published release label Oct 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix: compare unit timings with a distinct prior run

1 participant