translate: VICTORY_FAIL_DUMP samples stay distinct across files #336
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/fxceless--victory-fork!336
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/336/head"
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?
@JordanFableFur on GitHub · 2026-11-24 23:34 UTC · original
JordanFableFur:fix/fail-dump-samples→main· +25 −4 · 1 files · 2 commits · closed without mergingWhat
The first-3-containers-per-reason limit counted per worker and per file: the counters live in each worker's
Tally, andbeforeis read per file. Two files whose first failure has the same reason each wrote<reason>_0.cdxil, and the second replaced the first.Sample slots are now tracked for the whole run, keyed by reason (
SAMPLED), and a container takes the next slot the run has not written yet. That also keeps samples distinct when two different reason strings sanitize to the same file stem.Fixes #247.
Testing
cargo check --all-targetsand clippy-D warningscross-checked for the Windows target (clean). The write path sits behindVICTORY_FAIL_DUMPinside the worker scope; the slot bookkeeping is exercised by the change itself (old block with two same-reason failures wrote one file, the new logic takes slot 1 for the second).AI use: written with Codex and Claude Code (GPT-5.2 Codex); reviewed and posted with my approval. No game files were used.
@chatgpt-codex-connector[bot] on GitHub · 2026-11-24 23:35 UTC · original · edited 2026-11-24 23:38 UTC
Codex Review Summary: ✅ Completed
This comment shows the latest Codex review activity on this pull request.
eeeb39eℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.
@JordanFableFur on GitHub · 2026-11-25 00:32 UTC · original
Addressed in
24dfcec: a slot is marked taken only afterfs::writesucceeds, so a transient write failure (an unwritable directory) leaves the slot for the next failure of that reason.@kaayzouee on GitHub · 2026-11-25 01:20 UTC · original
Duplicate of #292?
@JordanFableFur on GitHub · 2026-11-25 01:46 UTC · original
Closing — #292 fixes the same issue (#247) and was opened first. Thanks for flagging.
@chatgpt-codex-connector[bot] on GitHub · 2026-11-24 23:38 UTC · original
On
apps/victory/src/translate.rsline 401 (outdated):If the first three dump attempts for a reason fail because the output directory is temporarily unwritable, this insertion still fills
SAMPLEDeven though no container was saved. Once the directory becomes writable, failures in later input files are silently skipped because all slots are already marked taken; previously those files retried the write. Mark a slot as taken only afterstd::fs::writesucceeds, or release it on error, so a transient filesystem error cannot suppress that reason's dumps for the remainder of the run.Useful? React with 👍 / 👎.
Pull request closed