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

Open
RenzoWit35 wants to merge 1 commit from upstream-pr/330 into main
RenzoWit35 commented 2026-11-24 23:34:47 +00:00 (Migrated from github.com)

Imported from fxceless/victory-fork. Originally posted by RenzoWit35 on 2026-11-24T23:34:47Z.


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

<!-- greyfinch-sync:fxceless/victory-fork:issue:6593598057 --> Imported from [fxceless/victory-fork](https://github.com/fxceless/victory-fork/pull/330). Originally posted by [RenzoWit35](https://github.com/RenzoWit35) on 2026-11-24T23:34:47Z. --- 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)
kaayzouee commented 2026-11-25 02:10:06 +00:00 (Migrated from github.com)

Imported from fxceless/victory-fork. Originally posted by kaayzouee on 2026-11-25T01:20:06Z.


Duplicate of #292?

<!-- greyfinch-sync:fxceless/victory-fork:comment:7149441030 --> Imported from [fxceless/victory-fork](https://github.com/fxceless/victory-fork/pull/330#issuecomment-7149441030). Originally posted by [kaayzouee](https://github.com/kaayzouee) on 2026-11-25T01:20:06Z. --- Duplicate of #292?
This pull request cannot be merged automatically due to conflicts.
Merge manually to resolve the conflicts.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'upstream-pr/330:upstream-pr/330'
git switch 'upstream-pr/330'

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.

git switch 'main'
git merge --no-ff 'upstream-pr/330'
git switch 'upstream-pr/330'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/330'
git switch 'upstream-pr/330'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/330'
git switch 'main'
git merge --squash 'upstream-pr/330'
git switch 'main'
git merge --ff-only 'upstream-pr/330'
git switch 'main'
git merge 'upstream-pr/330'
git push origin 'main'
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
fxceless/victory-fork!330
No description provided.