Translate: VICTORY_FAIL_DUMP keeps the first three samples of a reason across files #330

Open
github-bot wants to merge 1 commit from github-bot/gh-330 into main AGit
Owner

@⁠RenzoWit35 on GitHub · 2026-11-24 23:34 UTC · original
RenzoWit35:fix/247-fail-dump-samples-per-command → main · +162 −13 · 3 files · 1 commits · open

Fixes #247.

The sample counter was each worker's per-file tally, so every file's (and every worker's)
first failure of a reason wrote <stem>_0.cdxil over the last. The count was also of programs,
not containers. A command-wide FailDump now hands out slots under a lock, capped at three
containers per reason. Files are named <stem>_<blake3(reason)[..8]>_<slot>.cdxil, so reasons
that sanitize alike or differ only after 60 characters stay apart.

Tests: five inputs with the same reason keep exactly the first three samples; reasons that
sanitize alike get distinct files; only reasons a container added are counted; eight threads
racing for one reason get exactly three distinct slots. Adds tempfile as a dev-dependency of
apps/victory.

Note: dump file names gain an 8-hex-digit hash.

Testing

On Windows 11, MSVC Rust 1.98.1, branch alone on top of main (2119b0e): cargo clippy --workspace --all-targets --locked -- -D warnings, the same with --all-features, and cargo test --workspace --locked all pass. The new regression test fails on main and passes here. All nine fix branches for #242-#250 also pass together when merged.

🤖 Generated with Claude Code

**@⁠RenzoWit35** on GitHub · 2026-11-24 23:34 UTC · [original](https://github.com/fxceless/victory-fork/pull/330) `RenzoWit35:fix/247-fail-dump-samples-per-command` → `main` · +162 −13 · 3 files · 1 commits · open Fixes #247. The sample counter was each worker's per-file tally, so every file's (and every worker's) first failure of a reason wrote `<stem>_0.cdxil` over the last. The count was also of programs, not containers. A command-wide `FailDump` now hands out slots under a lock, capped at three containers per reason. Files are named `<stem>_<blake3(reason)[..8]>_<slot>.cdxil`, so reasons that sanitize alike or differ only after 60 characters stay apart. Tests: five inputs with the same reason keep exactly the first three samples; reasons that sanitize alike get distinct files; only reasons a container added are counted; eight threads racing for one reason get exactly three distinct slots. Adds `tempfile` as a dev-dependency of `apps/victory`. Note: dump file names gain an 8-hex-digit hash. ## Testing On Windows 11, MSVC Rust 1.98.1, branch alone on top of `main` (2119b0e): `cargo clippy --workspace --all-targets --locked -- -D warnings`, the same with `--all-features`, and `cargo test --workspace --locked` all pass. The new regression test fails on `main` and passes here. All nine fix branches for #242-#250 also pass together when merged. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
The sample count lived in each worker's tally for one file, so every file
(and every worker) wrote its first sample of a reason as <reason>_0.cdxil
over the last one. The slots now come from one count for the whole command,
and the file name carries a short hash of the full reason, so reasons that
read alike once cut and made path-safe no longer share files.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 03:40:52 +00:00
Author
Owner

@⁠kaayzouee on GitHub · 2026-11-25 01:20 UTC · original

Duplicate of #292?

**@⁠kaayzouee** on GitHub · 2026-11-25 01:20 UTC · [original](https://github.com/fxceless/victory-fork/pull/330#issuecomment-7149441030) Duplicate of #292?
github-bot force-pushed github-bot/gh-330 from 9066a48108 to e9d73ff436 2026-11-26 16:29:03 +00:00 Compare
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/330/head:github-bot/gh-330'
git switch 'github-bot/gh-330'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-330'
git switch 'github-bot/gh-330'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-330'
git switch 'github-bot/gh-330'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-330'
git switch 'main'
git merge --squash 'github-bot/gh-330'
git switch 'main'
git merge --ff-only 'github-bot/gh-330'
git switch 'main'
git merge 'github-bot/gh-330'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No description provided.