Skip to content

refactor(reporting): drop the dead legacy budget-breakdown panel renderer - #114

Merged
spMohanty merged 1 commit into
mainfrom
refactor/remove-dead-breakdown-panel
Jul 24, 2026
Merged

spMohanty merged 1 commit into
mainfrom
refactor/remove-dead-breakdown-panel

Conversation

@spMohanty

Copy link
Copy Markdown
Member

Summary

_render_breakdown_sections and _breakdown_panel in src/whestbench/reporting.py have no callers anywhere in src/ or tests/: render_human_report/render_human_results build run reports through the presentation pipeline (presentation.adapters.build_run_presentation + presentation.blocks), which fully replaced this panel.

Beyond being dead weight, the legacy panel still renders the sampling breakdown the pre-#113 way — an unattributed Residual Wall Time row summing bake-machine wall clock (discourse #18093) — so any future revival would silently resurface that bug. Deleting it closes that door.

Kept: _gauge_renderable, _over_budget_renderable, _compute_gauge_state, _label_with_code, _fmt_flops, _as_float — all have live callers (the test-covered standalone wrappers _render_budget_gauge/_render_over_budget_panel and other report sections). The two docstrings that referenced _breakdown_panel now point at the presentation pipeline.

Net: 1 file, +4/−118.

Verification

  • grep across src/ and tests/: zero remaining references to either function.
  • ruff check / ruff format --check / pyright clean; full suite 1128 passed locally.

Follow-up to #113.

…erer

_render_breakdown_sections and _breakdown_panel have no callers: the run
report renders breakdowns through the presentation pipeline
(presentation.adapters.build_run_presentation + blocks). The dead panel
predates the bake-time attribution fix, so reviving it would resurface
the misleading sampling residual row. Shared gauge/over-budget helpers
stay — they back the test-covered standalone wrappers.
@spMohanty
spMohanty merged commit 96db288 into main Jul 24, 2026
3 checks passed
@spMohanty
spMohanty deleted the refactor/remove-dead-breakdown-panel branch July 24, 2026 11:04
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.

1 participant