Skip to content

feat(timings): epoch boundaries in the record — the legacy round is labeled + digested - #209

Merged
Jammy2211 merged 4 commits into
mainfrom
claude/ci-test-timing-epic-ke2lul
Sep 6, 2026
Merged

Jammy2211 merged 4 commits into
mainfrom
claude/ci-test-timing-epic-ke2lul

Conversation

@Jammy2211

Copy link
Copy Markdown
Contributor

Closes #208. Phase 4 of the ci-timing-fast-tests epic (PyAutoMind draft/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.yml run seeded timings/: 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 _test script 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.jsonl is 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 --aggregate mains pass the current epoch's date to their readers; the pure aggregate() functions are unchanged.
  • The first boundary: legacy @ 2026-09-05, written by the new python -m heart.timings epoch verb (the human door — the daily append never 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.
  • Board: both record: detail lines carry · epoch <label> since <date> and the performance block gains an additive epoch key — 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 _test flagships (in both, the time sits in ~15 compile-dominated jax_likelihood scripts; visualization.py is 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 the unit-timings artifact.
  • Test hermeticity fix: two main --aggregate tests passed no --record-dir and fell through to the repo's live timings/; once the first record commit landed ([skip ci], so main never ran it) the smoke_timings one went red on main. 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.timings gains read_epochs, current_epoch, append_epoch, a since keyword on every reader, epoch/epochs census keys and the epoch CLI verb; board.json gains an optional additive performance.epoch.

Test Plan

  • python3 -m pytest -q -n auto — 864 passed (from 841 on main, 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 OK
  • Next scheduled heart-health.yml run: both timing rows show · epoch legacy since 2026-09-05 and board.json carries performance.epoch

Generated by the PyAutoLabs agent workflow.

🤖 Generated with Claude Code

https://claude.ai/code/session_0151gQm9fk3XGLi5f18Urdba


Generated by Claude Code

…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
@Jammy2211
Jammy2211 merged commit ad56720 into main Sep 6, 2026
2 checks passed
@Jammy2211
Jammy2211 deleted the claude/ci-test-timing-epic-ke2lul branch September 6, 2026 00:16
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.

test: legacy baseline timing round — epoch boundary in the record + the pre-rebuild digest

2 participants