Skip to content

DOOM study: per-subsystem SVG heatmaps (Part of #6097, slice 4) - #6863

Merged
squid-shepherd[bot] merged 1 commit into
mainfrom
churn/6097-20261028T0423Z
Oct 28, 2026
Merged

squid-shepherd[bot] merged 1 commit into
mainfrom
churn/6097-20261028T0423Z

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Part of #6097. Slice 4 of the per-subsystem distributions: the plots.

tests/tools/doom_speedrun/subsystem_plot.py reads subsystem_distribution.csv and writes subsystem_<metric>.svg for any of the five metrics: a heatmap of ports by linuxdoom subsystem, each cell the port's median over linuxdoom's median (log scale, red above, blue below), grey and empty where there is no ratio (never drawn as zero), and the port's other % as the last column. Standard library only (matplotlib is not in the venv); --csv plots a given file.

Class / Sibling gaps

Class: output surfaces of the per-subsystem distribution (CSV, md, plot, study report, sfs). Handled: CSV and md (#6744, #6833), lineage placement (#6846), the heatmap (this PR). Sibling gaps: (1) study_report.py does not embed or link the SVGs; it needs a real non-C scan to choose which metric to show. (2) The p90 and cx10 (share >= 10) are tabulated but not plotted. (3) "sfs-side pieces" is undefined in the issue; needs the owner to say what is meant. (4) No real scan was run: tests use a synthetic CSV, so the layout on 40+ ports is unseen.

Remaining slices

study_report wiring (study_report.py + its test, after a real scan at current HEAD); p90 / cx10 plots (subsystem_plot.py); sfs-side pieces (owner).

Evidence

pytest tests/tools/test_doom_subsystem_plot.py: 6 passed (colour scale, grey for blank, SVG parses with the right cell count, missing column refused, CLI output path). pr_gates --fast: 9/9 pass. Tree guards and the existing DOOM distribution/report tests: 146 passed. Not run: --ratchets (no engine, golden or ledger input touched).

Checklist: partial [c:5b53dc02] -- study_report wiring, p90/cx10 plots, sfs-side pieces

🤖 Generated with Claude Code

subsystem_plot.py reads subsystem_distribution.csv and writes one stdlib-only SVG per metric: ports by linuxdoom subsystem, port median over linuxdoom median on a log scale, grey for no ratio, other % as the last column.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
@squid-protocol squid-protocol added the shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md label Oct 28, 2026
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot marked this pull request as ready for review October 28, 2026 04:28
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot enabled auto-merge (squash) October 28, 2026 04:29
@squid-protocol squid-protocol added shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md and removed shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md labels Oct 28, 2026
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot merged commit 5d0d259 into main Oct 28, 2026
62 checks passed
@squid-shepherd
squid-shepherd Bot deleted the churn/6097-20261028T0423Z branch October 28, 2026 04:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant