metal: pin corpus.rs' failure-grouping helpers (code_name, normalise) with unit tests #477
Labels
No labels
accessibility
bug
claimed
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
tester report
urgent
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/LakshanSivakumar--Native-Victory-macOS#477
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
@AnastasisKon on GitHub · 2026-11-27 21:49 UTC · original
What
crates/victory-metal/src/corpus.rs(thevictory-metal --corpussweep) groups converter/pipeline failures bycode_name(code)(theIRErrorCodename table) and bynormalise(reason)(digits collapsed toN, so hex addresses and counts group together). Both are pure and untested; the--failsoutput and the per-stage counts rest on their exact behavior.What this changes
One change, test-only: unit tests in
corpus.rspinningcode_name: 0..=19 map to their names, 20 and beyond (incl.u32::MAX) are"Unknown";normalise: each run of digits becomes oneN, non-digits pass through, input is truncated to 160 chars, no-digit input is unchanged.How it was tested
cargo test -p victory-metalon an Apple Silicon Mac (the crate is macOS-only; on Windows it builds empty, so CI's workspace run is unaffected)cargo clippy --workspace --all-targets --locked --target x86_64-pc-windows-gnullvm -- -D warningscargo xtask policy@AnastasisKon on GitHub · 2026-11-27 21:49 UTC · original
/claim
@github-actions[bot] on GitHub · 2026-11-27 21:49 UTC · original
Claimed by @AnastasisKon. Open a draft pull request with
Refs #473in its description within 24 hours, or the claim expires.@AnastasisKon on GitHub · 2026-11-27 21:51 UTC · original
Draft PR up: #479 (branch vibe/corpus-helpers-tests-1705ac). Local gates pass: cargo test -p victory-metal (3 new tests), the 4-package test gate, windows clippy, xtask policy.
github-bot referenced this issue2026-11-27 21:59:40 +00:00
@AnastasisKon on GitHub · 2026-11-28 12:44 UTC · original
/release - done without a PR: on branch
vibe/corpus-helpers-tests-1705ac, in my fork'smain. It pins corpus.rs' failure-grouping helpers witheach_digit_run_collapses_to_one_number,normalise_reads_at_most_160_charsanderror_codes_have_their_names_and_beyond_the_table_they_are_unknown.@github-actions[bot] on GitHub · 2026-11-28 12:44 UTC · original
Released. This issue is free to claim.