Skip to content

dashboard: show smoke + autobuild summary on every venv activation - #14

Merged
Jammy2211 merged 1 commit into
mainfrom
feature/dashboard-test-summary
Apr 28, 2026
Merged

dashboard: show smoke + autobuild summary on every venv activation#14
Jammy2211 merged 1 commit into
mainfrom
feature/dashboard-test-summary

Conversation

@Jammy2211

Copy link
Copy Markdown
Collaborator

Summary

  • Two new optional sections at the bottom of pyauto-status: smoke test summary (per-workspace, colored) and last autobuild run aggregate.
  • Both are pure file reads from ~/.cache/pyauto/smoke/ and PyAutoBuild/test_results/ — no network, no fetches.
  • Sections suppress cleanly when no JSONs exist.
  • Companion: https://github.com/Jammy2211/admin_jammy/pull/8 teaches the /smoke-test skill to write the per-workspace JSON.

Closes #13.

Test plan

  • Empty ~/.cache/pyauto/smoke/: smoke section fully suppressed; autobuild section shows aggregate from PyAutoBuild/test_results (7 jobs, 153 passed, 16 failed, 28 skipped — red).
  • Seeded fixtures: autofit_workspace (failed=0) renders green with ✓; autolens_workspace (failed=2) renders red with ✗.
  • Deleting fixtures restores the empty-smoke state — section suppresses cleanly.
  • Full dashboard runtime: 2.7s real (~100ms attributable to the new sections).
  • Existing dashboard behaviour (table, flags, Dirty files, Follow-up commands) is byte-for-byte unchanged when no JSONs present.

🤖 Generated with Claude Code

Two new optional sections appended to pyauto-status, both read-only
file I/O (no network, no fetches). Suppressed entirely when no JSONs
are present, so the clean case stays quiet.

  Smoke tests:           per-workspace counts from ~/.cache/pyauto/smoke/
                         *.json (written by the /smoke-test skill, see
                         the companion admin_jammy PR). ANSI green if
                         failed=0, red otherwise; ✓/✗ symbol for
                         non-color terminals.

  Last autobuild run:    aggregate counts + most-recent completed_at
                         from PyAutoBuild/test_results/*.json (committed
                         by the autobuild release pipeline). Shows
                         PyAutoBuild's HEAD short SHA. Red counts if
                         any job failed.

Total dashboard runtime ~2.7s on the live tree (well under the 4s
target). One python invocation per section parses all JSONs in one
shot to avoid per-file fork overhead.

Implements autoprompt 08.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
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.

Dashboard: persist smoke summaries and show autobuild status

1 participant