Repository navigation
Conversation
catminou4
left a comment
There was a problem hiding this comment.
Verified locally on macOS 26 arm64, rustc 1.98.1 (aarch64-apple-darwin, rust-toolchain.toml):
Same setup as #664 (main's app crate doesn't compile on macOS; #235's head merged locally, uncommitted, additive conflict resolved):
cargo check -p victory --locked: cleancargo test -p victory --locked: 1 passed, 0 failed — the new stability test for translate failure examples passes.
Approving.
LAKSHYA-cmd-tech
left a comment
There was a problem hiding this comment.
LGTM! Tested on Windows 11 with MSVC Rust 1.98.1. cargo test -p victory passes cleanly (2 passed, including ailure_example_is_independent_of_worker_order). Keeping the lexicographically smallest label for each failure reason guarantees deterministic, reproducible translation error reports across multi-threaded workers.
|
Independent verification of
AI-assisted; synthetic tests only, no game files. |
mercuryVM
left a comment
There was a problem hiding this comment.
Tested 3ba3f79 on Windows 11, RTX 5070, MSVC: cargo test -p victory 2 passed, including failure_example_is_independent_of_worker_order. Clippy's 1 warning is the existing field_reassign_with_default in victory-hle xmem.rs:747, not from this PR.
- Choosing the minimum label is order-independent both within a worker and across merges, and
record_failureis the single place that applies it. - Small cost:
example()is now evaluated for every failure, even whenlistis off, where before it ran only the first time per reason. It's aformat!per refused program, so negligible next to the translation work. - Labels compare as strings, so
@0x10sorts before@0x9. That doesn't matter for determinism, just worth knowing if anyone expects the "lowest address".
AI-assisted (Claude Code).
…e across workers Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Audit: ✅ Looks good (needs Windows to fully compile)Reviewed this PR as part of an audit of mergeable PRs.
No issues found in the diff. |
|
Independent Windows check of
The fixture records translation-failure examples in different arrival orders and verifies that the output example is stable. No shader corpus used. Only source-built synthetic fixtures were used. AI-assisted verification. |
…ey, in-flight dedup, and AOT warm-up Conflicts resolved by hand: - victory-shader/build.rs: one main() that computes the source hash (this PR) and then opts test binaries into an app-local Agility SDK runtime (upstream main), both unchanged. - translate.rs: this PR's file work queue, fed by the fork's scan_entries() so traversal errors are still counted and reported; Tally keeps the cache counters and the smallest-label example (Marvisak#673). - shader_cache.rs doc: this PR's wording with plain backticks (Marvisak#675). - victory-pipeline cache.rs: this PR's get_or_convert_bytes path. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Where a fork-only change duplicates upstream's own version of a feature, upstream's is kept and the fork's dropped: - victory-shader is upstream's crate with the fork-only merges replayed onto it oldest first; those that do not apply onto upstream are dropped (37 of 63: among them Marvisak#704/raw views, gather4_l, the lane-mask and Marvisak#308 ports, Marvisak#947, Marvisak#1022, Marvisak#1112, Marvisak#1090, Marvisak#1182). Marvisak#284 (legacy fused madds) and Marvisak#98 (permlane16 in whole-wave sections) are dropped too: the first disagrees with upstream's hardware-checked model, the second refused 46 programs upstream translates. - translate: upstream's --cache replaces Marvisak#254's write-cache and work queue; Marvisak#378, Marvisak#517, Marvisak#673 and the victory.toml console are re-applied. - victory-gpu: upstream's stride table, page table and heap views replace the fork's Marvisak#704/stride-table wiring; fork-only fixes re-applied on top. Package (shaders.rpf, translate --validate --list, counts): vertex/pixel emitted 12559 -> 14295 of 14337, compute 2359 -> 2628 validated, mesh 2730 -> 2811 validated. Tests: the failures left (rect fourth corner, two stride tests, row order, gather4 at a level, memory table, dynamic heap slots) fail on upstream main as well on this host. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Automated triage for the maintainers. Merge candidate. In Thanks for the rebase onto CI: passing ( Generated by Claude Code |
Assisted-by: OpenAI Codex (GPT-6)
3ba3f79 to
d2f4344
Compare
|
Rebased onto Retested on Windows with synthetic inputs. All 11 unit tests for the The full workspace run on this machine had the same five test failures on both commits, two in |
…-440-111a Shaders: keep SCC uniform for two-mask s_cmp_eq/lg (Marvisak#440)
Running
victory translateon the same input sometimes picks a different example for the same failure. Each worker kept the first label it saw, and the first worker to merge got to choose the example for the report. That makes otherwise identical reports harder to compare across machines.The tally now keeps the lexicographically smallest label among the failures it records for each reason. The same rule applies within a worker and when merging workers. The regression test covers both merge orders, with and without
--list.On Windows 11 I used one synthetic file containing 256 empty, 32-byte DXBC containers. At
d2a4bae, 32 identical runs with--jobs 4reported nine different example offsets. With this change, 32 runs each at 1, 4 and 12 workers all reported 256 failures and@0x0. Reversing two input file arguments with--listalso preserved both detail lines and the same example.cargo test --locked --workspace --no-fail-fastcompleted with 265 passed, 0 failed and 4 ignored. No game data was needed for these tests. OpenAI Codex (GPT-6) assisted with the patch, reproduction and report.