translate: VICTORY_FAIL_DUMP samples stay distinct across files #336
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/336"
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 fxceless/victory-fork. Originally posted by JordanFableFur on 2026-11-24T23:34:58Z.
What
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.
Imported from fxceless/victory-fork. Originally posted by chatgpt-codex-connector[bot] on 2026-11-24T23:38:09Z.
Review: COMMENTED
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit:
eeeb39e2eaℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
Imported from fxceless/victory-fork. Originally posted by chatgpt-codex-connector[bot] on 2026-11-24T23:35:07Z.
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.
Imported from fxceless/victory-fork. Originally posted by chatgpt-codex-connector[bot] on 2026-11-24T23:38:09Z.
Code review location:
apps/victory/src/translate.rs; line 401If 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 👍 / 👎.
Imported from fxceless/victory-fork. Originally posted by JordanFableFur on 2026-11-25T00:32:55Z.
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.Imported from fxceless/victory-fork. Originally posted by kaayzouee on 2026-11-25T01:20:27Z.
Duplicate of #292?
Imported from fxceless/victory-fork. Originally posted by JordanFableFur on 2026-11-25T01:46:15Z.
Closing — #292 fixes the same issue (#247) and was opened first. Thanks for flagging.
Pull request closed