Repository navigation
feat(timings): epoch boundaries in the record — the legacy round is labeled + digested - #209
Merged
Merged
Conversation
…abeled (#208) timings/epochs.jsonl is now live: one append-only line per boundary ({date, label, note}), and every record reader compares only within the current epoch, so a baseline from before a boundary never judges a run after it. The first boundary, `legacy` @ 2026-09-05, labels the pre-rebuild reference round of the ci-timing-fast-tests epic; the phase that lands the rebuild appends the next one. `heart.timings epoch` is the human door (the daily append never writes this file); the board shows the current epoch on both timing rows and in an additive performance.epoch key. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0151gQm9fk3XGLi5f18Urdba
…e rebuild (#208) The written half of phase 4: per-gate wall-clock medians, the per-script seconds of the first live round (494 scripts across the 11 smoke-gated repos, 2026-09-05), the compile-dominated vs execution-dominated vs import-floor classes, and what each later phase of the ci-timing-fast-tests epic should take from it. Lives beside the record it describes; the unit/import section is a placeholder until the first library CI run has produced the unit-timings artifact. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0151gQm9fk3XGLi5f18Urdba
…against the live record) Two `main --aggregate` tests fell through to the repo's own timings/ when no --record-dir was given. That was harmless while the record was empty; the first daily record commit (e59ebfb, [skip ci]) filled it, and the smoke_timings test that exercises the previous-board fallback went red on main because the record now supplied a baseline instead. Both tests now point at an empty record dir, which is the condition they were written for. No production code changed. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0151gQm9fk3XGLi5f18Urdba
Measured on PyAutoHeart#209: a PR opened while main's tip was the daily `[skip ci]` record commit received no pull_request run, and heart-tests.yml had no manual trigger, so nothing could run the suite on that head without pushing to it. The dispatch trigger is that door. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0151gQm9fk3XGLi5f18Urdba
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.
Closes #208. Phase 4 of the
ci-timing-fast-testsepic (PyAutoMinddraft/feature/pyautoheart/ci_timing_fast_tests_epic.md).Summary
The first live round of the finished board was taken on 2026-09-05 (a hand-dispatched
heart-health.ymlrun seededtimings/: 26 gates, 494 script rows across all 11 smoke-gated repos, 0 legs unavailable — the cross-repo artifact 403 risk from #203 did not materialise). That round is the legacy reference, not the start of the long-term history: phases 5–7 change_testscript content, datasets, pinned likelihoods and CI caches. This PR labels it as such in the record and writes the digest the later phases read.timings/epochs.jsonlis live — one append-only line per boundary ({date, label, note}), and every record reader compares only within the current epoch (the latest boundary dated on or before today; records dated before it are invisible to every baseline; an undated record counts as older than any boundary). No boundary = one unbroken epoch = today's behaviour. The three--aggregatemains pass the current epoch's date to their readers; the pureaggregate()functions are unchanged.legacy @ 2026-09-05, written by the newpython -m heart.timings epochverb (the human door — the dailyappendnever touches this file, pinned by a test). The phase that lands the rebuild appends the next boundary in its own PR, which is what makes the post-rebuild history start fresh.README.md's "Reserved" section is now the live one.record:detail lines carry· epoch <label> since <date>and theperformanceblock gains an additiveepochkey — only when a boundary is in force, so older snapshots render byte-identically.timings/legacy_round_2026-09.md— the digest of where CI time went before the rebuild: gate wall-clock medians, per-script seconds for the_testflagships (in both, the time sits in ~15 compile-dominatedjax_likelihoodscripts;visualization.pyis the one execution-dominated outlier), the import-floor-dominated user workspaces and HowTos (HowToLens: 47 of 50 scripts under 10 s), the Python 3.13 vs 3.12 comparison, the six historical hang events, and what each of phases 5–9 should take from it. The unit/import section is a placeholder until the first library CI run after feat(unit_timings): unit-test durations + import time live by CI ingestion #207 has produced theunit-timingsartifact.main --aggregatetests passed no--record-dirand fell through to the repo's livetimings/; once the first record commit landed ([skip ci], so main never ran it) the smoke_timings one went red onmain. Both now use an empty record dir — the condition they were written for. No production code changed for it.API Changes
No public API change.
heart.timingsgainsread_epochs,current_epoch,append_epoch, asincekeyword on every reader,epoch/epochscensus keys and theepochCLI verb;board.jsongains an optional additiveperformance.epoch.Test Plan
python3 -m pytest -q -n auto— 864 passed (from 841 onmain, which currently carries the one hermeticity failure fixed here). Two existing assertions widened, each commented with test: legacy baseline timing round — epoch boundary in the record + the pre-rebuild digest #208: the census key set, and the former "epochs file is never written" test, which now asserts the surviving half (the daily append never creates it) since the file is committed by design.python -m heart.timings show→epochs: 1,epoch: legacy 2026-09-05; tenant firewall check OKheart-health.ymlrun: both timing rows show· epoch legacy since 2026-09-05andboard.jsoncarriesperformance.epochGenerated by the PyAutoLabs agent workflow.
🤖 Generated with Claude Code
https://claude.ai/code/session_0151gQm9fk3XGLi5f18Urdba
Generated by Claude Code