Repository navigation
feat: unit-trend chart follow-ups from #338 - #347
Merged
Merged
Conversation
- unit trends fill the chart height (min_span=0); gate charts keep the floor of 1, pinned byte-for-byte by a golden-HTML test - unit_history applies the epoch to the plotted day (at, else date) - unit-trend label's date range names the measured days the axis draws - per-day point: median of the day's main runs (cache hits preferred) for wall_s/import_s; tests from the last run Closes #346 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…firewall) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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
Follow-ups from the independent review of PyAutoHeart#339 (unit-test trend charts), issue #346.
plot()gainsmin_span(default 1, today's floor).unit_trendpassesmin_span=0, so a PyAutoNerves import chart spans the full height instead of 10–14% of it. Gate charts keep the default.unit_historynow applies the epoch to the run day it plots (at, falling back todate), not to the line'sdate. On the live record, PyAutoArray's 2026-10-26T17:32Z run carriesdate: 2026-10-27.gaps=False).wall_sandimport_s, the median is taken over the day's cache-hitruns when there are any, otherwise over all its runs.testsis still the last run's count.tests/golden/gate_chart.htmlholds a gate chart (sub-second series, with a gap) rendered by the pre-change code, compared byte for byte.API Changes
None. Internal only:
heart.timing_display.plotgains a keywordmin_span=1, and the default output is unchanged.Test Plan
pytest tests -x: 1459 passedmin_span=0fails the golden test; the unit trend with floor 1 fails the fill-height test; the epoch filter ondatefails the epoch test.Validation checklist (--auto run — plan was not pre-approved)
chartandorganism_totalkeep the default floor,organism_totalreads onlytests) · Heart dev-ship GREEN (readiness --dev --repos PyAutoHeart); shown, non-blocking: PyAutoLens 1 uncommitted source change; manifest drift ×2; PyAutoArray open PR 10d old; release validation no rehearsal (all in the brief's heart-ack) · adversary independent Sonnet adversary CLEAN — Witness holds on all three clauses (golden passes against base code; fill-height and epoch tests fail when each fix is reverted; real record: PyAutoNerves import charts span y 15–75)Tier: glance. Merge mode: auto-merge on green if the Witness passes, with a post-merge summary.
Generated by the PyAutoLabs agent workflow.
🤖 Generated with Claude Code