gpu: allow @file in VICTORY_SKIP_PIPELINES #3418

Open
github-bot wants to merge 2 commits from github-bot/gh-3418 into main AGit
Owner

@⁠danielibabet on GitHub · 2026-11-27 00:17 UTC · original
danielibabet:pr/skip-pipelines-file → main · +48 −3 · 2 files · 2 commits · open

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)
**@⁠danielibabet** on GitHub · 2026-11-27 00:17 UTC · [original](https://github.com/Marvisak/VIctory/pull/3418) `danielibabet:pr/skip-pipelines-file` → `main` · +48 −3 · 2 files · 2 commits · open 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)
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-27 01:07:09 +00:00
Author
Owner

@⁠Dukestar69 on GitHub · 2026-11-27 00:27 UTC · original · approved these changes

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).

**@⁠Dukestar69** on GitHub · 2026-11-27 00:27 UTC · [original](https://github.com/Marvisak/VIctory/pull/3418#pullrequestreview-6081959001) · **approved these changes** 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).
Author
Owner

@⁠andrewpozdnakov7-jpg on GitHub · 2026-11-27 00:48 UTC · original

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.

**@⁠andrewpozdnakov7-jpg** on GitHub · 2026-11-27 00:48 UTC · [original](https://github.com/Marvisak/VIctory/pull/3418#issuecomment-7206773828) 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.
Author
Owner

@⁠danielibabet on GitHub · 2026-11-27 00:50 UTC · original

@⁠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
**@⁠danielibabet** on GitHub · 2026-11-27 00:50 UTC · [original](https://github.com/Marvisak/VIctory/pull/3418#issuecomment-7206799998) @⁠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
Author
Owner

@⁠fuzeofficlal on GitHub · 2026-11-27 01:02 UTC · original · approved these changes

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).
**@⁠fuzeofficlal** on GitHub · 2026-11-27 01:02 UTC · [original](https://github.com/Marvisak/VIctory/pull/3418#pullrequestreview-6082138872) · **approved these changes** 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).
Author
Owner

@⁠rezioliver-collab on GitHub · 2026-11-27 02:59 UTC · original

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.

**@⁠rezioliver-collab** on GitHub · 2026-11-27 02:59 UTC · [original](https://github.com/Marvisak/VIctory/pull/3418#issuecomment-7208610660) 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 can be merged automatically.
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/3418/head:github-bot/gh-3418'
git switch 'github-bot/gh-3418'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-3418'
git switch 'github-bot/gh-3418'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-3418'
git switch 'github-bot/gh-3418'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-3418'
git switch 'main'
git merge --squash 'github-bot/gh-3418'
git switch 'main'
git merge --ff-only 'github-bot/gh-3418'
git switch 'main'
git merge 'github-bot/gh-3418'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No reviewers
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.

Dependencies

No dependencies set

Reference
github/Marvisak--VIctory!3418
No description provided.