CLI: victory compare, an A/B of two translate --list outputs program by program (branch ready; PRs are collaborator-only) #787
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 Marvisak/VIctory. Originally posted by Pablo-Barros on 2026-11-24T10:47:00Z.
Every per-program measurement on this tracker has been made so far with a script of the reporter's own (#736, #233, #201, #459).
victory compare <before> <after>reads twotranslate --listoutputs and gives that answer without one:It prints:
The key is the file's name, offset, record and stage, so copies of the title in other folders compare. A program a run stopped earlier counts as not made for that run's checks, so "pipeline created before, refused by the translator now" is a loss.
Checked
5ff639emerged ontomainffe310e, whole title, RTX 3070 (32-lane waves): 25,953 programs in both, 528 pipelines gained and 12 lost, 0 validations lost, each loss with both reasons. The result is on #180.main: 0 gained, 0 lost, as four reports there measured by hand.Branch
https://github.com/Pablo-Barros/VIctory/tree/cli/translate-compare: one commit,
31953ea, onmainffe310e.apps/victory/src/compare.rs(5 tests on synthetic list text, no game data), the command inmain.rs, one line in the README's command list.-D warnings, with and without--all-features): clean.cargo test --workspace --locked: 347 passed, 0 failed, 6 ignored (mainhere: 342 / 0 / 6).cargo xtask policy: 3 files ok.Not covered
The tool reads text files only; the title was not run with it.
AI use: the agent (Claude Code) wrote the code and tests and ran everything above on this machine at my request; the counts are from those runs. No game data is included.
Imported from Marvisak/VIctory. Originally posted by andrewpozdnakov7-jpg on 2026-11-24T11:43:05Z.
I ran the
comparecommand from31953eaon two synthetic lists saved with>in Windows PowerShell 5.1. The files had a UTF-16LE BOM, and the CLI exited withstream did not contain valid UTF-8. The plain UTF-8 control reported two matching programs and one pipeline loss. PowerShell encoding defaultsThe follow-up accepts the UTF-16 BOMs and strips the UTF-8 BOM before parsing. The built CLI prints the same report for the PowerShell files, a UTF-8 BOM input, and a UTF-16BE input as it does for plain UTF-8. All seven compare tests passed, including the first record and malformed encoding cases.
AI-assisted. Reproduced and verified with synthetic text on Windows.
Incremental patch on
31953eaImported from Marvisak/VIctory. Originally posted by andrewpozdnakov7-jpg on 2026-11-24T12:06:50Z.
One more Windows check for
31953ea. A synthetic listing with the relative pathcopy Ps files/shader.rpfdropped a program line. The two spaces afterPswere picked as the outcome delimiter before the parser checked whether the text before them was a complete label.With the fix, the built
victory comparereports two programs in both runs and one pipeline loss. The parser regression fails with the originalsplitand passes with the patch. It also checks that an instruction offset in the label and double spaces in the diagnostic are preserved as expected. All six compare tests passed. The patch also applies over the BOM follow-up above.AI-assisted. Verified with synthetic lists on Windows.
Incremental patch on
31953eaImported from Marvisak/VIctory. Originally posted by MamaLeVrai on 2026-11-24T19:45:26Z.
@Pablo-Barros your fix for this issue is now in a pull request, #1610, with seven other fixes from contributors' forks: the branch is merged as it is, with your commit(s) and your name unchanged, onto
mainffe310e. Clippy (both runs) andcargo test --workspacepass on the result. If you would rather open your own pull request for this one, say so and I will take it out of #1610. AI-assisted (Claude Code); no game data.Imported from Marvisak/VIctory. Originally posted by Marvisak on 2026-11-25T03:52:48Z.
Automated triage for the maintainers. A request for a
victory comparecommand that diffs twotranslate --listoutputs program by program. It fits the project: it is an offline tool that works on listings of the user's own copy. The branchcli/translate-compare(with the BOM and label-parsing follow-ups in the comments) has no open PR, and the combined PR #1610 mentioned above is not open either. Pull requests are open to everyone, so please open one.Open PR #1541 (
list-diff, which compares two translate listings program by program) covers the same ground. The two should be compared there so only one lands.Generated by Claude Code