docs: name the variables the tests on outside files read #2843
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/2845"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from Marvisak/VIctory. Originally posted by AurumCarlos on 2026-11-25T22:03:54Z.
What
The README documents
VICTORY_DXILfor 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_STREAMSandVICTORY_XMA_REFERENCEfor the#[ignore]dvictory-formatstests, whose doc comments give the directory layout each one reads, andVICTORY_REF_PS/VICTORY_REF_VSfor 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
#[ignore]checked againstmain63bcca4.cargo xtask policy: 191 files ok.git diff --check: clean.Docs only, no code change. No game data. AI-assisted (Claude Code).
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.
Imported from Marvisak/VIctory. Originally posted by fuzeofficlal on 2026-11-26T00:30:39Z.
Review: COMMENTED
Verified head
f32ac5eecleanly merged ontoorigin/main(63bcca43).Accuracy Review
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 againstcrates/victory-formats/src/{bcpack,xma}.rsandcrates/victory-shader/src/emit/mod.rs: 100% accurate.git diff --check&cargo xtask policy(191 files ok): clean.Looks good.
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.rsreference_chunks,xma.rswalks_saved_streams/matches_a_reference_decoder, andemit/mod.rsstub_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
[PR #2845] docs: list the variables the tests on outside files readto [PR #2845] docs: name the variables the tests on outside files readImported 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 base63bcca4).Tested
dxil.dllfrom Windows SDK 10.0.26100 (the loader's default), debug.cargo build --workspace --locked, thencargo 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.#[test]functions in the diff.--skipleaves out tests that fail on main63bcca4on this card too, not because of this PR:heap_direct_texture_reads_mark_their_heap_indexends thevictory-shadertest process with0xc0000005(#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_viewsand the twostride_testshit the 1,000,000-view heap cap of NVIDIA drivers (#1835, #2317);gathers_at_a_level_match_the_hardwarefails on lane 0 (#1744).Not tested
AI use
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.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.