gpu: allow @file in VICTORY_SKIP_PIPELINES #3418

Open
danielibabet wants to merge 2 commits from upstream-pr/3418 into main
danielibabet commented 2026-11-27 00:17:24 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by danielibabet on 2026-11-27T00:17:24Z.


Allow passing \VICTORY_SKIP_PIPELINES=@path/to/hashes.txt\ (comma- or whitespace/newline-separated 16-digit shader hashes) so large skip lists don't hit environment-variable length limits.

Verified:

  • \cargo test -p victory-gpu --features diagnostics -j 16 skip_hashes -- --test-threads=1\ (3 passed, 0 failed)
  • \cargo clippy -p victory-gpu --features diagnostics -j 16 --all-targets -- -D warnings\
  • \cargo clippy -p victory-gpu -j 16 --all-targets -- -D warnings\
  • \cargo xtask policy\ (191 files ok)
<!-- greyfinch-sync:Marvisak/VIctory:issue:5519003421 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/3418). Originally posted by [danielibabet](https://github.com/danielibabet) on 2026-11-27T00:17:24Z. --- Allow passing \VICTORY_SKIP_PIPELINES=@path/to/hashes.txt\ (comma- or whitespace/newline-separated 16-digit shader hashes) so large skip lists don't hit environment-variable length limits. Verified: - \cargo test -p victory-gpu --features diagnostics -j 16 skip_hashes -- --test-threads=1\ (3 passed, 0 failed) - \cargo clippy -p victory-gpu --features diagnostics -j 16 --all-targets -- -D warnings\ - \cargo clippy -p victory-gpu -j 16 --all-targets -- -D warnings\ - \cargo xtask policy\ (191 files ok)
Dukestar69 commented 2026-11-27 00:27:39 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by Dukestar69 on 2026-11-27T00:27:39Z.

Review: APPROVED


LGTM — verified on RTX 5090 (Windows / D3D12) against origin/main (63bcca4).

  • Supporting @file syntax in VICTORY_SKIP_PIPELINES cleanly avoids command-line/environment length limits when bisecting pipelines.
  • cargo test -p victory-gpu --lib --features diagnostics pipeline:: -- --test-threads=1: all passed.
  • cargo clippy -p victory-gpu --all-targets -- -D warnings (default + --features diagnostics): clean.
  • cargo xtask policy: 191 files ok.

Synthetic tests only (no game files used). AI-assisted (Gemini 4 Neon).

<!-- greyfinch-sync:Marvisak/VIctory:review:6081959001 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/3418#pullrequestreview-6081959001). Originally posted by [Dukestar69](https://github.com/Dukestar69) on 2026-11-27T00:27:39Z. **Review:** APPROVED --- LGTM — verified on RTX 5090 (Windows / D3D12) against `origin/main` (`63bcca4`). - Supporting `@file` syntax in `VICTORY_SKIP_PIPELINES` cleanly avoids command-line/environment length limits when bisecting pipelines. - `cargo test -p victory-gpu --lib --features diagnostics pipeline:: -- --test-threads=1`: all passed. - `cargo clippy -p victory-gpu --all-targets -- -D warnings` (default + `--features diagnostics`): clean. - `cargo xtask policy`: 191 files ok. Synthetic tests only (no game files used). AI-assisted (Gemini 4 Neon).
andrewpozdnakov7-jpg commented 2026-11-27 00:48:52 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by andrewpozdnakov7-jpg on 2026-11-27T00:48:52Z.


I checked exact head 2721fe1 with a synthetic UTF-8 skip file using CRLF, a space in its path, and both commas and newlines. With a UTF-8 BOM, the parser drops the first hash. The same file without a BOM keeps all three.

The follow-up handles the BOM at the file boundary and documents @<path> in the diagnostics table. The three skip-list tests, strict clippy in both configurations, and asset policy passed on Windows. @danielibabet please retain the Git author if picking it or add Co-authored-by: andrewpozdnakov7-jpg if folding the change.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7206773828 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/3418#issuecomment-7206773828). Originally posted by [andrewpozdnakov7-jpg](https://github.com/andrewpozdnakov7-jpg) on 2026-11-27T00:48:52Z. --- I checked exact head `2721fe1` with a synthetic UTF-8 skip file using CRLF, a space in its path, and both commas and newlines. With a UTF-8 BOM, the parser drops the first hash. The same file without a BOM keeps all three. The [follow-up](https://github.com/andrewpozdnakov7-jpg/VIctory/commit/d64d10748e5f67d290c16d3110a5833f925b5e55) handles the BOM at the file boundary and documents `@<path>` in the diagnostics table. The three skip-list tests, strict clippy in both configurations, and asset policy passed on Windows. @danielibabet please retain the Git author if picking it or add `Co-authored-by: andrewpozdnakov7-jpg` if folding the change.
danielibabet commented 2026-11-27 00:50:43 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by danielibabet on 2026-11-27T00:50:43Z.


@andrewpozdnakov7-jpg Good catch on the UTF-8 BOM! I've fast-forwarded \pr/skip-pipelines-file\ to your commit \d64d107\ (retaining your Git authorship).

Verified locally on Windows 11:

  • \cargo test -p victory-gpu --features diagnostics -j 16 skip_hashes -- --test-threads=1: 3 passed, 0 failed
  • \cargo clippy -p victory-gpu --features diagnostics -j 16 --all-targets -- -D warnings: clean
  • \cargo clippy -p victory-gpu -j 16 --all-targets -- -D warnings: clean
  • \cargo xtask policy: 191 files ok
<!-- greyfinch-sync:Marvisak/VIctory:comment:7206799998 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/3418#issuecomment-7206799998). Originally posted by [danielibabet](https://github.com/danielibabet) on 2026-11-27T00:50:43Z. --- @andrewpozdnakov7-jpg Good catch on the UTF-8 BOM! I've fast-forwarded \pr/skip-pipelines-file\ to your commit \d64d107\ (retaining your Git authorship). Verified locally on Windows 11: - \cargo test -p victory-gpu --features diagnostics -j 16 skip_hashes -- --test-threads=1\: 3 passed, 0 failed - \cargo clippy -p victory-gpu --features diagnostics -j 16 --all-targets -- -D warnings\: clean - \cargo clippy -p victory-gpu -j 16 --all-targets -- -D warnings\: clean - \cargo xtask policy\: 191 files ok
fuzeofficlal commented 2026-11-27 01:02:18 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by fuzeofficlal on 2026-11-27T01:02:18Z.

Review: APPROVED


Looks good on d64d10748e5f67d290c16d3110a5833f925b5e55. Splitting on commas and ASCII whitespace, stripping an optional UTF-8 BOM in load_skip_hashes, warning and returning empty on unreadable @<path> files, and documenting @<path> in README.md are all clean and properly gated under #[cfg(feature = "diagnostics")].

Verified:

  • cargo xtask policy passes cleanly.
  • cargo clippy --tests -p victory-gpu (default and --features diagnostics, -D warnings) passes with zero warnings.
  • All 3 skip_hashes unit tests pass under --features diagnostics (covering commas, CRLF, UTF-8 BOM, spaces in file paths, invalid entries, and missing files).
<!-- greyfinch-sync:Marvisak/VIctory:review:6082138872 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/3418#pullrequestreview-6082138872). Originally posted by [fuzeofficlal](https://github.com/fuzeofficlal) on 2026-11-27T01:02:18Z. **Review:** APPROVED --- Looks good on `d64d10748e5f67d290c16d3110a5833f925b5e55`. Splitting on commas and ASCII whitespace, stripping an optional UTF-8 BOM in `load_skip_hashes`, warning and returning empty on unreadable `@<path>` files, and documenting `@<path>` in `README.md` are all clean and properly gated under `#[cfg(feature = "diagnostics")]`. Verified: - `cargo xtask policy` passes cleanly. - `cargo clippy --tests -p victory-gpu` (default and `--features diagnostics`, `-D warnings`) passes with zero warnings. - All 3 `skip_hashes` unit tests pass under `--features diagnostics` (covering commas, CRLF, UTF-8 BOM, spaces in file paths, invalid entries, and missing files).
rezioliver-collab commented 2026-11-27 02:59:52 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by rezioliver-collab on 2026-11-27T02:59:52Z.


I tried a 286,723-byte skip file on an Apple M1. It contained 16,384 synthetic uppercase hashes, a UTF-8 BOM and alternating CRLF/tab separators. On PR d64d1074 all 16,384 entries matched the inline list in order and lowercase value, including the first and last.

With the list already loaded, the production lookup for a single shader took a median 2.93 ns for a first-entry hit, 31.22 µs for a last-entry hit and 31.32 µs for a miss (optimized Rust 1.98.1, 12 samples). For comparison, a separate sorted index took 0.645 ms to build and reduced a miss to 0.096 µs, but increased a first-entry hit to 94.4 ns. On this input the build cost worked out to about 21 repeated misses. The index was only part of the experiment. File I/O was outside the lookup timing.

AI-assisted with Codex.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7208610660 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/3418#issuecomment-7208610660). Originally posted by [rezioliver-collab](https://github.com/rezioliver-collab) on 2026-11-27T02:59:52Z. --- I tried a 286,723-byte skip file on an Apple M1. It contained 16,384 synthetic uppercase hashes, a UTF-8 BOM and alternating CRLF/tab separators. On PR `d64d1074` all 16,384 entries matched the inline list in order and lowercase value, including the first and last. With the list already loaded, the production lookup for a single shader took a median **2.93 ns** for a first-entry hit, **31.22 µs** for a last-entry hit and **31.32 µs** for a miss (optimized Rust 1.98.1, 12 samples). For comparison, a separate sorted index took 0.645 ms to build and reduced a miss to 0.096 µs, but increased a first-entry hit to 94.4 ns. On this input the build cost worked out to about 21 repeated misses. The index was only part of the experiment. File I/O was outside the lookup timing. AI-assisted with Codex.
This pull request cannot be merged automatically due to conflicts.
Merge manually to resolve the conflicts.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'upstream-pr/3418:upstream-pr/3418'
git switch 'upstream-pr/3418'

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch 'main'
git merge --no-ff 'upstream-pr/3418'
git switch 'upstream-pr/3418'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/3418'
git switch 'upstream-pr/3418'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/3418'
git switch 'main'
git merge --squash 'upstream-pr/3418'
git switch 'main'
git merge --ff-only 'upstream-pr/3418'
git switch 'main'
git merge 'upstream-pr/3418'
git push origin 'main'
Sign in to join this conversation.
No reviewers
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
Marvisak/VIctory!3418
No description provided.