metal: pin corpus.rs' failure-grouping helpers (code_name, normalise) with unit tests #473
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?
Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by AnastasisKon on 2026-11-27T21:49:08Z.
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 policyImported from LakshanSivakumar/Native-Victory-macOS. Originally posted by AnastasisKon on 2026-11-27T21:49:15Z.
/claim
Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by github-actions[bot] on 2026-11-27T21:49:24Z.
Claimed by @AnastasisKon. Open a draft pull request with
Refs #473in its description within 24 hours, or the claim expires.Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by AnastasisKon on 2026-11-27T21:51:04Z.
Draft PR up: #475 (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.
Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by AnastasisKon on 2026-11-28T12:44:05Z.
/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.Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by github-actions[bot] on 2026-11-28T12:44:14Z.
Released. This issue is free to claim.