docs: name the variables the tests on outside files read #2843

Open
AurumCarlos wants to merge 1 commit from upstream-pr/2845 into main
AurumCarlos commented 2026-11-25 22:03:54 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by AurumCarlos on 2026-11-25T22:03:54Z.


What

The README documents VICTORY_DXIL for the shader tests, but not the variables of the tests that compare against files kept outside the repository (asset policy, rule 4).

This adds four lines under "Windows shader-test validator" naming them: VICTORY_BCPACK_TABLES, VICTORY_BCPACK_CASES, VICTORY_XMA_STREAMS and VICTORY_XMA_REFERENCE for the #[ignore]d victory-formats tests, whose doc comments give the directory layout each one reads, and VICTORY_REF_PS/VICTORY_REF_VS for the shader stub-pipeline test.

Updated after triage: cut from a table and an example to a short paragraph, since the layouts already live in the tests' doc comments. Rebased on 63bcca4.

Checks

  • Every variable, test name and #[ignore] checked against main 63bcca4.
  • cargo xtask policy: 191 files ok. git diff --check: clean.

Docs only, no code change. No game data. AI-assisted (Claude Code).

<!-- greyfinch-sync:Marvisak/VIctory:issue:5499951876 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/2845). Originally posted by [AurumCarlos](https://github.com/AurumCarlos) on 2026-11-25T22:03:54Z. --- ## What The README documents `VICTORY_DXIL` for the shader tests, but not the variables of the tests that compare against files kept outside the repository (asset policy, rule 4). This adds four lines under "Windows shader-test validator" naming them: `VICTORY_BCPACK_TABLES`, `VICTORY_BCPACK_CASES`, `VICTORY_XMA_STREAMS` and `VICTORY_XMA_REFERENCE` for the `#[ignore]`d `victory-formats` tests, whose doc comments give the directory layout each one reads, and `VICTORY_REF_PS`/`VICTORY_REF_VS` for the shader stub-pipeline test. Updated after triage: cut from a table and an example to a short paragraph, since the layouts already live in the tests' doc comments. Rebased on `63bcca4`. ## Checks - Every variable, test name and `#[ignore]` checked against `main` `63bcca4`. - `cargo xtask policy`: 191 files ok. `git diff --check`: clean. Docs only, no code change. No game data. AI-assisted (Claude Code).
kotekompotek commented 2026-11-25 22:11:41 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by kotekompotek on 2026-11-25T22:11:41Z.

Review: COMMENTED


Docs match the code — all five variables exist with the described semantics and the skip-when-unset convention is stated correctly. LGTM.

<!-- greyfinch-sync:Marvisak/VIctory:review:6065695364 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/2845#pullrequestreview-6065695364). Originally posted by [kotekompotek](https://github.com/kotekompotek) on 2026-11-25T22:11:41Z. **Review:** COMMENTED --- Docs match the code — all five variables exist with the described semantics and the skip-when-unset convention is stated correctly. LGTM.
fuzeofficlal commented 2026-11-26 00:30:39 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by fuzeofficlal on 2026-11-26T00:30:39Z.

Review: COMMENTED


Verified head f32ac5ee cleanly merged onto origin/main (63bcca43).

Accuracy Review

  • Cross-checked all 6 documented env vars (VICTORY_BCPACK_TABLES, VICTORY_BCPACK_CASES, VICTORY_XMA_STREAMS, VICTORY_XMA_REFERENCE, VICTORY_REF_PS, VICTORY_REF_VS), their test names (reference_chunks, walks_saved_streams, matches_a_reference_decoder, stub_pipeline_is_created), and directory/file conventions against crates/victory-formats/src/{bcpack,xma}.rs and crates/victory-shader/src/emit/mod.rs: 100% accurate.
  • git diff --check & cargo xtask policy (191 files ok): clean.

Looks good.

<!-- greyfinch-sync:Marvisak/VIctory:review:6066926074 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/2845#pullrequestreview-6066926074). Originally posted by [fuzeofficlal](https://github.com/fuzeofficlal) on 2026-11-26T00:30:39Z. **Review:** COMMENTED --- Verified head `f32ac5ee` cleanly merged onto `origin/main` (`63bcca43`). ### Accuracy Review - Cross-checked all 6 documented env vars (`VICTORY_BCPACK_TABLES`, `VICTORY_BCPACK_CASES`, `VICTORY_XMA_STREAMS`, `VICTORY_XMA_REFERENCE`, `VICTORY_REF_PS`, `VICTORY_REF_VS`), their test names (`reference_chunks`, `walks_saved_streams`, `matches_a_reference_decoder`, `stub_pipeline_is_created`), and directory/file conventions against `crates/victory-formats/src/{bcpack,xma}.rs` and `crates/victory-shader/src/emit/mod.rs`: 100% accurate. - `git diff --check` & `cargo xtask policy` (`191 files ok`): clean. Looks good.
Marvisak commented 2026-11-26 04:06:20 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by Marvisak on 2026-11-26T03:26:03Z.


Automated triage for the maintainers.

Verdict: needs work. The new README section is accurate. I checked each variable against the code: bcpack.rs reference_chunks, xma.rs walks_saved_streams / matches_a_reference_decoder, and emit/mod.rs stub_pipeline_is_created. The table file path is right too.

The concern is size. The project keeps its docs short, and each of these tests already documents its variable and directory layout in its own doc comment, which is where someone running an ignored test looks. A 20-line table plus an example in the README repeats that.

To change the verdict: cut it to two or three lines. For example, name the variables, and say that the tests reading them are #[ignore]d and describe their layout in their doc comments.

CI: passing (check).


Generated by Claude Code

<!-- greyfinch-sync:Marvisak/VIctory:comment:7181715449 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/2845#issuecomment-7181715449). Originally posted by [Marvisak](https://github.com/Marvisak) on 2026-11-26T03:26:03Z. --- <!-- victory-triage v1 head=f32ac5ee4ed29f2a0af64ece5f4fffc99e11b798 verdict=needs-work at=2026-11-26T03:26:02Z --> Automated triage for the maintainers. **Verdict: needs work.** The new README section is accurate. I checked each variable against the code: `bcpack.rs` `reference_chunks`, `xma.rs` `walks_saved_streams` / `matches_a_reference_decoder`, and `emit/mod.rs` `stub_pipeline_is_created`. The table file path is right too. The concern is size. The project keeps its docs short, and each of these tests already documents its variable and directory layout in its own doc comment, which is where someone running an ignored test looks. A 20-line table plus an example in the README repeats that. To change the verdict: cut it to two or three lines. For example, name the variables, and say that the tests reading them are `#[ignore]`d and describe their layout in their doc comments. CI: passing (`check`). --- _Generated by [Claude Code](https://claude.ai/code)_
upstream-sync changed title from [PR #2845] docs: list the variables the tests on outside files read to [PR #2845] docs: name the variables the tests on outside files read 2026-11-26 09:05:23 +00:00
futurepro62 commented 2026-11-27 00:04:50 +00:00 (Migrated from github.com)

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


Full-suite run on NVIDIA, since this PR has no test report yet. Tested exact head 7fde3d4 (on its base 63bcca4).

Tested

  • NVIDIA GeForce RTX 5070 Ti 16 GB (Blackwell, 32-lane waves only, mesh shaders), driver 621.40, Ryzen 7 9800X3D, Windows 11 Home 26300, Rust 1.98.1 MSVC (pinned), dxil.dll from Windows SDK 10.0.26100 (the loader's default), debug.
  • cargo build --workspace --locked, then cargo test --workspace --locked --no-fail-fast -- --test-threads=4 --skip emit::memory_tests::heap_direct_texture_reads_mark_their_heap_index --skip descriptor::host::tests::dynamic_slots_are_held_until_released --skip memory::tests::lists_share_a_table_and_copies_keep_their_views --skip emit::stride_tests::a_heap_buffer_read_by_element_takes_the_views_stride --skip emit::stride_tests::a_heap_buffer_read_where_no_buffer_view_is_reads_zeros --skip emit::synthetic_tests::gathers_at_a_level_match_the_hardware: 866 passed, 0 failed, 10 ignored.
  • No new #[test] functions in the diff.
  • --skip leaves out tests that fail on main 63bcca4 on this card too, not because of this PR: heap_direct_texture_reads_mark_their_heap_index ends the victory-shader test process with 0xc0000005 (#2571), so without the skip the rest of that crate never reports; dynamic_slots_are_held_until_released, lists_share_a_table_and_copies_keep_their_views and the two stride_tests hit the 1,000,000-view heap cap of NVIDIA drivers (#1835, #2317); gathers_at_a_level_match_the_hardware fails on lane 0 (#1744).

Not tested

  • AMD (the tests take the default adapter), a release build, the title (test run only).

AI use

  • Claude Code (Claude Opus 5.5) ran the tests and wrote this report. I checked it before posting.
<!-- greyfinch-sync:Marvisak/VIctory:comment:7206152307 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/2845#issuecomment-7206152307). Originally posted by [futurepro62](https://github.com/futurepro62) on 2026-11-27T00:04:50Z. --- Full-suite run on NVIDIA, since this PR has no test report yet. Tested exact head `7fde3d4` (on its base `63bcca4`). **Tested** - NVIDIA GeForce RTX 5070 Ti 16 GB (Blackwell, 32-lane waves only, mesh shaders), driver 621.40, Ryzen 7 9800X3D, Windows 11 Home 26300, Rust 1.98.1 MSVC (pinned), `dxil.dll` from Windows SDK 10.0.26100 (the loader's default), debug. - `cargo build --workspace --locked`, then `cargo test --workspace --locked --no-fail-fast -- --test-threads=4 --skip emit::memory_tests::heap_direct_texture_reads_mark_their_heap_index --skip descriptor::host::tests::dynamic_slots_are_held_until_released --skip memory::tests::lists_share_a_table_and_copies_keep_their_views --skip emit::stride_tests::a_heap_buffer_read_by_element_takes_the_views_stride --skip emit::stride_tests::a_heap_buffer_read_where_no_buffer_view_is_reads_zeros --skip emit::synthetic_tests::gathers_at_a_level_match_the_hardware`: **866 passed, 0 failed, 10 ignored**. - No new `#[test]` functions in the diff. - `--skip` leaves out tests that fail on main `63bcca4` on this card too, not because of this PR: `heap_direct_texture_reads_mark_their_heap_index` ends the `victory-shader` test process with `0xc0000005` (#2571), so without the skip the rest of that crate never reports; `dynamic_slots_are_held_until_released`, `lists_share_a_table_and_copies_keep_their_views` and the two `stride_tests` hit the 1,000,000-view heap cap of NVIDIA drivers (#1835, #2317); `gathers_at_a_level_match_the_hardware` fails on lane 0 (#1744). **Not tested** - AMD (the tests take the default adapter), a release build, the title (test run only). **AI use** - Claude Code (Claude Opus 5.5) ran the tests and wrote this report. I checked it before posting.
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/2845:upstream-pr/2845'
git switch 'upstream-pr/2845'

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/2845'
git switch 'upstream-pr/2845'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/2845'
git switch 'upstream-pr/2845'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/2845'
git switch 'main'
git merge --squash 'upstream-pr/2845'
git switch 'main'
git merge --ff-only 'upstream-pr/2845'
git switch 'main'
git merge 'upstream-pr/2845'
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!2843
No description provided.