darner census: total the images column in the summary row #611
No reviewers
Labels
No labels
AMD
audio
bug
confirmed
crash
cutscene
dlss
documentation
duplicate
enhancement
fixed-on-main
frame-generation
hle
input
INTEL
lighting
linux-proton
memory
MULDER
needs-info
needs-logs
needs-rebase
NVIDIA
performance
post-merge
pr-diagnostics
pr-docs
pre-merge
pr-feature
pr-fix
pr-performance
pr-refactor
pr-tests
question
RAYTRACING
relevance
high
relevance
low
relevance
medium
relevance
very-high
rendering
report
roadmap-proposal
saves
series-s
shaders
startup
status
blocked-by-rework
status
needs-test-report
status
needs-triage
status
ready-for-review
status
stale
status
superseded
status
wip
tools
ui
upstream
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
TrustNo1/Darner!611
Loading…
Reference in a new issue
No description provided.
Delete branch "qnjk/Darner:census-images-total"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Contributor role (optional)
What it changes
The problem on main:
darner censusprints a table whose last column,images, says how many images use each import, and the table ends without a total (apps/darner/src/census.rs:119). A reader cannot tell whether the column is a per-import count that should be totalled, nor reconcile it with the "N images scanned" line above — those are two different numbers, and neither said so.This change adds the
TOTALrow's fifth cell: the sum of the per-DLLimagescolumn, i.e. the number of (DLL, image) import links — which is at least the scanned-image count, and a comment in the code now says so, so the two numbers are not read as a contradiction.How it was tested
cd51e06(one commit onc8258f9).cargo test --locked -p darner— 208 passed in the bin, plus the crate's 2 + 3 + 8 integration tests.census_totals_the_images_column(apps/darner/tests/census.rs): it scans the CLI's own binary (a real PE32+, the same precedentdarner-pe'sparses_own_test_binaryuses), asserts theTOTALrow has five cells, and that the fifth equals the sum of the data rows' last cells — so a wrong total fails, not only a missing one. No title, no fixture.cargo clippy --locked -p darner --all-targets -- -D warningspasses.cargo clippy --workspace --all-targets --locked -- -D warnings: passes.cargo clippy --workspace --all-targets --all-features --locked -- -D warnings: passes.cargo test --workspace --locked: not run to completion here; the pre-existingdarner-gputest deadlock (#224) anddarner-shaderwaterfall fixture failure (#227) make the whole-workspace run non-green on this machine.darner's suite is green.censuscommand.--missinglisting is untouched.Checklist
darner censusis an offline command; the change cannot alter a run.main.docs/asset-policy.md(cargo xtask policy: 576 files ok).Checked for overlap
apps/darner/src/census.rsorapps/darner/tests/census.rs(checked against the file list of all 189 open pull requests). PR #330 (merged) changed only the--missingdetail collector, which this does not touch.[pr-fix] darner census: total the images column in the summary rowto darner census: total the images column in the summary rowView command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.