Shader corpus sweep in the repository, to run on one's own dump #282

Closed
opened 2026-11-27 08:43:57 +00:00 by Sandile-0511 · 3 comments
Sandile-0511 commented 2026-11-27 08:43:57 +00:00 (Migrated from github.com)
Contributor

Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by Sandile-0511 on 2026-11-27T08:43:57Z.


What is missing. A translator change is judged by the tests and by a run of the game. Neither says what the change does to the other shaders the title registers (about 21,600 in my dump): which start to translate, which stop, and which still translate but to other output. The comparison by output I posted on #258 came from a harness that lives outside the repository, so nobody else can run it. The maintainer asked for it in a pull request under tools/ (https://github.com/LakshanSivakumar/Native-Victory-macOS/issues/258#issuecomment-7213183271).

What I plan to do, in one pull request with no shader data in it:

  • The sweep as an example of victory-shader (cargo run --release -p victory-shader --example sweep -- <folder>), so it is always built with the translator of the tree it sits in. It translates every dumped container of a folder with the native host's options and prints one line per shader: the outcome (ok, refused, panic, timeout, missing), a fingerprint of the output or the refusal reason, and the time. Same fingerprint as the numbers already posted on #258.
  • tools/corpus/compare.sh: tallies one sweep, or compares two (newly translated, regressions, output changed, other reason now), with an optional list of the shaders a world run bound. Bash and awk like run-summary.sh, with a --self-test on made-up sweeps that CI runs.
  • Docs: how to dump one's own corpus (VICTORY_DUMP_ALL_SHADERS=1 VICTORY_DUMP_REFUSED=<folder>), sweep two builds and compare, and that a corpus and its sweep files never go in the repository or in a post.
  • Tests without game data: a small program written for the tests, and made-up sweep files.

Not in it: no change to the translator or the host, no new diagnostic, no corpus.

<!-- greyfinch-sync:LakshanSivakumar/Native-Victory-macOS:issue:6643025427 --> Imported from [LakshanSivakumar/Native-Victory-macOS](https://github.com/LakshanSivakumar/Native-Victory-macOS/issues/282). Originally posted by [Sandile-0511](https://github.com/Sandile-0511) on 2026-11-27T08:43:57Z. --- **What is missing.** A translator change is judged by the tests and by a run of the game. Neither says what the change does to the other shaders the title registers (about 21,600 in my dump): which start to translate, which stop, and which still translate but to other output. The comparison by output I posted on #258 came from a harness that lives outside the repository, so nobody else can run it. The maintainer asked for it in a pull request under `tools/` (https://github.com/LakshanSivakumar/Native-Victory-macOS/issues/258#issuecomment-7213183271). **What I plan to do**, in one pull request with no shader data in it: - The sweep as an example of `victory-shader` (`cargo run --release -p victory-shader --example sweep -- <folder>`), so it is always built with the translator of the tree it sits in. It translates every dumped container of a folder with the native host's options and prints one line per shader: the outcome (`ok`, `refused`, `panic`, `timeout`, `missing`), a fingerprint of the output or the refusal reason, and the time. Same fingerprint as the numbers already posted on #258. - `tools/corpus/compare.sh`: tallies one sweep, or compares two (newly translated, regressions, output changed, other reason now), with an optional list of the shaders a world run bound. Bash and awk like `run-summary.sh`, with a `--self-test` on made-up sweeps that CI runs. - Docs: how to dump one's own corpus (`VICTORY_DUMP_ALL_SHADERS=1 VICTORY_DUMP_REFUSED=<folder>`), sweep two builds and compare, and that a corpus and its sweep files never go in the repository or in a post. - Tests without game data: a small program written for the tests, and made-up sweep files. Not in it: no change to the translator or the host, no new diagnostic, no corpus.
Sandile-0511 commented 2026-11-27 08:45:02 +00:00 (Migrated from github.com)
Author
Contributor

Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by Sandile-0511 on 2026-11-27T08:45:02Z.


/claim

<!-- greyfinch-sync:LakshanSivakumar/Native-Victory-macOS:comment:7213877442 --> Imported from [LakshanSivakumar/Native-Victory-macOS](https://github.com/LakshanSivakumar/Native-Victory-macOS/issues/282#issuecomment-7213877442). Originally posted by [Sandile-0511](https://github.com/Sandile-0511) on 2026-11-27T08:45:02Z. --- /claim
github-actions[bot] commented 2026-11-27 08:45:13 +00:00 (Migrated from github.com)
Author
Contributor

Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by github-actions[bot] on 2026-11-27T08:45:13Z.


Claimed by @Sandile-0511. Open a draft pull request with Refs #282 in its description within 24 hours, or the claim expires.

<!-- greyfinch-sync:LakshanSivakumar/Native-Victory-macOS:comment:7213881100 --> Imported from [LakshanSivakumar/Native-Victory-macOS](https://github.com/LakshanSivakumar/Native-Victory-macOS/issues/282#issuecomment-7213881100). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-11-27T08:45:13Z. --- Claimed by @Sandile-0511. Open a draft pull request with `Refs #282` in its description within 24 hours, or the claim expires.
LakshanSivakumar commented 2026-11-28 00:36:17 +00:00 (Migrated from github.com)
Author
Contributor

Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by LakshanSivakumar on 2026-11-28T00:36:17Z.


Thank you for this. It is fixed on main by 76f1757f (the corpus sweep tool in tools/). I have not checked every case from this report in the game myself, so please retest on main a6a58361 and reopen this if you still see it. Closing as fixed.

<!-- greyfinch-sync:LakshanSivakumar/Native-Victory-macOS:comment:7231044519 --> Imported from [LakshanSivakumar/Native-Victory-macOS](https://github.com/LakshanSivakumar/Native-Victory-macOS/issues/282#issuecomment-7231044519). Originally posted by [LakshanSivakumar](https://github.com/LakshanSivakumar) on 2026-11-28T00:36:17Z. --- Thank you for this. It is fixed on main by 76f1757f (the corpus sweep tool in tools/). I have not checked every case from this report in the game myself, so please retest on main a6a58361 and reopen this if you still see it. Closing as fixed.
Sign in to join this conversation.
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
LakshanSivakumar/Native-Victory-macOS#282
No description provided.