Skip to content

chore: drop hardware-specific references from comments - #20

Merged
jorge-menjivar merged 1 commit into
mainfrom
clean-up-comments
Aug 20, 2026
Merged

chore: drop hardware-specific references from comments#20
jorge-menjivar merged 1 commit into
mainfrom
clean-up-comments

Conversation

@jorge-menjivar

Copy link
Copy Markdown
Owner

Comments and test fixtures named the particular machines they were taken from. This removes those references while keeping everything that documents the behaviour.

The technical substance is the part that earns its place in a comment — carveout sizes, page counts, gfx targets, the compressor distinction — so all of it stays. Only the model names and host details go.

Changes

File Was Now
drm.rs 512 MiB on a BC-250, for instance as little as 512 MiB, for instance
drm.rs On a BC-250 with a 512 MiB carveout On an APU with a 512 MiB carveout
drm.rs Real BC-250 readings: …as an APU reports it
kfd.rs Trimmed from a real BC-250 node Trimmed from an AMD GPU node
kfd.rs The BC-250 this was written against A gfx1013 part
lib.rs 512 MiB of 14.5 GiB on a BC-250 512 MiB of 14.5 GiB on one such part
metal.rs Trimmed from a real M2 running macOS 26.5 A representative vm_stat report on a 16 KiB-page host
metal.rs ~6.2 GiB of the 8 GiB this fixture was taken from a plausible fraction of installed memory, not a multiple
metal.rs would report ~19 GiB on 8 GiB overshoots by several times

Also drops a trailing Detection was exercised end to end on an Apple M2 (macOS 26.5) sentence from the apple_family docs. What remains there is the citation to Apple's published feature-set tables, which is the part a reader needs.

Deliberately left alone: generic mapping documentation like e.g. `apple8` for an M2 and the Apple M2 Pro parser fixtures. Those name a chip to explain an API, not a machine anyone is testing on, and removing them would cost real clarity.

Verification

No behaviour change — comments and doc text only. just ci passes: 100 unit + 9 integration + 13 doctests, clippy clean under pedantic + -D warnings.

🤖 Generated with Claude Code

Comments and test fixtures named the particular machines they were taken
from. The technical substance is what documents the behaviour — carveout
sizes, page counts, gfx targets — so that stays; only the model names and
host details go.

- drm, kfd, lib: describe the AMD APU by what it is rather than by model.
- metal: the `vm_stat` fixture reads as a representative report rather
  than a capture from a named host, and the assertions no longer narrate
  that host's installed memory.

No behaviour change; comments and doc text only.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@jorge-menjivar
jorge-menjivar merged commit e4f6b17 into main Aug 20, 2026
10 checks passed
@jorge-menjivar
jorge-menjivar deleted the clean-up-comments branch August 20, 2026 05:25
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