Skip to content

DOOM study: subsystem table shows median/0 where linuxdoom's median is 0 (Part of #6097, slice 8) - #6869

Merged
squid-shepherd[bot] merged 3 commits into
mainfrom
churn/6097-20261028T0607Z
Oct 28, 2026
Merged

squid-shepherd[bot] merged 3 commits into
mainfrom
churn/6097-20261028T0607Z

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Part of #6097 (slice 8). Checklist: partial [c:5b53dc02] -- sfs-side pieces still undefined in the issue (ask owner).

Root cause

The data-tables and platform (i_*) columns of the study's "By subsystem" table were blank for every port for two different reasons, neither a placement bug:

  • platform (i_*): ports have plenty of functions there (chocolate-doom 332 vs linuxdoom 29), but linuxdoom's median complexity in i_* is 0, so complexity / 0 is undefined and summarise stores None. The cell looked like missing data.
  • data-tables: linuxdoom's info.c / tables.c hold arrays, not functions: 1 function per side in the scan, under MIN_SUBSYSTEM (5). Genuinely nothing to compare; the column stays blank.

Change

  • subsystem_distribution.summarise marks a row comparable (only when true) when both sides meet the minimum; the CSV writer ignores the extra key.
  • study_report.subsystem_block shows <port median>/0 for a comparable subsystem whose ratio is undefined, instead of a blank.
  • Test for the new cell and for the under-minimum cell staying blank.
  • The doc's generated block is not regenerated here (needs scans at this HEAD; see Remaining slices).

Class / Sibling gaps

Class: a per-subsystem ratio cell that is blank. Members: under-minimum count on either side (data-tables: correct, stays blank; baseline has 1 function); baseline median 0 (platform: fixed here for complexity). Sibling gaps: the same median-0 blank exists in the md/CSV func_fan_out_vs_linuxdoom and args_vs_linuxdoom columns (linuxdoom i_* median 0 for both) and in the heatmaps (subsystem_plot.py greys them): not changed, different renderers. data-tables has no functions to measure; a table-size measure would need a different mechanism (array/initializer counts), not done.

Remaining slices: regenerate docs/research/doom-port-study.md subsystem block with study_report.py --sha <HEAD> --write over fresh scans; heatmap handling of median-0 cells.

🤖 Generated with Claude Code

squid-protocol and others added 3 commits October 28, 2026 02:14
…s 0 (platform i_* column) (Part of #6097, slice 8)

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 06:19
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot enabled auto-merge (squash) October 28, 2026 06:19
@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 8af3b03 into main Oct 28, 2026
65 checks passed
@squid-shepherd
squid-shepherd Bot deleted the churn/6097-20261028T0607Z branch October 28, 2026 06:25
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